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

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

Issue 2335213004: [Extensions] Convert some ChromeSyncExtensionFunctions (Closed)
Patch Set: Created 4 years, 3 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
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 std::unique_ptr<app_file_handler_util::IsDirectoryCollector> 74 std::unique_ptr<app_file_handler_util::IsDirectoryCollector>
75 is_directory_collector_; 75 is_directory_collector_;
76 std::unique_ptr<app_file_handler_util::MimeTypeCollector> 76 std::unique_ptr<app_file_handler_util::MimeTypeCollector>
77 mime_type_collector_; 77 mime_type_collector_;
78 std::vector<GURL> urls_; 78 std::vector<GURL> urls_;
79 std::vector<base::FilePath> local_paths_; 79 std::vector<base::FilePath> local_paths_;
80 }; 80 };
81 81
82 // Implements the chrome.fileManagerPrivateInternal.setDefaultTask method. 82 // Implements the chrome.fileManagerPrivateInternal.setDefaultTask method.
83 class FileManagerPrivateInternalSetDefaultTaskFunction 83 class FileManagerPrivateInternalSetDefaultTaskFunction
84 : public ChromeSyncExtensionFunction { 84 : public UIThreadExtensionFunction {
85 public: 85 public:
86 DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.setDefaultTask", 86 DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.setDefaultTask",
87 FILEMANAGERPRIVATEINTERNAL_SETDEFAULTTASK) 87 FILEMANAGERPRIVATEINTERNAL_SETDEFAULTTASK)
88 88
89 protected: 89 protected:
90 ~FileManagerPrivateInternalSetDefaultTaskFunction() override {} 90 ~FileManagerPrivateInternalSetDefaultTaskFunction() override {}
91 91
92 // SyncExtensionFunction overrides. 92 // ExtensionFunction:
93 bool RunSync() override; 93 ResponseAction Run() override;
94 }; 94 };
95 95
96 } // namespace extensions 96 } // namespace extensions
97 97
98 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_TASKS_H_ 98 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_TASKS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698