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

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

Issue 997183005: [Extensions] Add a developerPrivate.updateExtensionConfiguration function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 DECLARE_EXTENSION_FUNCTION("developerPrivate.inspect", 231 DECLARE_EXTENSION_FUNCTION("developerPrivate.inspect",
232 DEVELOPERPRIVATE_INSPECT) 232 DEVELOPERPRIVATE_INSPECT)
233 233
234 protected: 234 protected:
235 ~DeveloperPrivateInspectFunction() override; 235 ~DeveloperPrivateInspectFunction() override;
236 236
237 // ExtensionFunction: 237 // ExtensionFunction:
238 ResponseAction Run() override; 238 ResponseAction Run() override;
239 }; 239 };
240 240
241 class DeveloperPrivateAllowFileAccessFunction 241 class DeveloperPrivateUpdateExtensionConfigurationFunction
242 : public DeveloperPrivateAPIFunction { 242 : public DeveloperPrivateAPIFunction {
243 public: 243 public:
244 DECLARE_EXTENSION_FUNCTION("developerPrivate.allowFileAccess", 244 DECLARE_EXTENSION_FUNCTION("developerPrivate.updateExtensionConfiguration",
245 DEVELOPERPRIVATE_ALLOWFILEACCESS); 245 DEVELOPERPRIVATE_UPDATEEXTENSIONCONFIGURATION);
246 246
247 protected: 247 protected:
248 ~DeveloperPrivateAllowFileAccessFunction() override; 248 ~DeveloperPrivateUpdateExtensionConfigurationFunction() override;
249
250 // ExtensionFunction:
251 ResponseAction Run() override; 249 ResponseAction Run() override;
252 }; 250 };
253 251
254 class DeveloperPrivateAllowIncognitoFunction
255 : public DeveloperPrivateAPIFunction {
256 public:
257 DECLARE_EXTENSION_FUNCTION("developerPrivate.allowIncognito",
258 DEVELOPERPRIVATE_ALLOWINCOGNITO);
259
260 protected:
261 ~DeveloperPrivateAllowIncognitoFunction() override;
262
263 // UIThreadExtensionFunction:
264 ResponseAction Run() override;
265 };
266
267 class DeveloperPrivateReloadFunction : public DeveloperPrivateAPIFunction { 252 class DeveloperPrivateReloadFunction : public DeveloperPrivateAPIFunction {
268 public: 253 public:
269 DECLARE_EXTENSION_FUNCTION("developerPrivate.reload", 254 DECLARE_EXTENSION_FUNCTION("developerPrivate.reload",
270 DEVELOPERPRIVATE_RELOAD); 255 DEVELOPERPRIVATE_RELOAD);
271 256
272 protected: 257 protected:
273 ~DeveloperPrivateReloadFunction() override; 258 ~DeveloperPrivateReloadFunction() override;
274 259
275 // ExtensionFunction: 260 // ExtensionFunction:
276 ResponseAction Run() override; 261 ResponseAction Run() override;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 protected: 451 protected:
467 ~DeveloperPrivateOpenDevToolsFunction() override; 452 ~DeveloperPrivateOpenDevToolsFunction() override;
468 ResponseAction Run() override; 453 ResponseAction Run() override;
469 }; 454 };
470 455
471 } // namespace api 456 } // namespace api
472 457
473 } // namespace extensions 458 } // namespace extensions
474 459
475 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_ 460 #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