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

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

Issue 8469015: Switch BackgroundContents to use TabContents instead of RenderViewHost. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix unittest Created 9 years, 1 month 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 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_
6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_ 6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 const string16& title); 214 const string16& title);
215 215
216 // Whether we are currently reporting to the task manager. Used to ignore 216 // Whether we are currently reporting to the task manager. Used to ignore
217 // notifications sent after StopUpdating(). 217 // notifications sent after StopUpdating().
218 bool updating_; 218 bool updating_;
219 219
220 TaskManager* task_manager_; 220 TaskManager* task_manager_;
221 221
222 // Maps the actual resources (the BackgroundContents) to the Task Manager 222 // Maps the actual resources (the BackgroundContents) to the Task Manager
223 // resources. 223 // resources.
224 std::map<BackgroundContents*, TaskManagerBackgroundContentsResource*> 224 typedef std::map<BackgroundContents*, TaskManagerBackgroundContentsResource*>
225 resources_; 225 Resources;
226 Resources resources_;
226 227
227 // A scoped container for notification registries. 228 // A scoped container for notification registries.
228 content::NotificationRegistrar registrar_; 229 content::NotificationRegistrar registrar_;
229 230
230 DISALLOW_COPY_AND_ASSIGN(TaskManagerBackgroundContentsResourceProvider); 231 DISALLOW_COPY_AND_ASSIGN(TaskManagerBackgroundContentsResourceProvider);
231 }; 232 };
232 233
233 class TaskManagerChildProcessResource : public TaskManager::Resource { 234 class TaskManagerChildProcessResource : public TaskManager::Resource {
234 public: 235 public:
235 explicit TaskManagerChildProcessResource(const ChildProcessInfo& child_proc); 236 explicit TaskManagerChildProcessResource(const ChildProcessInfo& child_proc);
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 520
520 void AddToTaskManager(ChildProcessInfo child_process_info); 521 void AddToTaskManager(ChildProcessInfo child_process_info);
521 522
522 TaskManager* task_manager_; 523 TaskManager* task_manager_;
523 TaskManagerBrowserProcessResource resource_; 524 TaskManagerBrowserProcessResource resource_;
524 525
525 DISALLOW_COPY_AND_ASSIGN(TaskManagerBrowserProcessResourceProvider); 526 DISALLOW_COPY_AND_ASSIGN(TaskManagerBrowserProcessResourceProvider);
526 }; 527 };
527 528
528 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_ 529 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_
OLDNEW
« no previous file with comments | « chrome/browser/tabs/tab_finder.cc ('k') | chrome/browser/task_manager/task_manager_resource_providers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698