OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ | 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ |
6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ | 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 // Overridden from OSExchangeData::Provider: | 28 // Overridden from OSExchangeData::Provider: |
29 virtual Provider* Clone() const OVERRIDE; | 29 virtual Provider* Clone() const OVERRIDE; |
30 virtual void SetString(const base::string16& data) OVERRIDE; | 30 virtual void SetString(const base::string16& data) OVERRIDE; |
31 virtual void SetURL(const GURL& url, const base::string16& title) OVERRIDE; | 31 virtual void SetURL(const GURL& url, const base::string16& title) OVERRIDE; |
32 virtual void SetFilename(const base::FilePath& path) OVERRIDE; | 32 virtual void SetFilename(const base::FilePath& path) OVERRIDE; |
33 virtual void SetFilenames( | 33 virtual void SetFilenames( |
34 const std::vector<OSExchangeData::FileInfo>& filenames) OVERRIDE; | 34 const std::vector<OSExchangeData::FileInfo>& filenames) OVERRIDE; |
35 virtual void SetPickledData(const OSExchangeData::CustomFormat& format, | 35 virtual void SetPickledData(const OSExchangeData::CustomFormat& format, |
36 const Pickle& data) OVERRIDE; | 36 const Pickle& data) OVERRIDE; |
37 virtual bool GetString(base::string16* data) const OVERRIDE; | 37 virtual bool GetString(base::string16* data) const OVERRIDE; |
38 virtual bool GetURLAndTitle(GURL* url, base::string16* title) const OVERRIDE; | 38 virtual bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, |
| 39 GURL* url, |
| 40 base::string16* title) const OVERRIDE; |
39 virtual bool GetFilename(base::FilePath* path) const OVERRIDE; | 41 virtual bool GetFilename(base::FilePath* path) const OVERRIDE; |
40 virtual bool GetFilenames( | 42 virtual bool GetFilenames( |
41 std::vector<OSExchangeData::FileInfo>* filenames) const OVERRIDE; | 43 std::vector<OSExchangeData::FileInfo>* filenames) const OVERRIDE; |
42 virtual bool GetPickledData(const OSExchangeData::CustomFormat& format, | 44 virtual bool GetPickledData(const OSExchangeData::CustomFormat& format, |
43 Pickle* data) const OVERRIDE; | 45 Pickle* data) const OVERRIDE; |
44 virtual bool HasString() const OVERRIDE; | 46 virtual bool HasString() const OVERRIDE; |
45 virtual bool HasURL() const OVERRIDE; | 47 virtual bool HasURL() const OVERRIDE; |
46 virtual bool HasFile() const OVERRIDE; | 48 virtual bool HasFile() const OVERRIDE; |
47 virtual bool HasCustomFormat(const OSExchangeData::CustomFormat& format) const | 49 virtual bool HasCustomFormat(const OSExchangeData::CustomFormat& format) const |
48 OVERRIDE; | 50 OVERRIDE; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // For HTML format | 89 // For HTML format |
88 base::string16 html_; | 90 base::string16 html_; |
89 GURL base_url_; | 91 GURL base_url_; |
90 | 92 |
91 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura); | 93 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura); |
92 }; | 94 }; |
93 | 95 |
94 } // namespace ui | 96 } // namespace ui |
95 | 97 |
96 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ | 98 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ |
OLD | NEW |