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

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

Issue 442303002: DevTools: migrate DevTools APIs to use WebContents instead of RenderViewHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments addressed. Created 6 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_agent_host_impl.h" 5 #include "content/browser/devtools/devtools_agent_host_impl.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/guid.h" 10 #include "base/guid.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 return !!DevToolsManagerImpl::GetInstance()->GetDevToolsClientHostFor(this); 53 return !!DevToolsManagerImpl::GetInstance()->GetDevToolsClientHostFor(this);
54 } 54 }
55 55
56 void DevToolsAgentHostImpl::InspectElement(int x, int y) { 56 void DevToolsAgentHostImpl::InspectElement(int x, int y) {
57 } 57 }
58 58
59 std::string DevToolsAgentHostImpl::GetId() { 59 std::string DevToolsAgentHostImpl::GetId() {
60 return id_; 60 return id_;
61 } 61 }
62 62
63 RenderViewHost* DevToolsAgentHostImpl::GetRenderViewHost() { 63 WebContents* DevToolsAgentHostImpl::GetWebContents() {
64 return NULL; 64 return NULL;
65 } 65 }
66 66
67 void DevToolsAgentHostImpl::DisconnectRenderViewHost() {} 67 void DevToolsAgentHostImpl::DisconnectWebContents() {
68 }
68 69
69 void DevToolsAgentHostImpl::ConnectRenderViewHost(RenderViewHost* rvh) {} 70 void DevToolsAgentHostImpl::ConnectWebContents(WebContents* wc) {
71 }
70 72
71 bool DevToolsAgentHostImpl::IsWorker() const { 73 bool DevToolsAgentHostImpl::IsWorker() const {
72 return false; 74 return false;
73 } 75 }
74 76
75 void DevToolsAgentHostImpl::NotifyCloseListener() { 77 void DevToolsAgentHostImpl::NotifyCloseListener() {
76 if (close_listener_) { 78 if (close_listener_) {
77 scoped_refptr<DevToolsAgentHostImpl> protect(this); 79 scoped_refptr<DevToolsAgentHostImpl> protect(this);
78 close_listener_->AgentHostClosing(this); 80 close_listener_->AgentHostClosing(this);
79 close_listener_ = NULL; 81 close_listener_ = NULL;
80 } 82 }
81 } 83 }
82 84
83 } // namespace content 85 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698