Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: content/browser/devtools/forwarding_agent_host.cc

Issue 1408363004: [DevTools] Filter any messages from previous sessions in DevToolsAgentHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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(session_id(), message);
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
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
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_protocol_handler.cc ('k') | content/browser/devtools/protocol/devtools_protocol_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698