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

Side by Side Diff: chrome/browser/extensions/api/developer_private/developer_private_api.h

Issue 1060993003: [Extensions UI] Use developerPrivate API for profile configuration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/extensions/api/developer_private/developer_private_api.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 (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_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 base::FilePath last_unpacked_directory_; 160 base::FilePath last_unpacked_directory_;
161 161
162 // Created lazily upon OnListenerAdded. 162 // Created lazily upon OnListenerAdded.
163 scoped_ptr<DeveloperPrivateEventRouter> developer_private_event_router_; 163 scoped_ptr<DeveloperPrivateEventRouter> developer_private_event_router_;
164 164
165 DISALLOW_COPY_AND_ASSIGN(DeveloperPrivateAPI); 165 DISALLOW_COPY_AND_ASSIGN(DeveloperPrivateAPI);
166 }; 166 };
167 167
168 namespace api { 168 namespace api {
169 169
170 class DeveloperPrivateAPIFunction : public UIThreadExtensionFunction { 170 class DeveloperPrivateAPIFunction : public ChromeUIThreadExtensionFunction {
171 protected: 171 protected:
172 ~DeveloperPrivateAPIFunction() override; 172 ~DeveloperPrivateAPIFunction() override;
173 173
174 // Returns the extension with the given |id| from the registry, including 174 // Returns the extension with the given |id| from the registry, including
175 // all possible extensions (enabled, disabled, terminated, etc). 175 // all possible extensions (enabled, disabled, terminated, etc).
176 const Extension* GetExtensionById(const std::string& id); 176 const Extension* GetExtensionById(const std::string& id);
177 }; 177 };
178 178
179 class DeveloperPrivateAutoUpdateFunction : public ChromeSyncExtensionFunction { 179 class DeveloperPrivateAutoUpdateFunction : public ChromeSyncExtensionFunction {
180 public: 180 public:
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 : public DeveloperPrivateAPIFunction { 221 : public DeveloperPrivateAPIFunction {
222 public: 222 public:
223 DECLARE_EXTENSION_FUNCTION("developerPrivate.getExtensionInfo", 223 DECLARE_EXTENSION_FUNCTION("developerPrivate.getExtensionInfo",
224 DEVELOPERPRIVATE_GETEXTENSIONINFO); 224 DEVELOPERPRIVATE_GETEXTENSIONINFO);
225 225
226 private: 226 private:
227 ~DeveloperPrivateGetExtensionInfoFunction() override; 227 ~DeveloperPrivateGetExtensionInfoFunction() override;
228 ResponseAction Run() override; 228 ResponseAction Run() override;
229 }; 229 };
230 230
231 class DeveloperPrivateGetProfileConfigurationFunction
232 : public DeveloperPrivateAPIFunction {
233 public:
234 DECLARE_EXTENSION_FUNCTION("developerPrivate.getProfileConfiguration",
235 DEVELOPERPRIVATE_GETPROFILECONFIGURATION);
236
237 private:
238 ~DeveloperPrivateGetProfileConfigurationFunction() override;
239 ResponseAction Run() override;
240 };
241
242 class DeveloperPrivateUpdateProfileConfigurationFunction
243 : public DeveloperPrivateAPIFunction {
244 public:
245 DECLARE_EXTENSION_FUNCTION("developerPrivate.updateProfileConfiguration",
246 DEVELOPERPRIVATE_UPDATEPROFILECONFIGURATION);
247
248 private:
249 ~DeveloperPrivateUpdateProfileConfigurationFunction() override;
250 ResponseAction Run() override;
251 };
252
231 class DeveloperPrivateUpdateExtensionConfigurationFunction 253 class DeveloperPrivateUpdateExtensionConfigurationFunction
232 : public DeveloperPrivateAPIFunction { 254 : public DeveloperPrivateAPIFunction {
233 public: 255 public:
234 DECLARE_EXTENSION_FUNCTION("developerPrivate.updateExtensionConfiguration", 256 DECLARE_EXTENSION_FUNCTION("developerPrivate.updateExtensionConfiguration",
235 DEVELOPERPRIVATE_UPDATEEXTENSIONCONFIGURATION); 257 DEVELOPERPRIVATE_UPDATEEXTENSIONCONFIGURATION);
236 258
237 protected: 259 protected:
238 ~DeveloperPrivateUpdateExtensionConfigurationFunction() override; 260 ~DeveloperPrivateUpdateExtensionConfigurationFunction() override;
239 ResponseAction Run() override; 261 ResponseAction Run() override;
240 }; 262 };
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 protected: 474 protected:
453 ~DeveloperPrivateDeleteExtensionErrorsFunction() override; 475 ~DeveloperPrivateDeleteExtensionErrorsFunction() override;
454 ResponseAction Run() override; 476 ResponseAction Run() override;
455 }; 477 };
456 478
457 } // namespace api 479 } // namespace api
458 480
459 } // namespace extensions 481 } // namespace extensions
460 482
461 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_ 483 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/developer_private/developer_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698