Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(651)

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_tasks.h

Issue 1923953005: Files app: Prepare all information necessary for Arc task execution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698