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

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

Issue 242643004: Support drag and drop of files with filesystem: URL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix SEGV during tests Created 6 years, 8 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
Index: content/public/common/drop_data.h
diff --git a/content/public/common/drop_data.h b/content/public/common/drop_data.h
index 91628bf34edc472fbf4b5e7e99529209b4185e90..1dc143470fa2c39757e343599178e2de35ff1b86 100644
--- a/content/public/common/drop_data.h
+++ b/content/public/common/drop_data.h
@@ -22,6 +22,14 @@
namespace content {
struct CONTENT_EXPORT DropData {
+ struct FileSystemFileInfo {
+ FileSystemFileInfo();
+ ~FileSystemFileInfo();
+
+ GURL url;
+ int64 size;
+ };
+
DropData();
~DropData();
@@ -47,6 +55,9 @@ struct CONTENT_EXPORT DropData {
// Isolated filesystem ID for the files being dragged on the webview.
base::string16 filesystem_id;
+ // User is dragging files specified with filesystem: URLs.
+ std::vector<FileSystemFileInfo> file_system_files;
+
// User is dragging plain text into the webview.
base::NullableString16 text;

Powered by Google App Engine
This is Rietveld 408576698