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

Side by Side Diff: chrome/browser/task_manager/task_manager_resource_providers.cc

Issue 7631063: Prefix all IPC messages used by src\chrome with Chrome. For e.g ChromeViewMsg_, ChromeViewHostMsg... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/task_manager_resource_providers.h" 5 #include "chrome/browser/task_manager/task_manager_resource_providers.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/file_version_info.h" 8 #include "base/file_version_info.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 stats_.scripts.size = 0; 102 stats_.scripts.size = 0;
103 stats_.xslStyleSheets.size = 0; 103 stats_.xslStyleSheets.size = 0;
104 stats_.fonts.size = 0; 104 stats_.fonts.size = 0;
105 } 105 }
106 106
107 TaskManagerRendererResource::~TaskManagerRendererResource() { 107 TaskManagerRendererResource::~TaskManagerRendererResource() {
108 } 108 }
109 109
110 void TaskManagerRendererResource::Refresh() { 110 void TaskManagerRendererResource::Refresh() {
111 if (!pending_stats_update_) { 111 if (!pending_stats_update_) {
112 render_view_host_->Send(new ViewMsg_GetCacheResourceStats); 112 render_view_host_->Send(new ChromeViewMsg_GetCacheResourceStats);
113 pending_stats_update_ = true; 113 pending_stats_update_ = true;
114 } 114 }
115 if (!pending_fps_update_) { 115 if (!pending_fps_update_) {
116 render_view_host_->Send( 116 render_view_host_->Send(
117 new ViewMsg_GetFPS(render_view_host_->routing_id())); 117 new ViewMsg_GetFPS(render_view_host_->routing_id()));
118 pending_fps_update_ = true; 118 pending_fps_update_ = true;
119 } 119 }
120 if (!pending_v8_memory_allocated_update_) { 120 if (!pending_v8_memory_allocated_update_) {
121 render_view_host_->Send(new ViewMsg_GetV8HeapStats); 121 render_view_host_->Send(new ChromeViewMsg_GetV8HeapStats);
122 pending_v8_memory_allocated_update_ = true; 122 pending_v8_memory_allocated_update_ = true;
123 } 123 }
124 } 124 }
125 125
126 WebKit::WebCache::ResourceTypeStats 126 WebKit::WebCache::ResourceTypeStats
127 TaskManagerRendererResource::GetWebCoreCacheStats() const { 127 TaskManagerRendererResource::GetWebCoreCacheStats() const {
128 return stats_; 128 return stats_;
129 } 129 }
130 130
131 float TaskManagerRendererResource::GetFPS() const { 131 float TaskManagerRendererResource::GetFPS() const {
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1313 1313
1314 return &resource_; 1314 return &resource_;
1315 } 1315 }
1316 1316
1317 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { 1317 void TaskManagerBrowserProcessResourceProvider::StartUpdating() {
1318 task_manager_->AddResource(&resource_); 1318 task_manager_->AddResource(&resource_);
1319 } 1319 }
1320 1320
1321 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { 1321 void TaskManagerBrowserProcessResourceProvider::StopUpdating() {
1322 } 1322 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/insecure_content_infobar_delegate.cc ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698