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_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ |
6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <utility> | 10 #include <utility> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 enum Type { | 62 enum Type { |
63 UNKNOWN = 0, | 63 UNKNOWN = 0, |
64 TASKMANAGER_RESOURCE_TYPE_LIST(TASKMANAGER_RESOURCE_TYPE_LIST_ENUM) | 64 TASKMANAGER_RESOURCE_TYPE_LIST(TASKMANAGER_RESOURCE_TYPE_LIST_ENUM) |
65 }; | 65 }; |
66 | 66 |
67 virtual string16 GetTitle() const = 0; | 67 virtual string16 GetTitle() const = 0; |
68 virtual string16 GetProfileName() const = 0; | 68 virtual string16 GetProfileName() const = 0; |
69 virtual SkBitmap GetIcon() const = 0; | 69 virtual SkBitmap GetIcon() const = 0; |
70 virtual base::ProcessHandle GetProcess() const = 0; | 70 virtual base::ProcessHandle GetProcess() const = 0; |
71 virtual Type GetType() const = 0; | 71 virtual Type GetType() const = 0; |
72 virtual int GetRoutingId() const { return 0; } | 72 virtual int GetRoutingID() const { return 0; } |
73 | 73 |
74 virtual bool ReportsCacheStats() const { return false; } | 74 virtual bool ReportsCacheStats() const { return false; } |
75 virtual WebKit::WebCache::ResourceTypeStats GetWebCoreCacheStats() const { | 75 virtual WebKit::WebCache::ResourceTypeStats GetWebCoreCacheStats() const { |
76 return WebKit::WebCache::ResourceTypeStats(); | 76 return WebKit::WebCache::ResourceTypeStats(); |
77 } | 77 } |
78 | 78 |
79 virtual bool ReportsFPS() const { return false; } | 79 virtual bool ReportsFPS() const { return false; } |
80 virtual float GetFPS() const { return 0.0f; } | 80 virtual float GetFPS() const { return 0.0f; } |
81 | 81 |
82 virtual bool ReportsSqliteMemoryUsed() const { return false; } | 82 virtual bool ReportsSqliteMemoryUsed() const { return false; } |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 // A salt lick for the goats. | 542 // A salt lick for the goats. |
543 uint64 goat_salt_; | 543 uint64 goat_salt_; |
544 | 544 |
545 // Resource identifier that is unique within single session. | 545 // Resource identifier that is unique within single session. |
546 int last_unique_id_; | 546 int last_unique_id_; |
547 | 547 |
548 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); | 548 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); |
549 }; | 549 }; |
550 | 550 |
551 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ | 551 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ |
OLD | NEW |