| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DISCOVERY_PROVIDER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DISCOVERY_PROVIDER_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DISCOVERY_PROVIDER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DISCOVERY_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "components/devtools_discovery/devtools_discovery_manager.h" | 8 #include "components/devtools_discovery/devtools_discovery_manager.h" |
| 9 | 9 |
| 10 namespace android_webview { | 10 namespace android_webview { |
| 11 | 11 |
| 12 class AwDevToolsDiscoveryProvider : | 12 class AwDevToolsDiscoveryProvider : |
| 13 public devtools_discovery::DevToolsDiscoveryManager::Provider { | 13 public devtools_discovery::DevToolsDiscoveryManager::Provider { |
| 14 public: | 14 public: |
| 15 AwDevToolsDiscoveryProvider(); | 15 // Installs provider to devtools_discovery. |
| 16 static void Install(); |
| 17 |
| 16 ~AwDevToolsDiscoveryProvider() override; | 18 ~AwDevToolsDiscoveryProvider() override; |
| 17 | 19 |
| 18 // devtools_discovery::DevToolsDiscoveryManager::Provider implementation. | 20 // devtools_discovery::DevToolsDiscoveryManager::Provider implementation. |
| 19 devtools_discovery::DevToolsTargetDescriptor::List GetDescriptors() override; | 21 devtools_discovery::DevToolsTargetDescriptor::List GetDescriptors() override; |
| 20 | 22 |
| 21 private: | 23 private: |
| 24 AwDevToolsDiscoveryProvider(); |
| 25 |
| 22 DISALLOW_COPY_AND_ASSIGN(AwDevToolsDiscoveryProvider); | 26 DISALLOW_COPY_AND_ASSIGN(AwDevToolsDiscoveryProvider); |
| 23 }; | 27 }; |
| 24 | 28 |
| 25 } // namespace android_webview | 29 } // namespace android_webview |
| 26 | 30 |
| 27 #endif // ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DISCOVERY_PROVIDER_H_ | 31 #endif // ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DISCOVERY_PROVIDER_H_ |
| OLD | NEW |