| OLD | NEW |
| 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 #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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 virtual void StopUpdating() OVERRIDE; | 395 virtual void StopUpdating() OVERRIDE; |
| 396 | 396 |
| 397 // content::NotificationObserver method: | 397 // content::NotificationObserver method: |
| 398 virtual void Observe(int type, | 398 virtual void Observe(int type, |
| 399 const content::NotificationSource& source, | 399 const content::NotificationSource& source, |
| 400 const content::NotificationDetails& details) OVERRIDE; | 400 const content::NotificationDetails& details) OVERRIDE; |
| 401 | 401 |
| 402 private: | 402 private: |
| 403 virtual ~TaskManagerExtensionProcessResourceProvider(); | 403 virtual ~TaskManagerExtensionProcessResourceProvider(); |
| 404 | 404 |
| 405 bool IsHandledByThisProvider(content::RenderViewHost* render_view_host); |
| 405 void AddToTaskManager(content::RenderViewHost* render_view_host); | 406 void AddToTaskManager(content::RenderViewHost* render_view_host); |
| 406 void RemoveFromTaskManager(content::RenderViewHost* render_view_host); | 407 void RemoveFromTaskManager(content::RenderViewHost* render_view_host); |
| 407 | 408 |
| 408 TaskManager* task_manager_; | 409 TaskManager* task_manager_; |
| 409 | 410 |
| 410 // Maps the actual resources (content::RenderViewHost*) to the Task Manager | 411 // Maps the actual resources (content::RenderViewHost*) to the Task Manager |
| 411 // resources. | 412 // resources. |
| 412 std::map<content::RenderViewHost*, | 413 std::map<content::RenderViewHost*, |
| 413 TaskManagerExtensionProcessResource*> resources_; | 414 TaskManagerExtensionProcessResource*> resources_; |
| 414 | 415 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 private: | 548 private: |
| 548 virtual ~TaskManagerBrowserProcessResourceProvider(); | 549 virtual ~TaskManagerBrowserProcessResourceProvider(); |
| 549 | 550 |
| 550 TaskManager* task_manager_; | 551 TaskManager* task_manager_; |
| 551 TaskManagerBrowserProcessResource resource_; | 552 TaskManagerBrowserProcessResource resource_; |
| 552 | 553 |
| 553 DISALLOW_COPY_AND_ASSIGN(TaskManagerBrowserProcessResourceProvider); | 554 DISALLOW_COPY_AND_ASSIGN(TaskManagerBrowserProcessResourceProvider); |
| 554 }; | 555 }; |
| 555 | 556 |
| 556 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_ | 557 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_ |
| OLD | NEW |