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"
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() {
25 void ForwardingAgentHost::Attach() {
26 delegate_
->Attach(this);
29 void ForwardingAgentHost::Detach() {
33 void ForwardingAgentHost::DispatchProtocolMessage(
34 const std::string
& message
) {
35 delegate_
->SendMessageToBackend(message
);
38 DevToolsAgentHost::Type
ForwardingAgentHost::GetType() {
42 std::string
ForwardingAgentHost::GetTitle() {
46 GURL
ForwardingAgentHost::GetURL() {
50 bool ForwardingAgentHost::Activate() {
54 bool ForwardingAgentHost::Close() {