OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // This file provides task related API functions. | 5 // This file provides task related API functions. |
6 | 6 |
7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_TASKS_H_ | 7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_TASKS_H_ |
8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_TASKS_H_ | 8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_TASKS_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 private: | 62 private: |
63 void OnMimeTypesCollected( | 63 void OnMimeTypesCollected( |
64 std::unique_ptr<std::vector<std::string>> mime_types); | 64 std::unique_ptr<std::vector<std::string>> mime_types); |
65 | 65 |
66 void OnAreDirectoriesAndMimeTypesCollected( | 66 void OnAreDirectoriesAndMimeTypesCollected( |
67 std::unique_ptr<std::vector<std::string>> mime_types, | 67 std::unique_ptr<std::vector<std::string>> mime_types, |
68 std::unique_ptr<std::set<base::FilePath>> path_directory_set); | 68 std::unique_ptr<std::set<base::FilePath>> path_directory_set); |
69 | 69 |
70 void OnFileTasksListed( | 70 void OnFileTasksListed( |
71 const std::vector<file_manager::file_tasks::FullTaskDescriptor>& tasks); | 71 std::unique_ptr<std::vector<file_manager::file_tasks::FullTaskDescriptor>> |
| 72 tasks); |
72 | 73 |
73 std::unique_ptr<app_file_handler_util::IsDirectoryCollector> | 74 std::unique_ptr<app_file_handler_util::IsDirectoryCollector> |
74 is_directory_collector_; | 75 is_directory_collector_; |
75 std::unique_ptr<app_file_handler_util::MimeTypeCollector> | 76 std::unique_ptr<app_file_handler_util::MimeTypeCollector> |
76 mime_type_collector_; | 77 mime_type_collector_; |
77 std::vector<GURL> urls_; | 78 std::vector<GURL> urls_; |
78 std::vector<base::FilePath> local_paths_; | 79 std::vector<base::FilePath> local_paths_; |
79 }; | 80 }; |
80 | 81 |
81 // Implements the chrome.fileManagerPrivateInternal.setDefaultTask method. | 82 // Implements the chrome.fileManagerPrivateInternal.setDefaultTask method. |
82 class FileManagerPrivateInternalSetDefaultTaskFunction | 83 class FileManagerPrivateInternalSetDefaultTaskFunction |
83 : public ChromeSyncExtensionFunction { | 84 : public ChromeSyncExtensionFunction { |
84 public: | 85 public: |
85 DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.setDefaultTask", | 86 DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.setDefaultTask", |
86 FILEMANAGERPRIVATEINTERNAL_SETDEFAULTTASK) | 87 FILEMANAGERPRIVATEINTERNAL_SETDEFAULTTASK) |
87 | 88 |
88 protected: | 89 protected: |
89 ~FileManagerPrivateInternalSetDefaultTaskFunction() override {} | 90 ~FileManagerPrivateInternalSetDefaultTaskFunction() override {} |
90 | 91 |
91 // SyncExtensionFunction overrides. | 92 // SyncExtensionFunction overrides. |
92 bool RunSync() override; | 93 bool RunSync() override; |
93 }; | 94 }; |
94 | 95 |
95 } // namespace extensions | 96 } // namespace extensions |
96 | 97 |
97 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_TASKS_H_ | 98 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_TASKS_H_ |
OLD | NEW |