| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 : public DeveloperPrivateAPIFunction { | 219 : public DeveloperPrivateAPIFunction { |
| 220 public: | 220 public: |
| 221 DECLARE_EXTENSION_FUNCTION("developerPrivate.getExtensionInfo", | 221 DECLARE_EXTENSION_FUNCTION("developerPrivate.getExtensionInfo", |
| 222 DEVELOPERPRIVATE_GETEXTENSIONINFO); | 222 DEVELOPERPRIVATE_GETEXTENSIONINFO); |
| 223 | 223 |
| 224 private: | 224 private: |
| 225 ~DeveloperPrivateGetExtensionInfoFunction() override; | 225 ~DeveloperPrivateGetExtensionInfoFunction() override; |
| 226 ResponseAction Run() override; | 226 ResponseAction Run() override; |
| 227 }; | 227 }; |
| 228 | 228 |
| 229 class DeveloperPrivateInspectFunction : public UIThreadExtensionFunction { | |
| 230 public: | |
| 231 DECLARE_EXTENSION_FUNCTION("developerPrivate.inspect", | |
| 232 DEVELOPERPRIVATE_INSPECT) | |
| 233 | |
| 234 protected: | |
| 235 ~DeveloperPrivateInspectFunction() override; | |
| 236 | |
| 237 // ExtensionFunction: | |
| 238 ResponseAction Run() override; | |
| 239 }; | |
| 240 | |
| 241 class DeveloperPrivateAllowFileAccessFunction | 229 class DeveloperPrivateAllowFileAccessFunction |
| 242 : public DeveloperPrivateAPIFunction { | 230 : public DeveloperPrivateAPIFunction { |
| 243 public: | 231 public: |
| 244 DECLARE_EXTENSION_FUNCTION("developerPrivate.allowFileAccess", | 232 DECLARE_EXTENSION_FUNCTION("developerPrivate.allowFileAccess", |
| 245 DEVELOPERPRIVATE_ALLOWFILEACCESS); | 233 DEVELOPERPRIVATE_ALLOWFILEACCESS); |
| 246 | 234 |
| 247 protected: | 235 protected: |
| 248 ~DeveloperPrivateAllowFileAccessFunction() override; | 236 ~DeveloperPrivateAllowFileAccessFunction() override; |
| 249 | 237 |
| 250 // ExtensionFunction: | 238 // ExtensionFunction: |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 protected: | 454 protected: |
| 467 ~DeveloperPrivateOpenDevToolsFunction() override; | 455 ~DeveloperPrivateOpenDevToolsFunction() override; |
| 468 ResponseAction Run() override; | 456 ResponseAction Run() override; |
| 469 }; | 457 }; |
| 470 | 458 |
| 471 } // namespace api | 459 } // namespace api |
| 472 | 460 |
| 473 } // namespace extensions | 461 } // namespace extensions |
| 474 | 462 |
| 475 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ | 463 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ |
| OLD | NEW |