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

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

Issue 212693004: Merge 259353 "Mark drags starting in web content as tainted to a..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1847/src/
Patch Set: Created 6 years, 9 months 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/browser/web_contents/web_drag_source_gtk.cc ('k') | content/public/common/drop_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/drop_data.h
===================================================================
--- content/public/common/drop_data.h (revision 259999)
+++ content/public/common/drop_data.h (working copy)
@@ -35,6 +35,9 @@
DropData();
~DropData();
+ // Whether this drag originated from a renderer.
+ bool did_originate_from_renderer;
+
// User is dragging a link into the webview.
GURL url;
base::string16 url_title; // The title associated with |url|.
@@ -46,7 +49,9 @@
// a download.
blink::WebReferrerPolicy referrer_policy;
- // User is dropping one or more files on the webview.
+ // User is dropping one or more files on the webview. This field is only
+ // populated if the drag is not renderer tainted, as this allows File access
+ // from web content.
std::vector<FileInfo> filenames;
// Isolated filesystem ID for the files being dragged on the webview.
« no previous file with comments | « content/browser/web_contents/web_drag_source_gtk.cc ('k') | content/public/common/drop_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698