Change next_proto member type.
[chromium-blink-merge.git] / content / browser / devtools / forwarding_agent_host.cc
blob4d3e4fff0b045cc782867513a8c570c9138b15ed
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
3 // found in the LICENSE file.
5 #include "content/browser/devtools/forwarding_agent_host.h"
7 namespace content {
9 ForwardingAgentHost::ForwardingAgentHost(
10 DevToolsExternalAgentProxyDelegate* delegate)
11 : delegate_(delegate) {
14 ForwardingAgentHost::~ForwardingAgentHost() {
17 void ForwardingAgentHost::DispatchOnClientHost(const std::string& message) {
18 SendMessageToClient(message);
21 void ForwardingAgentHost::ConnectionClosed() {
22 HostClosed();
25 void ForwardingAgentHost::Attach() {
26 delegate_->Attach(this);
29 void ForwardingAgentHost::Detach() {
30 delegate_->Detach();
33 void ForwardingAgentHost::DispatchProtocolMessage(
34 const std::string& message) {
35 delegate_->SendMessageToBackend(message);
38 DevToolsAgentHost::Type ForwardingAgentHost::GetType() {
39 return TYPE_EXTERNAL;
42 std::string ForwardingAgentHost::GetTitle() {
43 return "";
46 GURL ForwardingAgentHost::GetURL() {
47 return GURL();
50 bool ForwardingAgentHost::Activate() {
51 return false;
54 bool ForwardingAgentHost::Close() {
55 return false;
58 } // content