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