| 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 ItemInspectViewList* result); | 221 ItemInspectViewList* result); |
| 222 | 222 |
| 223 linked_ptr<developer::ItemInspectView> constructInspectView( | 223 linked_ptr<developer::ItemInspectView> constructInspectView( |
| 224 const GURL& url, | 224 const GURL& url, |
| 225 int render_process_id, | 225 int render_process_id, |
| 226 int render_view_id, | 226 int render_view_id, |
| 227 bool incognito, | 227 bool incognito, |
| 228 bool generated_background_page); | 228 bool generated_background_page); |
| 229 }; | 229 }; |
| 230 | 230 |
| 231 class DeveloperPrivateInspectFunction : public ChromeSyncExtensionFunction { | 231 class DeveloperPrivateInspectFunction : public UIThreadExtensionFunction { |
| 232 public: | 232 public: |
| 233 DECLARE_EXTENSION_FUNCTION("developerPrivate.inspect", | 233 DECLARE_EXTENSION_FUNCTION("developerPrivate.inspect", |
| 234 DEVELOPERPRIVATE_INSPECT) | 234 DEVELOPERPRIVATE_INSPECT) |
| 235 | 235 |
| 236 protected: | 236 protected: |
| 237 ~DeveloperPrivateInspectFunction() override; | 237 ~DeveloperPrivateInspectFunction() override; |
| 238 | 238 |
| 239 // ExtensionFunction: | 239 // ExtensionFunction: |
| 240 bool RunSync() override; | 240 ResponseAction Run() override; |
| 241 }; | 241 }; |
| 242 | 242 |
| 243 class DeveloperPrivateAllowFileAccessFunction | 243 class DeveloperPrivateAllowFileAccessFunction |
| 244 : public DeveloperPrivateAPIFunction { | 244 : public DeveloperPrivateAPIFunction { |
| 245 public: | 245 public: |
| 246 DECLARE_EXTENSION_FUNCTION("developerPrivate.allowFileAccess", | 246 DECLARE_EXTENSION_FUNCTION("developerPrivate.allowFileAccess", |
| 247 DEVELOPERPRIVATE_ALLOWFILEACCESS); | 247 DEVELOPERPRIVATE_ALLOWFILEACCESS); |
| 248 | 248 |
| 249 protected: | 249 protected: |
| 250 ~DeveloperPrivateAllowFileAccessFunction() override; | 250 ~DeveloperPrivateAllowFileAccessFunction() override; |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 protected: | 473 protected: |
| 474 ~DeveloperPrivateOpenDevToolsFunction() override; | 474 ~DeveloperPrivateOpenDevToolsFunction() override; |
| 475 ResponseAction Run() override; | 475 ResponseAction Run() override; |
| 476 }; | 476 }; |
| 477 | 477 |
| 478 } // namespace api | 478 } // namespace api |
| 479 | 479 |
| 480 } // namespace extensions | 480 } // namespace extensions |
| 481 | 481 |
| 482 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ | 482 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ |
| OLD | NEW |