Bug 1798459 - Separate out FileSystemWritableFileStream::Close and IsClosed which are not part of the WebIDL interface; r=dom-storage-reviewers,jari
Depends on D160906 Differential Revision: https://phabricator.services.mozilla.com/D160907
This commit is contained in:
@@ -52,6 +52,10 @@ class FileSystemWritableFileStream final : public WritableStream {
|
||||
|
||||
void ClearActor();
|
||||
|
||||
bool IsClosed() const { return !mActor || !mActor->MutableFileDescPtr(); }
|
||||
|
||||
already_AddRefed<Promise> Close(ErrorResult& aRv);
|
||||
|
||||
// WebIDL Boilerplate
|
||||
JSObject* WrapObject(JSContext* aCx,
|
||||
JS::Handle<JSObject*> aGivenProto) override;
|
||||
@@ -67,10 +71,6 @@ class FileSystemWritableFileStream final : public WritableStream {
|
||||
|
||||
already_AddRefed<Promise> Truncate(uint64_t aSize, ErrorResult& aError);
|
||||
|
||||
already_AddRefed<Promise> Close(ErrorResult& aRv);
|
||||
|
||||
bool IsClosed() const { return !mActor || !mActor->MutableFileDescPtr(); }
|
||||
|
||||
protected:
|
||||
RefPtr<FileSystemManager> mManager;
|
||||
fs::FileSystemEntryMetadata mMetadata;
|
||||
|
||||
Reference in New Issue
Block a user