diff options
Diffstat (limited to 'dom/ipc/FilePickerParent.h')
-rw-r--r-- | dom/ipc/FilePickerParent.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dom/ipc/FilePickerParent.h b/dom/ipc/FilePickerParent.h index 332007a715..89c472cb8a 100644 --- a/dom/ipc/FilePickerParent.h +++ b/dom/ipc/FilePickerParent.h @@ -27,8 +27,12 @@ class FilePickerParent : public PFilePickerParent , mMode(aMode) {} + private: virtual ~FilePickerParent(); + public: + NS_INLINE_DECL_REFCOUNTING(FilePickerParent) + void Done(int16_t aResult); struct BlobImplOrString @@ -69,7 +73,7 @@ class FilePickerParent : public PFilePickerParent private: virtual ~FilePickerShownCallback() {} - FilePickerParent* mFilePickerParent; + RefPtr<FilePickerParent> mFilePickerParent; }; private: @@ -78,7 +82,7 @@ class FilePickerParent : public PFilePickerParent // This runnable is used to do some I/O operation on a separate thread. class IORunnable : public Runnable { - FilePickerParent* mFilePickerParent; + RefPtr<FilePickerParent> mFilePickerParent; nsTArray<nsCOMPtr<nsIFile>> mFiles; nsTArray<BlobImplOrString> mResults; nsCOMPtr<nsIEventTarget> mEventTarget; |