1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_EXTERNAL_AGENT_PROXY_IMPL_H
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_EXTERNAL_AGENT_PROXY_IMPL_H
8 #include "base/memory/ref_counted.h"
9 #include "content/public/browser/devtools_external_agent_proxy.h"
13 class DevToolsExternalAgentProxyImpl
14 : public DevToolsExternalAgentProxy {
16 explicit DevToolsExternalAgentProxyImpl(
17 DevToolsExternalAgentProxyDelegate* delegate);
18 virtual ~DevToolsExternalAgentProxyImpl();
20 // DevToolsExternalAgentProxy implementation.
21 virtual scoped_refptr<DevToolsAgentHost> GetAgentHost() OVERRIDE;
22 virtual void DispatchOnClientHost(const std::string& message) OVERRIDE;
23 virtual void ConnectionClosed() OVERRIDE;
26 class ForwardingAgentHost;
28 scoped_refptr<ForwardingAgentHost> agent_host_;
30 DISALLOW_COPY_AND_ASSIGN(DevToolsExternalAgentProxyImpl);
33 } // namespace content
35 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_EXTERNAL_AGENT_PROXY_IMPL_H