summaryrefslogtreecommitdiffstats
path: root/chromium/content/browser/devtools/forwarding_agent_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/devtools/forwarding_agent_host.h')
-rw-r--r--chromium/content/browser/devtools/forwarding_agent_host.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/chromium/content/browser/devtools/forwarding_agent_host.h b/chromium/content/browser/devtools/forwarding_agent_host.h
new file mode 100644
index 00000000000..81e4aed5419
--- /dev/null
+++ b/chromium/content/browser/devtools/forwarding_agent_host.h
@@ -0,0 +1,39 @@
+// Copyright 2014 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_FORWARDING_AGENT_HOST_H
+#define CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H
+
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
+#include "content/browser/devtools/devtools_agent_host_impl.h"
+#include "content/public/browser/devtools_external_agent_proxy.h"
+#include "content/public/browser/devtools_external_agent_proxy_delegate.h"
+
+namespace content {
+
+class ForwardingAgentHost
+ : public DevToolsAgentHostImpl,
+ public DevToolsExternalAgentProxy {
+ public:
+ ForwardingAgentHost(DevToolsExternalAgentProxyDelegate* delegate);
+
+ private:
+ virtual ~ForwardingAgentHost();
+
+ // DevToolsExternalAgentProxy implementation.
+ virtual void DispatchOnClientHost(const std::string& message) OVERRIDE;
+ virtual void ConnectionClosed() OVERRIDE;
+
+ // DevToolsAgentHostImpl implementation.
+ virtual void Attach() OVERRIDE;
+ virtual void Detach() OVERRIDE;
+ virtual void DispatchOnInspectorBackend(const std::string& message) OVERRIDE;
+
+ scoped_ptr<DevToolsExternalAgentProxyDelegate> delegate_;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H