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_ |