| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |