| 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 <string> | 9 #include <string> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // the |available_apps|. | 151 // the |available_apps|. |
| 152 static void CreateDriveTasks(gdata::DriveWebAppsRegistry* registry, | 152 static void CreateDriveTasks(gdata::DriveWebAppsRegistry* registry, |
| 153 const WebAppInfoMap& app_info, | 153 const WebAppInfoMap& app_info, |
| 154 const std::set<std::string>& available_apps, | 154 const std::set<std::string>& available_apps, |
| 155 ListValue* result_list); | 155 ListValue* result_list); |
| 156 | 156 |
| 157 // Find the list of drive apps that can be used with the given file types. | 157 // Find the list of drive apps that can be used with the given file types. |
| 158 bool FindDriveAppTasks(const FileInfoList& file_info_list, | 158 bool FindDriveAppTasks(const FileInfoList& file_info_list, |
| 159 ListValue* result_list); | 159 ListValue* result_list); |
| 160 | 160 |
| 161 bool FindWebIntentTasks(const std::vector<GURL>& file_urls, |
| 162 ListValue* result_list); |
| 161 }; | 163 }; |
| 162 | 164 |
| 163 // Implements the chrome.fileBrowserPrivate.executeTask method. | 165 // Implements the chrome.fileBrowserPrivate.executeTask method. |
| 164 class ExecuteTasksFileBrowserFunction : public AsyncExtensionFunction { | 166 class ExecuteTasksFileBrowserFunction : public AsyncExtensionFunction { |
| 165 public: | 167 public: |
| 166 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.executeTask"); | 168 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.executeTask"); |
| 167 | 169 |
| 168 ExecuteTasksFileBrowserFunction(); | 170 ExecuteTasksFileBrowserFunction(); |
| 169 | 171 |
| 170 void OnTaskExecuted(bool success); | 172 void OnTaskExecuted(bool success); |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 DECLARE_EXTENSION_FUNCTION_NAME( | 737 DECLARE_EXTENSION_FUNCTION_NAME( |
| 736 "fileBrowserPrivate.requestDirectoryRefresh"); | 738 "fileBrowserPrivate.requestDirectoryRefresh"); |
| 737 | 739 |
| 738 protected: | 740 protected: |
| 739 virtual ~RequestDirectoryRefreshFunction() {} | 741 virtual ~RequestDirectoryRefreshFunction() {} |
| 740 | 742 |
| 741 virtual bool RunImpl() OVERRIDE; | 743 virtual bool RunImpl() OVERRIDE; |
| 742 }; | 744 }; |
| 743 | 745 |
| 744 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 746 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
| OLD | NEW |