OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 void GetLocalPathsOnFileThread(const UrlList& file_urls, | 119 void GetLocalPathsOnFileThread(const UrlList& file_urls, |
120 const std::string& internal_task_id); | 120 const std::string& internal_task_id); |
121 | 121 |
122 // Callback with converted local paths. | 122 // Callback with converted local paths. |
123 virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files, | 123 virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files, |
124 const std::string& internal_task_id) {} | 124 const std::string& internal_task_id) {} |
125 | 125 |
126 // Get the callback for the hosting tab. | 126 // Get the callback for the hosting tab. |
127 const Callback& GetCallback() const; | 127 const Callback& GetCallback() const; |
128 | 128 |
| 129 // Remove the callback for the hosting tab. |
| 130 void RemoveCallback(); |
| 131 |
129 private: | 132 private: |
130 // Figure out the tab_id of the hosting tab. | 133 // Figure out the tab_id of the hosting tab. |
131 int32 GetTabId() const; | 134 int32 GetTabId() const; |
132 }; | 135 }; |
133 | 136 |
134 // Select a single file. Closes the dialog window. | 137 // Select a single file. Closes the dialog window. |
135 class SelectFileFunction | 138 class SelectFileFunction |
136 : public FileDialogFunction { | 139 : public FileDialogFunction { |
137 public: | 140 public: |
138 SelectFileFunction() {} | 141 SelectFileFunction() {} |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 virtual ~FileDialogStringsFunction() {} | 219 virtual ~FileDialogStringsFunction() {} |
217 | 220 |
218 // SyncExtensionFunction overrides. | 221 // SyncExtensionFunction overrides. |
219 virtual bool RunImpl() OVERRIDE; | 222 virtual bool RunImpl() OVERRIDE; |
220 | 223 |
221 private: | 224 private: |
222 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); | 225 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); |
223 }; | 226 }; |
224 | 227 |
225 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ | 228 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ |
OLD | NEW |