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:
Jan Varga
2022-11-08 16:59:16 +00:00
parent bc04d4e64d
commit b0701f2bf7
2 changed files with 26 additions and 26 deletions

View File

@@ -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;