| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 void GetLocalPathsOnFileThread(const UrlList& file_urls, | 160 void GetLocalPathsOnFileThread(const UrlList& file_urls, |
| 161 const std::string& internal_task_id); | 161 const std::string& internal_task_id); |
| 162 | 162 |
| 163 // Callback with converted local paths. | 163 // Callback with converted local paths. |
| 164 virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files, | 164 virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files, |
| 165 const std::string& internal_task_id) {} | 165 const std::string& internal_task_id) {} |
| 166 | 166 |
| 167 // Get the callback for the hosting tab. | 167 // Get the callback for the hosting tab. |
| 168 const Callback& GetCallback() const; | 168 const Callback& GetCallback() const; |
| 169 | 169 |
| 170 // Remove the callback for the hosting tab. |
| 171 void RemoveCallback(); |
| 172 |
| 170 private: | 173 private: |
| 171 // Figure out the tab_id of the hosting tab. | 174 // Figure out the tab_id of the hosting tab. |
| 172 int32 GetTabId() const; | 175 int32 GetTabId() const; |
| 173 }; | 176 }; |
| 174 | 177 |
| 175 // Select a single file. Closes the dialog window. | 178 // Select a single file. Closes the dialog window. |
| 176 class SelectFileFunction | 179 class SelectFileFunction |
| 177 : public FileDialogFunction { | 180 : public FileDialogFunction { |
| 178 public: | 181 public: |
| 179 SelectFileFunction() {} | 182 SelectFileFunction() {} |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 virtual ~FileDialogStringsFunction() {} | 260 virtual ~FileDialogStringsFunction() {} |
| 258 | 261 |
| 259 // SyncExtensionFunction overrides. | 262 // SyncExtensionFunction overrides. |
| 260 virtual bool RunImpl() OVERRIDE; | 263 virtual bool RunImpl() OVERRIDE; |
| 261 | 264 |
| 262 private: | 265 private: |
| 263 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); | 266 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); |
| 264 }; | 267 }; |
| 265 | 268 |
| 266 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ | 269 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ |
| OLD | NEW |