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

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

Issue 2408133004: [DevTools] Implement Target.setDiscoverTargets method. (Closed)
Patch Set: rebased Created 4 years, 2 months 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 const std::string& id, 13 const std::string& id,
14 std::unique_ptr<DevToolsExternalAgentProxyDelegate> delegate) 14 std::unique_ptr<DevToolsExternalAgentProxyDelegate> delegate)
15 : DevToolsAgentHostImpl(id), 15 : DevToolsAgentHostImpl(id),
16 delegate_(std::move(delegate)) { 16 delegate_(std::move(delegate)) {
17 NotifyCreated();
17 } 18 }
18 19
19 ForwardingAgentHost::~ForwardingAgentHost() { 20 ForwardingAgentHost::~ForwardingAgentHost() {
20 } 21 }
21 22
22 void ForwardingAgentHost::DispatchOnClientHost(const std::string& message) { 23 void ForwardingAgentHost::DispatchOnClientHost(const std::string& message) {
23 SendMessageToClient(session_id(), message); 24 SendMessageToClient(session_id(), message);
24 } 25 }
25 26
26 void ForwardingAgentHost::ConnectionClosed() { 27 void ForwardingAgentHost::ConnectionClosed() {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 68
68 void ForwardingAgentHost::Reload() { 69 void ForwardingAgentHost::Reload() {
69 delegate_->Reload(); 70 delegate_->Reload();
70 } 71 }
71 72
72 bool ForwardingAgentHost::Close() { 73 bool ForwardingAgentHost::Close() {
73 return delegate_->Close(); 74 return delegate_->Close();
74 } 75 }
75 76
76 } // content 77 } // content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698