OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/forwarding_agent_host.h" | 5 #include "content/browser/devtools/forwarding_agent_host.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "content/browser/devtools/protocol/inspector_handler.h" | 8 #include "content/browser/devtools/protocol/inspector_handler.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 ForwardingAgentHost::ForwardingAgentHost( | 12 ForwardingAgentHost::ForwardingAgentHost( |
13 DevToolsExternalAgentProxyDelegate* delegate) | 13 DevToolsExternalAgentProxyDelegate* delegate) |
14 : delegate_(delegate) { | 14 : delegate_(delegate) { |
15 } | 15 } |
16 | 16 |
17 ForwardingAgentHost::~ForwardingAgentHost() { | 17 ForwardingAgentHost::~ForwardingAgentHost() { |
18 } | 18 } |
19 | 19 |
20 void ForwardingAgentHost::DispatchOnClientHost(const std::string& message) { | 20 void ForwardingAgentHost::DispatchOnClientHost(const std::string& message) { |
21 SendMessageToClient(message); | 21 SendMessageToClient(0, message); |
dgozman
2015/11/06 22:57:27
0 -> session_id()
kozy
2015/11/07 01:54:43
Done.
| |
22 } | 22 } |
23 | 23 |
24 void ForwardingAgentHost::ConnectionClosed() { | 24 void ForwardingAgentHost::ConnectionClosed() { |
25 HostClosed(); | 25 HostClosed(); |
26 } | 26 } |
27 | 27 |
28 void ForwardingAgentHost::Attach() { | 28 void ForwardingAgentHost::Attach() { |
29 delegate_->Attach(this); | 29 delegate_->Attach(this); |
30 } | 30 } |
31 | 31 |
(...skipping 21 matching lines...) Expand all Loading... | |
53 | 53 |
54 bool ForwardingAgentHost::Activate() { | 54 bool ForwardingAgentHost::Activate() { |
55 return false; | 55 return false; |
56 } | 56 } |
57 | 57 |
58 bool ForwardingAgentHost::Close() { | 58 bool ForwardingAgentHost::Close() { |
59 return false; | 59 return false; |
60 } | 60 } |
61 | 61 |
62 } // content | 62 } // content |
OLD | NEW |