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) |
201 // Find the list of Web Intent tasks that can be used with the given file | 202 // Find the list of Web Intent tasks that can be used with the given file |
202 // types, appending them to the |result_list|. | 203 // types, appending them to the |result_list|. |
203 bool FindWebIntentTasks(const std::vector<FilePath>& file_paths, | 204 bool FindWebIntentTasks(const std::vector<FilePath>& file_paths, |
204 ListValue* result_list); | 205 ListValue* result_list); |
| 206 #endif |
205 | 207 |
206 // Find the list of app file handlers that can be used with the given file | 208 // Find the list of app file handlers that can be used with the given file |
207 // types, appending them to the |result_list|. | 209 // types, appending them to the |result_list|. |
208 bool FindAppTasks(const std::vector<FilePath>& file_paths, | 210 bool FindAppTasks(const std::vector<FilePath>& file_paths, |
209 ListValue* result_list); | 211 ListValue* result_list); |
210 }; | 212 }; |
211 | 213 |
212 // Implements the chrome.fileBrowserPrivate.executeTask method. | 214 // Implements the chrome.fileBrowserPrivate.executeTask method. |
213 class ExecuteTasksFileBrowserFunction : public AsyncExtensionFunction { | 215 class ExecuteTasksFileBrowserFunction : public AsyncExtensionFunction { |
214 public: | 216 public: |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
849 protected: | 851 protected: |
850 virtual ~ValidatePathNameLengthFunction(); | 852 virtual ~ValidatePathNameLengthFunction(); |
851 | 853 |
852 void OnFilePathLimitRetrieved(size_t current_length, size_t max_length); | 854 void OnFilePathLimitRetrieved(size_t current_length, size_t max_length); |
853 | 855 |
854 // AsyncExtensionFunction overrides. | 856 // AsyncExtensionFunction overrides. |
855 virtual bool RunImpl() OVERRIDE; | 857 virtual bool RunImpl() OVERRIDE; |
856 }; | 858 }; |
857 | 859 |
858 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 860 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
OLD | NEW |