OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/devtools/devtools_external_agent_proxy_impl.h" | 5 #include "content/browser/devtools/devtools_external_agent_proxy_impl.h" |
6 | 6 |
7 #include "content/browser/devtools/devtools_agent_host_impl.h" | 7 #include "content/browser/devtools/devtools_agent_host_impl.h" |
| 8 #include "content/browser/devtools/devtools_manager_impl.h" |
8 #include "content/public/browser/devtools_external_agent_proxy_delegate.h" | 9 #include "content/public/browser/devtools_external_agent_proxy_delegate.h" |
9 | 10 |
10 namespace content { | 11 namespace content { |
11 | 12 |
12 class DevToolsExternalAgentProxyImpl::ForwardingAgentHost | 13 class DevToolsExternalAgentProxyImpl::ForwardingAgentHost |
13 : public DevToolsAgentHostImpl { | 14 : public DevToolsAgentHostImpl { |
14 public: | 15 public: |
15 ForwardingAgentHost(DevToolsExternalAgentProxyDelegate* delegate) | 16 ForwardingAgentHost(DevToolsExternalAgentProxyDelegate* delegate) |
16 : delegate_(delegate) { | 17 : delegate_(delegate) { |
17 } | 18 } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 } | 53 } |
53 | 54 |
54 DevToolsExternalAgentProxyImpl::~DevToolsExternalAgentProxyImpl() { | 55 DevToolsExternalAgentProxyImpl::~DevToolsExternalAgentProxyImpl() { |
55 } | 56 } |
56 | 57 |
57 scoped_refptr<DevToolsAgentHost> DevToolsExternalAgentProxyImpl:: | 58 scoped_refptr<DevToolsAgentHost> DevToolsExternalAgentProxyImpl:: |
58 GetAgentHost() { | 59 GetAgentHost() { |
59 return agent_host_; | 60 return agent_host_; |
60 } | 61 } |
61 | 62 |
| 63 void DevToolsExternalAgentProxyImpl::DispatchOnClientHost( |
| 64 const std::string& message) { |
| 65 DevToolsManagerImpl::GetInstance()->DispatchOnInspectorFrontend( |
| 66 agent_host_, message); |
| 67 } |
| 68 |
62 void DevToolsExternalAgentProxyImpl::ConnectionClosed() { | 69 void DevToolsExternalAgentProxyImpl::ConnectionClosed() { |
63 agent_host_->ConnectionClosed(); | 70 agent_host_->ConnectionClosed(); |
64 } | 71 } |
65 | 72 |
66 } // content | 73 } // content |
OLD | NEW |