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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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 "chrome/browser/task_manager/task_manager_resource_providers.h" 5 #include "chrome/browser/task_manager/task_manager_resource_providers.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 return IDS_TASK_MANAGER_TAB_PREFIX; 96 return IDS_TASK_MANAGER_TAB_PREFIX;
97 } 97 }
98 } 98 }
99 99
100 } // namespace 100 } // namespace
101 101
102 //////////////////////////////////////////////////////////////////////////////// 102 ////////////////////////////////////////////////////////////////////////////////
103 // TaskManagerRendererResource class 103 // TaskManagerRendererResource class
104 //////////////////////////////////////////////////////////////////////////////// 104 ////////////////////////////////////////////////////////////////////////////////
105 TaskManagerRendererResource::TaskManagerRendererResource( 105 TaskManagerRendererResource::TaskManagerRendererResource(
106 base::ProcessHandle process, RenderViewHost* render_view_host) 106 base::ProcessHandle process, content::RenderViewHost* render_view_host)
107 : process_(process), 107 : process_(process),
108 render_view_host_(render_view_host), 108 render_view_host_(render_view_host),
109 pending_stats_update_(false), 109 pending_stats_update_(false),
110 fps_(0.0f), 110 fps_(0.0f),
111 pending_fps_update_(false), 111 pending_fps_update_(false),
112 v8_memory_allocated_(0), 112 v8_memory_allocated_(0),
113 v8_memory_used_(0), 113 v8_memory_used_(0),
114 pending_v8_memory_allocated_update_(false) { 114 pending_v8_memory_allocated_update_(false) {
115 // We cache the process and pid as when a Tab/BackgroundContents is closed the 115 // We cache the process and pid as when a Tab/BackgroundContents is closed the
116 // process reference becomes NULL and the TaskManager still needs it. 116 // process reference becomes NULL and the TaskManager still needs it.
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1435 1435
1436 return &resource_; 1436 return &resource_;
1437 } 1437 }
1438 1438
1439 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { 1439 void TaskManagerBrowserProcessResourceProvider::StartUpdating() {
1440 task_manager_->AddResource(&resource_); 1440 task_manager_->AddResource(&resource_);
1441 } 1441 }
1442 1442
1443 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { 1443 void TaskManagerBrowserProcessResourceProvider::StopUpdating() {
1444 } 1444 }
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager_resource_providers.h ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698