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

Side by Side Diff: chrome/browser/task_manager/renderer_resource.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "chrome/browser/task_manager/renderer_resource.h" 5 #include "chrome/browser/task_manager/renderer_resource.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "chrome/browser/devtools/devtools_window.h" 8 #include "chrome/browser/devtools/devtools_window.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/task_manager/resource_provider.h" 10 #include "chrome/browser/task_manager/resource_provider.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 93
94 bool RendererResource::ReportsCacheStats() const { 94 bool RendererResource::ReportsCacheStats() const {
95 return true; 95 return true;
96 } 96 }
97 97
98 bool RendererResource::ReportsV8MemoryStats() const { 98 bool RendererResource::ReportsV8MemoryStats() const {
99 return true; 99 return true;
100 } 100 }
101 101
102 bool RendererResource::CanInspect() const {
103 return true;
104 }
105
106 void RendererResource::Inspect() const {
107 DevToolsWindow::OpenDevToolsWindow(render_view_host_);
108 }
109
110 bool RendererResource::SupportNetworkUsage() const { 102 bool RendererResource::SupportNetworkUsage() const {
111 return true; 103 return true;
112 } 104 }
113 105
114 } // namespace task_manager 106 } // namespace task_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698