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_MANAGER_FILE_BROWSER_PRIVATE_API
_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API
_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API
_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_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 18 matching lines...) Expand all Loading... |
29 class Value; | 29 class Value; |
30 } | 30 } |
31 | 31 |
32 namespace fileapi { | 32 namespace fileapi { |
33 class FileSystemContext; | 33 class FileSystemContext; |
34 class FileSystemURL; | 34 class FileSystemURL; |
35 } | 35 } |
36 | 36 |
37 namespace drive { | 37 namespace drive { |
38 class FileCacheEntry; | 38 class FileCacheEntry; |
39 class DriveWebAppsRegistry; | 39 class DriveAppRegistry; |
40 struct DriveWebAppInfo; | 40 struct DriveAppInfo; |
41 struct SearchResultInfo; | 41 struct SearchResultInfo; |
42 } | 42 } |
43 | 43 |
44 namespace ui { | 44 namespace ui { |
45 struct SelectedFileInfo; | 45 struct SelectedFileInfo; |
46 } | 46 } |
47 | 47 |
48 // Manages and registers the fileBrowserPrivate API with the extension system. | 48 // Manages and registers the fileBrowserPrivate API with the extension system. |
49 class FileBrowserPrivateAPI : public BrowserContextKeyedService { | 49 class FileBrowserPrivateAPI : public BrowserContextKeyedService { |
50 public: | 50 public: |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 225 |
226 // Holds fields to build a task result. | 226 // Holds fields to build a task result. |
227 struct TaskInfo; | 227 struct TaskInfo; |
228 | 228 |
229 // Map from a task id to TaskInfo. | 229 // Map from a task id to TaskInfo. |
230 typedef std::map<std::string, TaskInfo> TaskInfoMap; | 230 typedef std::map<std::string, TaskInfo> TaskInfoMap; |
231 | 231 |
232 // Looks up available apps for each file in |file_info_list| in the | 232 // Looks up available apps for each file in |file_info_list| in the |
233 // |registry|, and returns the intersection of all available apps as a | 233 // |registry|, and returns the intersection of all available apps as a |
234 // map from task id to TaskInfo. | 234 // map from task id to TaskInfo. |
235 static void GetAvailableDriveTasks(drive::DriveWebAppsRegistry* registry, | 235 static void GetAvailableDriveTasks(drive::DriveAppRegistry* registry, |
236 const FileInfoList& file_info_list, | 236 const FileInfoList& file_info_list, |
237 TaskInfoMap* task_info_map); | 237 TaskInfoMap* task_info_map); |
238 | 238 |
239 // Looks in the preferences and finds any of the available apps that are | 239 // Looks in the preferences and finds any of the available apps that are |
240 // also listed as default apps for any of the files in the info list. | 240 // also listed as default apps for any of the files in the info list. |
241 void FindDefaultDriveTasks(const FileInfoList& file_info_list, | 241 void FindDefaultDriveTasks(const FileInfoList& file_info_list, |
242 const TaskInfoMap& task_info_map, | 242 const TaskInfoMap& task_info_map, |
243 std::set<std::string>* default_tasks); | 243 std::set<std::string>* default_tasks); |
244 | 244 |
245 // Creates a list of each task in |task_info_map| and stores the result into | 245 // Creates a list of each task in |task_info_map| and stores the result into |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 OpenNewWindowFunction(); | 780 OpenNewWindowFunction(); |
781 | 781 |
782 protected: | 782 protected: |
783 virtual ~OpenNewWindowFunction(); | 783 virtual ~OpenNewWindowFunction(); |
784 | 784 |
785 // AsyncExtensionFunction overrides. | 785 // AsyncExtensionFunction overrides. |
786 virtual bool RunImpl() OVERRIDE; | 786 virtual bool RunImpl() OVERRIDE; |
787 }; | 787 }; |
788 | 788 |
789 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_
API_H_ | 789 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_
API_H_ |
OLD | NEW |