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

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

Issue 211383007: Use FilePaths in content::DropData to avoid redundant conversions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang-format 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
Index: content/public/common/drop_data.h
diff --git a/content/public/common/drop_data.h b/content/public/common/drop_data.h
index 423be52f917eca05352b1f9e8652057bafe3dadf..91628bf34edc472fbf4b5e7e99529209b4185e90 100644
--- a/content/public/common/drop_data.h
+++ b/content/public/common/drop_data.h
@@ -16,22 +16,12 @@
#include "base/strings/nullable_string16.h"
#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
+#include "ui/base/dragdrop/file_info.h"
#include "url/gurl.h"
namespace content {
struct CONTENT_EXPORT DropData {
- // The struct is used to represent a file in the drop data.
- struct CONTENT_EXPORT FileInfo {
- FileInfo();
- FileInfo(const base::string16& path, const base::string16& display_name);
-
- // The path of the file.
- base::string16 path;
- // The display name of the file. This field is optional.
- base::string16 display_name;
- };
-
DropData();
~DropData();
@@ -52,7 +42,7 @@ struct CONTENT_EXPORT DropData {
// 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;
+ std::vector<ui::FileInfo> filenames;
// Isolated filesystem ID for the files being dragged on the webview.
base::string16 filesystem_id;

Powered by Google App Engine
This is Rietveld 408576698