Index: content/public/common/drop_data.h |
diff --git a/content/public/common/drop_data.h b/content/public/common/drop_data.h |
index fce6db13774f772181d135a12c452ff553f58699..8ea4b9a17009b2bc38abb6c0755fd62db7bd8303 100644 |
--- a/content/public/common/drop_data.h |
+++ b/content/public/common/drop_data.h |
@@ -32,6 +32,27 @@ struct CONTENT_EXPORT DropData { |
int64_t size; |
}; |
+ enum class Kind { |
+ STRING = 0, |
+ FILENAME, |
+ FILESYSTEMFILE, |
+ LAST = FILESYSTEMFILE |
+ }; |
+ |
+ struct MetaData { |
+ MetaData(); |
+ MetaData(DropData::Kind kind, base::string16 mime_type); |
dcheng
2016/05/10 07:29:09
const base::string16, here and below.
hush (inactive)
2016/05/10 21:18:32
Done.
|
+ MetaData(DropData::Kind kind, base::FilePath filename); |
+ MetaData(DropData::Kind kind, GURL file_system_url); |
+ MetaData(const MetaData& other); |
+ ~MetaData() {} |
dcheng
2016/05/10 07:29:09
I'm surprised that clang's complex destructor chec
hush (inactive)
2016/05/10 21:18:32
Clang may have just missed it.
I moved the destruc
|
+ |
+ DropData::Kind kind; |
+ base::string16 mime_type; |
+ base::FilePath filename; |
+ GURL file_system_url; |
+ }; |
+ |
DropData(); |
DropData(const DropData& other); |
~DropData(); |
@@ -54,6 +75,8 @@ struct CONTENT_EXPORT DropData { |
// populated if the drag is not renderer tainted, as this allows File access |
// from web content. |
std::vector<ui::FileInfo> filenames; |
+ // The mime types of dragged files. |
+ std::vector<base::string16> file_mime_types; |
// Isolated filesystem ID for the files being dragged on the webview. |
base::string16 filesystem_id; |