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

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

Issue 13305002: Remove redundant DevToolsManager methods and clean up its clients. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/devtools_external_agent_proxy_impl.h" 5 #include "content/browser/devtools/devtools_external_agent_proxy_impl.h"
6 6
7 #include "content/browser/devtools/devtools_agent_host_impl.h" 7 #include "content/browser/devtools/devtools_agent_host_impl.h"
8 #include "content/browser/devtools/devtools_manager_impl.h"
8 #include "content/public/browser/devtools_external_agent_proxy_delegate.h" 9 #include "content/public/browser/devtools_external_agent_proxy_delegate.h"
9 10
10 namespace content { 11 namespace content {
11 12
12 class DevToolsExternalAgentProxyImpl::ForwardingAgentHost 13 class DevToolsExternalAgentProxyImpl::ForwardingAgentHost
13 : public DevToolsAgentHostImpl { 14 : public DevToolsAgentHostImpl {
14 public: 15 public:
15 ForwardingAgentHost(DevToolsExternalAgentProxyDelegate* delegate) 16 ForwardingAgentHost(DevToolsExternalAgentProxyDelegate* delegate)
16 : delegate_(delegate) { 17 : delegate_(delegate) {
17 } 18 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 53 }
53 54
54 DevToolsExternalAgentProxyImpl::~DevToolsExternalAgentProxyImpl() { 55 DevToolsExternalAgentProxyImpl::~DevToolsExternalAgentProxyImpl() {
55 } 56 }
56 57
57 scoped_refptr<DevToolsAgentHost> DevToolsExternalAgentProxyImpl:: 58 scoped_refptr<DevToolsAgentHost> DevToolsExternalAgentProxyImpl::
58 GetAgentHost() { 59 GetAgentHost() {
59 return agent_host_; 60 return agent_host_;
60 } 61 }
61 62
63 void DevToolsExternalAgentProxyImpl::DispatchOnClientHost(
64 const std::string& message) {
65 DevToolsManagerImpl::GetInstance()->DispatchOnInspectorFrontend(
66 agent_host_, message);
67 }
68
62 void DevToolsExternalAgentProxyImpl::ConnectionClosed() { 69 void DevToolsExternalAgentProxyImpl::ConnectionClosed() {
63 agent_host_->ConnectionClosed(); 70 agent_host_->ConnectionClosed();
64 } 71 }
65 72
66 } // content 73 } // content
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_external_agent_proxy_impl.h ('k') | content/browser/devtools/devtools_http_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698