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/browser/devtools/devtools_manager_impl.h" |
9 #include "content/public/browser/devtools_external_agent_proxy_delegate.h" | 9 #include "content/public/browser/devtools_external_agent_proxy_delegate.h" |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 } | 56 } |
57 | 57 |
58 scoped_refptr<DevToolsAgentHost> DevToolsExternalAgentProxyImpl:: | 58 scoped_refptr<DevToolsAgentHost> DevToolsExternalAgentProxyImpl:: |
59 GetAgentHost() { | 59 GetAgentHost() { |
60 return agent_host_; | 60 return agent_host_; |
61 } | 61 } |
62 | 62 |
63 void DevToolsExternalAgentProxyImpl::DispatchOnClientHost( | 63 void DevToolsExternalAgentProxyImpl::DispatchOnClientHost( |
64 const std::string& message) { | 64 const std::string& message) { |
65 DevToolsManagerImpl::GetInstance()->DispatchOnInspectorFrontend( | 65 DevToolsManagerImpl::GetInstance()->DispatchOnInspectorFrontend( |
66 agent_host_, message); | 66 agent_host_.get(), message); |
67 } | 67 } |
68 | 68 |
69 void DevToolsExternalAgentProxyImpl::ConnectionClosed() { | 69 void DevToolsExternalAgentProxyImpl::ConnectionClosed() { |
70 agent_host_->ConnectionClosed(); | 70 agent_host_->ConnectionClosed(); |
71 } | 71 } |
72 | 72 |
73 } // content | 73 } // content |
OLD | NEW |