| 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_BROWSER_AW_DEVTOOLS_MANAGER_DELEGATE_H_ |
| 6 #define ANDROID_WEBVIEW_NATIVE_AW_DEVTOOLS_MANAGER_DELEGATE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_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 std::string GetTargetDescription(content::RenderFrameHost* host) override; | 26 std::string GetTargetDescription(content::RenderFrameHost* host) override; |
| 27 std::string GetDiscoveryPageHTML() override; | 27 std::string GetDiscoveryPageHTML() override; |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 DISALLOW_COPY_AND_ASSIGN(AwDevToolsManagerDelegate); | 30 DISALLOW_COPY_AND_ASSIGN(AwDevToolsManagerDelegate); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace android_webview | 33 } // namespace android_webview |
| 34 | 34 |
| 35 #endif // ANDROID_WEBVIEW_NATIVE_AW_DEVTOOLS_MANAGER_DELEGATE_H_ | 35 #endif // ANDROID_WEBVIEW_BROWSER_AW_DEVTOOLS_MANAGER_DELEGATE_H_ |
| OLD | NEW |