| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |