Battery Status API: add UMA logging for Linux.
[chromium-blink-merge.git] / content / browser / devtools / forwarding_agent_host.cc
blob7f46fd4d2570cdce6e693e76f1db28cfa5e1cc23
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 #include "content/browser/devtools/devtools_manager_impl.h"
9 namespace content {
11 ForwardingAgentHost::ForwardingAgentHost(
12 DevToolsExternalAgentProxyDelegate* delegate)
13 : delegate_(delegate) {
16 ForwardingAgentHost::~ForwardingAgentHost() {
19 void ForwardingAgentHost::DispatchOnClientHost(const std::string& message) {
20 SendMessageToClient(message);
23 void ForwardingAgentHost::ConnectionClosed() {
24 HostClosed();
27 void ForwardingAgentHost::Attach() {
28 delegate_->Attach(this);
31 void ForwardingAgentHost::Detach() {
32 delegate_->Detach();
35 void ForwardingAgentHost::DispatchProtocolMessage(
36 const std::string& message) {
37 delegate_->SendMessageToBackend(message);
40 DevToolsAgentHost::Type ForwardingAgentHost::GetType() {
41 return TYPE_EXTERNAL;
44 std::string ForwardingAgentHost::GetTitle() {
45 return "";
48 GURL ForwardingAgentHost::GetURL() {
49 return GURL();
52 bool ForwardingAgentHost::Activate() {
53 return false;
56 bool ForwardingAgentHost::Close() {
57 return false;
60 } // content