Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2763)

Unified Diff: android_webview/browser/aw_devtools_manager_delegate.h

Issue 2300703005: DevTools: merge devtools_http_handler into content - it is used in all the embedders anyways. (Closed)
Patch Set: for_landing! Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/aw_devtools_manager_delegate.h
diff --git a/android_webview/browser/aw_devtools_manager_delegate.h b/android_webview/browser/aw_devtools_manager_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..d983c2b860cb8021d5bc796820c8e38c8fb1e82c
--- /dev/null
+++ b/android_webview/browser/aw_devtools_manager_delegate.h
@@ -0,0 +1,39 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ANDROID_WEBVIEW_NATIVE_AW_DEVTOOLS_MANAGER_DELEGATE_H_
+#define ANDROID_WEBVIEW_NATIVE_AW_DEVTOOLS_MANAGER_DELEGATE_H_
+
+#include <jni.h>
+
+#include <memory>
+#include <vector>
+
+#include "base/macros.h"
+#include "content/public/browser/devtools_manager_delegate.h"
+
+namespace android_webview {
+
+// Delegate implementation for the devtools http handler for WebView. A new
+// instance of this gets created each time web debugging is enabled.
+class AwDevToolsManagerDelegate : public content::DevToolsManagerDelegate {
+ public:
+ AwDevToolsManagerDelegate();
+ ~AwDevToolsManagerDelegate() override;
+
+ // content::DevToolsManagerDelegate implementation.
+ void Inspect(content::DevToolsAgentHost* agent_host) override;
+ void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host,
+ bool attached) override;
+ std::string GetTargetType(content::RenderFrameHost* host) override;
+ std::string GetTargetDescription(content::RenderFrameHost* host) override;
+ std::string GetDiscoveryPageHTML() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(AwDevToolsManagerDelegate);
+};
+
+} // namespace android_webview
+
+#endif // ANDROID_WEBVIEW_NATIVE_AW_DEVTOOLS_MANAGER_DELEGATE_H_
« no previous file with comments | « android_webview/browser/aw_dev_tools_discovery_provider.cc ('k') | android_webview/browser/aw_devtools_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698