| 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 21 matching lines...) Expand all Loading... |
| 32 // functionality like stats tracking. | 32 // functionality like stats tracking. |
| 33 class TaskManagerRendererResource : public TaskManager::Resource { | 33 class TaskManagerRendererResource : public TaskManager::Resource { |
| 34 public: | 34 public: |
| 35 TaskManagerRendererResource(base::ProcessHandle process, | 35 TaskManagerRendererResource(base::ProcessHandle process, |
| 36 RenderViewHost* render_view_host); | 36 RenderViewHost* render_view_host); |
| 37 virtual ~TaskManagerRendererResource(); | 37 virtual ~TaskManagerRendererResource(); |
| 38 | 38 |
| 39 // TaskManager::Resource methods: | 39 // TaskManager::Resource methods: |
| 40 virtual base::ProcessHandle GetProcess() const OVERRIDE; | 40 virtual base::ProcessHandle GetProcess() const OVERRIDE; |
| 41 virtual Type GetType() const OVERRIDE; | 41 virtual Type GetType() const OVERRIDE; |
| 42 virtual int GetRoutingId() const OVERRIDE; | 42 virtual int GetRoutingID() const OVERRIDE; |
| 43 | 43 |
| 44 virtual bool ReportsCacheStats() const OVERRIDE; | 44 virtual bool ReportsCacheStats() const OVERRIDE; |
| 45 virtual WebKit::WebCache::ResourceTypeStats GetWebCoreCacheStats() const | 45 virtual WebKit::WebCache::ResourceTypeStats GetWebCoreCacheStats() const |
| 46 OVERRIDE; | 46 OVERRIDE; |
| 47 virtual bool ReportsFPS() const OVERRIDE; | 47 virtual bool ReportsFPS() const OVERRIDE; |
| 48 virtual float GetFPS() const OVERRIDE; | 48 virtual float GetFPS() const OVERRIDE; |
| 49 virtual bool ReportsV8MemoryStats() const OVERRIDE; | 49 virtual bool ReportsV8MemoryStats() const OVERRIDE; |
| 50 virtual size_t GetV8MemoryAllocated() const OVERRIDE; | 50 virtual size_t GetV8MemoryAllocated() const OVERRIDE; |
| 51 virtual size_t GetV8MemoryUsed() const OVERRIDE; | 51 virtual size_t GetV8MemoryUsed() const OVERRIDE; |
| 52 | 52 |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 private: | 532 private: |
| 533 virtual ~TaskManagerBrowserProcessResourceProvider(); | 533 virtual ~TaskManagerBrowserProcessResourceProvider(); |
| 534 | 534 |
| 535 TaskManager* task_manager_; | 535 TaskManager* task_manager_; |
| 536 TaskManagerBrowserProcessResource resource_; | 536 TaskManagerBrowserProcessResource resource_; |
| 537 | 537 |
| 538 DISALLOW_COPY_AND_ASSIGN(TaskManagerBrowserProcessResourceProvider); | 538 DISALLOW_COPY_AND_ASSIGN(TaskManagerBrowserProcessResourceProvider); |
| 539 }; | 539 }; |
| 540 | 540 |
| 541 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_ | 541 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_ |
| OLD | NEW |