summaryrefslogtreecommitdiffstats
path: root/dom/ipc/FilePickerParent.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /dom/ipc/FilePickerParent.h
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz
firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip
Adding upstream version 125.0.1.upstream/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;
};