summaryrefslogtreecommitdiffstats
path: root/dom/ipc/FilePickerParent.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
commit086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch)
treea4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /dom/ipc/FilePickerParent.h
parentAdding debian version 124.0.1-1. (diff)
downloadfirefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz
firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/ipc/FilePickerParent.h')
-rw-r--r--dom/ipc/FilePickerParent.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/dom/ipc/FilePickerParent.h b/dom/ipc/FilePickerParent.h
index f0fe0dc2d0..3cdb5ab912 100644
--- a/dom/ipc/FilePickerParent.h
+++ b/dom/ipc/FilePickerParent.h
@@ -12,6 +12,7 @@
#include "nsCOMArray.h"
#include "nsThreadUtils.h"
#include "mozilla/dom/File.h"
+#include "mozilla/dom/BrowsingContext.h"
#include "mozilla/dom/PFilePickerParent.h"
class nsIFile;
@@ -20,8 +21,12 @@ namespace mozilla::dom {
class FilePickerParent : public PFilePickerParent {
public:
- FilePickerParent(const nsString& aTitle, const nsIFilePicker::Mode& aMode)
- : mTitle(aTitle), mMode(aMode), mResult(nsIFilePicker::returnOK) {}
+ FilePickerParent(const nsString& aTitle, const nsIFilePicker::Mode& aMode,
+ BrowsingContext* aBrowsingContext)
+ : mTitle(aTitle),
+ mMode(aMode),
+ mBrowsingContext(aBrowsingContext),
+ mResult(nsIFilePicker::returnOK) {}
private:
virtual ~FilePickerParent();
@@ -93,6 +98,7 @@ class FilePickerParent : public PFilePickerParent {
nsString mTitle;
nsIFilePicker::Mode mMode;
+ RefPtr<mozilla::dom::BrowsingContext> mBrowsingContext;
nsIFilePicker::ResultCode mResult;
};