Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2335)

Unified Diff: content/public/common/file_chooser_params.h

Issue 1410423003: [SafeBrowsing] Conditionalize unverified download blocking on whitelist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flash-download-block
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/pepper/pepper_file_chooser_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/file_chooser_params.h
diff --git a/content/public/common/file_chooser_params.h b/content/public/common/file_chooser_params.h
index ad612ab9ce22842085b01b1ae495bbfae368bdd5..cb9d934b43f506050db7882d8ef6af33ab9ba77d 100644
--- a/content/public/common/file_chooser_params.h
+++ b/content/public/common/file_chooser_params.h
@@ -10,6 +10,7 @@
#include "base/files/file_path.h"
#include "base/strings/string16.h"
#include "content/common/content_export.h"
+#include "url/gurl.h"
namespace content {
@@ -54,6 +55,11 @@ struct CONTENT_EXPORT FileChooserParams {
// If true, the data should be obtained using the device's camera/mic/etc.
bool capture;
#endif
+
+ // If non-empty, represents the URL of the requestor if the request was
+ // initiated by a document. Note that this value should be considered
+ // untrustworthy since it is specified by the sandbox and not validated.
+ GURL requestor;
};
} // namespace content
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/pepper/pepper_file_chooser_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698