Chromium Code Reviews| Index: ui/base/dragdrop/os_exchange_data.h |
| diff --git a/ui/base/dragdrop/os_exchange_data.h b/ui/base/dragdrop/os_exchange_data.h |
| index f62a0d1a68532a8f76dda0402e9eb55dce5d6e4c..a1f681a0bbcc5bc3f99840dc957c6f7a18e661fc 100644 |
| --- a/ui/base/dragdrop/os_exchange_data.h |
| +++ b/ui/base/dragdrop/os_exchange_data.h |
| @@ -68,6 +68,11 @@ class UI_BASE_EXPORT OSExchangeData { |
| #endif |
| }; |
| + enum FilenameToURLPolicy { |
| + ConvertFilenames, |
|
sky
2014/01/13 15:13:45
Style guide says enum values should be ALL_CAPS (a
dcheng
2014/01/13 15:49:27
Oops... I've been off in Blink a bit too long. Fix
|
| + DoNotConvertFilenames, |
| + }; |
| + |
| // Encapsulates the info about a file to be downloaded. |
| struct UI_BASE_EXPORT DownloadFileInfo { |
| DownloadFileInfo(const base::FilePath& filename, |
| @@ -107,7 +112,9 @@ class UI_BASE_EXPORT OSExchangeData { |
| 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 +190,9 @@ class UI_BASE_EXPORT OSExchangeData { |
| // 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( |