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

Unified Diff: ui/base/dragdrop/os_exchange_data.h

Issue 137783015: Merge 244538 "Don't populate URL data in WebDropData when draggi..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 6 years, 11 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_contents_view_aura.cc ('k') | ui/base/dragdrop/os_exchange_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/dragdrop/os_exchange_data.h
===================================================================
--- ui/base/dragdrop/os_exchange_data.h (revision 245050)
+++ ui/base/dragdrop/os_exchange_data.h (working copy)
@@ -68,6 +68,10 @@
#endif
};
+ // Controls whether or not filenames should be converted to file: URLs when
+ // getting a URL.
+ enum FilenameToURLPolicy { CONVERT_FILENAMES, DO_NOT_CONVERT_FILENAMES, };
+
// Encapsulates the info about a file to be downloaded.
struct UI_EXPORT DownloadFileInfo {
DownloadFileInfo(const base::FilePath& filename,
@@ -107,7 +111,9 @@
const Pickle& data) = 0;
virtual bool GetString(base::string16* data) const = 0;
- virtual bool GetURLAndTitle(GURL* url, base::string16* title) const = 0;
+ virtual bool GetURLAndTitle(FilenameToURLPolicy policy,
+ GURL* url,
+ base::string16* title) const = 0;
virtual bool GetFilename(base::FilePath* path) const = 0;
virtual bool GetFilenames(
std::vector<FileInfo>* file_names) const = 0;
@@ -183,7 +189,9 @@
// not exist, the out parameter is not touched. The out parameter cannot be
// NULL.
bool GetString(base::string16* data) const;
- bool GetURLAndTitle(GURL* url, base::string16* title) const;
+ bool GetURLAndTitle(FilenameToURLPolicy policy,
+ GURL* url,
+ base::string16* title) const;
// Return the path of a file, if available.
bool GetFilename(base::FilePath* path) const;
bool GetFilenames(
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | ui/base/dragdrop/os_exchange_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698