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

Unified Diff: android_webview/browser/aw_devtools_delegate.h

Issue 12378011: [Android WebView] Add simple support for remote web debugging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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_delegate.h
diff --git a/content/shell/shell_devtools_delegate.h b/android_webview/browser/aw_devtools_delegate.h
similarity index 51%
copy from content/shell/shell_devtools_delegate.h
copy to android_webview/browser/aw_devtools_delegate.h
index 03342dd33b6063bc6252134a006662bf8b5e1d58..0cd8dcbb4337c2d3b299a644a9d41ea07f73cdb8 100644
--- a/content/shell/shell_devtools_delegate.h
+++ b/android_webview/browser/aw_devtools_delegate.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_
-#define CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_
+#ifndef ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DELEGATE_H_
+#define ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DELEGATE_H_
#include <vector>
@@ -12,14 +12,16 @@
#include "content/public/browser/devtools_http_handler_delegate.h"
namespace content {
-
class BrowserContext;
class DevToolsHttpHandler;
+}
+
+namespace android_webview {
-class ShellDevToolsDelegate : public DevToolsHttpHandlerDelegate {
+class AwDevToolsDelegate : public content::DevToolsHttpHandlerDelegate {
public:
- ShellDevToolsDelegate(BrowserContext* browser_context, int port);
- virtual ~ShellDevToolsDelegate();
+ AwDevToolsDelegate(content::BrowserContext* browser_context);
+ virtual ~AwDevToolsDelegate();
// Stops http server.
void Stop();
@@ -29,20 +31,20 @@ class ShellDevToolsDelegate : public DevToolsHttpHandlerDelegate {
virtual bool BundlesFrontendResources() OVERRIDE;
virtual base::FilePath GetDebugFrontendDir() OVERRIDE;
virtual std::string GetPageThumbnailData(const GURL& url) OVERRIDE;
- virtual RenderViewHost* CreateNewTarget() OVERRIDE;
- virtual TargetType GetTargetType(RenderViewHost*) OVERRIDE;
+ virtual content::RenderViewHost* CreateNewTarget() OVERRIDE;
+ virtual TargetType GetTargetType(content::RenderViewHost*) OVERRIDE;
- DevToolsHttpHandler* devtools_http_handler() {
+ content::DevToolsHttpHandler* devtools_http_handler() {
return devtools_http_handler_;
}
private:
- BrowserContext* browser_context_;
- DevToolsHttpHandler* devtools_http_handler_;
+ content::BrowserContext* browser_context_;
+ content::DevToolsHttpHandler* devtools_http_handler_;
- DISALLOW_COPY_AND_ASSIGN(ShellDevToolsDelegate);
+ DISALLOW_COPY_AND_ASSIGN(AwDevToolsDelegate);
};
-} // namespace content
+} // namespace android_webview
-#endif // CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_
+#endif // ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698