| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_NATIVE_AW_DEVTOOLS_MANAGER_DELEGATE_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_DEVTOOLS_MANAGER_DELEGATE_H_ |
| 6 #define ANDROID_WEBVIEW_NATIVE_AW_DEVTOOLS_MANAGER_DELEGATE_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_DEVTOOLS_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "content/public/browser/devtools_manager_delegate.h" | 14 #include "content/public/browser/devtools_manager_delegate.h" |
| 15 | 15 |
| 16 namespace android_webview { | 16 namespace android_webview { |
| 17 | 17 |
| 18 // Delegate implementation for the devtools http handler for WebView. A new | 18 // Delegate implementation for the devtools http handler for WebView. A new |
| 19 // instance of this gets created each time web debugging is enabled. | 19 // instance of this gets created each time web debugging is enabled. |
| 20 class AwDevToolsManagerDelegate : public content::DevToolsManagerDelegate { | 20 class AwDevToolsManagerDelegate : public content::DevToolsManagerDelegate { |
| 21 public: | 21 public: |
| 22 AwDevToolsManagerDelegate(); | 22 AwDevToolsManagerDelegate(); |
| 23 ~AwDevToolsManagerDelegate() override; | 23 ~AwDevToolsManagerDelegate() override; |
| 24 | 24 |
| 25 // content::DevToolsManagerDelegate implementation. | 25 // content::DevToolsManagerDelegate implementation. |
| 26 void Inspect(content::DevToolsAgentHost* agent_host) override; | 26 void Inspect(content::DevToolsAgentHost* agent_host) override; |
| 27 void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host, | 27 void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host, |
| 28 bool attached) override; | 28 bool attached) override; |
| 29 std::string GetTargetType(content::RenderFrameHost* host) override; | |
| 30 std::string GetTargetDescription(content::RenderFrameHost* host) override; | 29 std::string GetTargetDescription(content::RenderFrameHost* host) override; |
| 31 std::string GetDiscoveryPageHTML() override; | 30 std::string GetDiscoveryPageHTML() override; |
| 32 | 31 |
| 33 private: | 32 private: |
| 34 DISALLOW_COPY_AND_ASSIGN(AwDevToolsManagerDelegate); | 33 DISALLOW_COPY_AND_ASSIGN(AwDevToolsManagerDelegate); |
| 35 }; | 34 }; |
| 36 | 35 |
| 37 } // namespace android_webview | 36 } // namespace android_webview |
| 38 | 37 |
| 39 #endif // ANDROID_WEBVIEW_NATIVE_AW_DEVTOOLS_MANAGER_DELEGATE_H_ | 38 #endif // ANDROID_WEBVIEW_NATIVE_AW_DEVTOOLS_MANAGER_DELEGATE_H_ |
| OLD | NEW |