Add a FrameHostMsg_BeginNavigation IPC
[chromium-blink-merge.git] / content / browser / devtools / forwarding_agent_host.cc
blobf1524e1b7e1d9798c1b0dbf4f40899d768c04c4a
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 DevToolsManagerImpl::GetInstance()->DispatchOnInspectorFrontend(
21 this, message);
24 void ForwardingAgentHost::ConnectionClosed() {
25 NotifyCloseListener();
28 void ForwardingAgentHost::Attach() {
29 delegate_->Attach(this);
32 void ForwardingAgentHost::Detach() {
33 delegate_->Detach();
36 void ForwardingAgentHost::DispatchOnInspectorBackend(
37 const std::string& message) {
38 delegate_->SendMessageToBackend(message);
41 } // content