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

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
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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 DECLARE_EXTENSION_FUNCTION("developerPrivate.inspect", 232 DECLARE_EXTENSION_FUNCTION("developerPrivate.inspect",
233 DEVELOPERPRIVATE_INSPECT) 233 DEVELOPERPRIVATE_INSPECT)
234 234
235 protected: 235 protected:
236 ~DeveloperPrivateInspectFunction() override; 236 ~DeveloperPrivateInspectFunction() override;
237 237
238 // ExtensionFunction: 238 // ExtensionFunction:
239 ResponseAction Run() override; 239 ResponseAction Run() override;
240 }; 240 };
241 241
242 class DeveloperPrivateAllowFileAccessFunction 242 class DeveloperPrivateSetExtensionPermissionFunction
243 : public DeveloperPrivateAPIFunction { 243 : public DeveloperPrivateAPIFunction {
244 public: 244 public:
245 DECLARE_EXTENSION_FUNCTION("developerPrivate.allowFileAccess", 245 DECLARE_EXTENSION_FUNCTION("developerPrivate.setExtensionPermission",
246 DEVELOPERPRIVATE_ALLOWFILEACCESS); 246 DEVELOPERPRIVATE_SETEXTENSIONPERMISSION);
247 247
248 protected: 248 protected:
249 ~DeveloperPrivateAllowFileAccessFunction() override; 249 ~DeveloperPrivateSetExtensionPermissionFunction() override;
250
251 // ExtensionFunction:
252 ResponseAction Run() override; 250 ResponseAction Run() override;
253 }; 251 };
254 252
255 class DeveloperPrivateAllowIncognitoFunction
256 : public DeveloperPrivateAPIFunction {
257 public:
258 DECLARE_EXTENSION_FUNCTION("developerPrivate.allowIncognito",
259 DEVELOPERPRIVATE_ALLOWINCOGNITO);
260
261 protected:
262 ~DeveloperPrivateAllowIncognitoFunction() override;
263
264 // UIThreadExtensionFunction:
265 ResponseAction Run() override;
266 };
267
268 class DeveloperPrivateReloadFunction : public DeveloperPrivateAPIFunction { 253 class DeveloperPrivateReloadFunction : public DeveloperPrivateAPIFunction {
269 public: 254 public:
270 DECLARE_EXTENSION_FUNCTION("developerPrivate.reload", 255 DECLARE_EXTENSION_FUNCTION("developerPrivate.reload",
271 DEVELOPERPRIVATE_RELOAD); 256 DEVELOPERPRIVATE_RELOAD);
272 257
273 protected: 258 protected:
274 ~DeveloperPrivateReloadFunction() override; 259 ~DeveloperPrivateReloadFunction() override;
275 260
276 // ExtensionFunction: 261 // ExtensionFunction:
277 ResponseAction Run() override; 262 ResponseAction Run() override;
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 protected: 457 protected:
473 ~DeveloperPrivateOpenDevToolsFunction() override; 458 ~DeveloperPrivateOpenDevToolsFunction() override;
474 ResponseAction Run() override; 459 ResponseAction Run() override;
475 }; 460 };
476 461
477 } // namespace api 462 } // namespace api
478 463
479 } // namespace extensions 464 } // namespace extensions
480 465
481 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_ 466 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698