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 CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <string> | 10 #include <string> |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 const std::set<std::string>& available_apps, | 191 const std::set<std::string>& available_apps, |
192 std::set<std::string>* default_apps); | 192 std::set<std::string>* default_apps); |
193 | 193 |
194 // Find the list of drive apps that can be used with the given file types. If | 194 // Find the list of drive apps that can be used with the given file types. If |
195 // a default task is set in the result list, then |default_already_set| is set | 195 // a default task is set in the result list, then |default_already_set| is set |
196 // to true. | 196 // to true. |
197 bool FindDriveAppTasks(const FileInfoList& file_info_list, | 197 bool FindDriveAppTasks(const FileInfoList& file_info_list, |
198 ListValue* result_list, | 198 ListValue* result_list, |
199 bool* default_already_set); | 199 bool* default_already_set); |
200 | 200 |
201 #if defined(ENABLE_WEB_INTENTS) | |
202 // Find the list of Web Intent tasks that can be used with the given file | |
203 // types, appending them to the |result_list|. | |
204 bool FindWebIntentTasks(const std::vector<FilePath>& file_paths, | |
205 ListValue* result_list); | |
206 #endif | |
207 | |
208 // Find the list of app file handlers that can be used with the given file | 201 // Find the list of app file handlers that can be used with the given file |
209 // types, appending them to the |result_list|. | 202 // types, appending them to the |result_list|. |
210 bool FindAppTasks(const std::vector<FilePath>& file_paths, | 203 bool FindAppTasks(const std::vector<FilePath>& file_paths, |
211 ListValue* result_list); | 204 ListValue* result_list); |
212 }; | 205 }; |
213 | 206 |
214 // Implements the chrome.fileBrowserPrivate.executeTask method. | 207 // Implements the chrome.fileBrowserPrivate.executeTask method. |
215 class ExecuteTasksFileBrowserFunction : public AsyncExtensionFunction { | 208 class ExecuteTasksFileBrowserFunction : public AsyncExtensionFunction { |
216 public: | 209 public: |
217 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.executeTask", | 210 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.executeTask", |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 protected: | 844 protected: |
852 virtual ~ValidatePathNameLengthFunction(); | 845 virtual ~ValidatePathNameLengthFunction(); |
853 | 846 |
854 void OnFilePathLimitRetrieved(size_t current_length, size_t max_length); | 847 void OnFilePathLimitRetrieved(size_t current_length, size_t max_length); |
855 | 848 |
856 // AsyncExtensionFunction overrides. | 849 // AsyncExtensionFunction overrides. |
857 virtual bool RunImpl() OVERRIDE; | 850 virtual bool RunImpl() OVERRIDE; |
858 }; | 851 }; |
859 | 852 |
860 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 853 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
OLD | NEW |