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

Unified Diff: content/browser/devtools/devtools_frontend_host_impl.h

Issue 427143003: [DevTools] Move DevToolsClientHost functionality out of DevToolsFrontendHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments Created 6 years, 5 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: content/browser/devtools/devtools_frontend_host_impl.h
diff --git a/content/browser/devtools/devtools_frontend_host_impl.h b/content/browser/devtools/devtools_frontend_host_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..2ccb3a39e81e2475d2ee6f6f362820e72ac3cdbf
--- /dev/null
+++ b/content/browser/devtools/devtools_frontend_host_impl.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2012 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 CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_
+#define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_
+
+#include "content/public/browser/devtools_frontend_host.h"
+#include "content/public/browser/web_contents_observer.h"
+
+namespace content {
+
+class DevToolsFrontendHostImpl : public DevToolsFrontendHost,
+ public WebContentsObserver {
+ public:
+ DevToolsFrontendHostImpl(RenderViewHost* frontend_rvh,
+ DevToolsFrontendHost::Delegate* delegate);
+ virtual ~DevToolsFrontendHostImpl();
+
+ // DevToolsFrontendHost implementation.
+ virtual void DispatchOnDevToolsFrontend(const std::string& message) OVERRIDE;
+
+ private:
+ // WebContentsObserver overrides.
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+
+ void OnDispatchOnInspectorBackend(const std::string& message);
+ void OnDispatchOnEmbedder(const std::string& message);
+
+ DevToolsFrontendHost::Delegate* delegate_;
+ DISALLOW_COPY_AND_ASSIGN(DevToolsFrontendHostImpl);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_HOST_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698