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

Side by Side Diff: chrome/browser/extensions/api/sync_file_system/sync_file_system_api.h

Issue 2399423004: [Extensions] Convert some ChromeSyncExtensionFunctions (Closed)
Patch Set: Created 4 years, 2 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 (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_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // Returns the file system context for this extension. 114 // Returns the file system context for this extension.
115 storage::FileSystemContext* GetFileSystemContext(); 115 storage::FileSystemContext* GetFileSystemContext();
116 116
117 void DidOpenFileSystem(const GURL& root_url, 117 void DidOpenFileSystem(const GURL& root_url,
118 const std::string& file_system_name, 118 const std::string& file_system_name,
119 base::File::Error error); 119 base::File::Error error);
120 }; 120 };
121 121
122 class SyncFileSystemSetConflictResolutionPolicyFunction 122 class SyncFileSystemSetConflictResolutionPolicyFunction
123 : public ChromeSyncExtensionFunction { 123 : public UIThreadExtensionFunction {
124 public: 124 public:
125 DECLARE_EXTENSION_FUNCTION("syncFileSystem.setConflictResolutionPolicy", 125 DECLARE_EXTENSION_FUNCTION("syncFileSystem.setConflictResolutionPolicy",
126 SYNCFILESYSTEM_SETCONFLICTRESOLUTIONPOLICY) 126 SYNCFILESYSTEM_SETCONFLICTRESOLUTIONPOLICY)
127 127
128 protected: 128 protected:
129 ~SyncFileSystemSetConflictResolutionPolicyFunction() override {} 129 ~SyncFileSystemSetConflictResolutionPolicyFunction() override {}
130 bool RunSync() override; 130 ResponseAction Run() override;
131 }; 131 };
132 132
133 class SyncFileSystemGetConflictResolutionPolicyFunction 133 class SyncFileSystemGetConflictResolutionPolicyFunction
134 : public ChromeSyncExtensionFunction { 134 : public UIThreadExtensionFunction {
135 public: 135 public:
136 DECLARE_EXTENSION_FUNCTION("syncFileSystem.getConflictResolutionPolicy", 136 DECLARE_EXTENSION_FUNCTION("syncFileSystem.getConflictResolutionPolicy",
137 SYNCFILESYSTEM_GETCONFLICTRESOLUTIONPOLICY) 137 SYNCFILESYSTEM_GETCONFLICTRESOLUTIONPOLICY)
138 138
139 protected: 139 protected:
140 ~SyncFileSystemGetConflictResolutionPolicyFunction() override {} 140 ~SyncFileSystemGetConflictResolutionPolicyFunction() override {}
141 bool RunSync() override; 141 ResponseAction Run() override;
142 }; 142 };
143 143
144 class SyncFileSystemGetServiceStatusFunction 144 class SyncFileSystemGetServiceStatusFunction
145 : public ChromeSyncExtensionFunction { 145 : public UIThreadExtensionFunction {
146 public: 146 public:
147 DECLARE_EXTENSION_FUNCTION("syncFileSystem.getServiceStatus", 147 DECLARE_EXTENSION_FUNCTION("syncFileSystem.getServiceStatus",
148 SYNCFILESYSTEM_GETSERVICESTATUS) 148 SYNCFILESYSTEM_GETSERVICESTATUS)
149 149
150 protected: 150 protected:
151 ~SyncFileSystemGetServiceStatusFunction() override {} 151 ~SyncFileSystemGetServiceStatusFunction() override {}
152 bool RunSync() override; 152 ResponseAction Run() override;
153 }; 153 };
154 154
155 } // namespace extensions 155 } // namespace extensions
156 156
157 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H _ 157 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698