| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_H_ |
| 6 #define CHROME_BROWSER_TASK_MANAGER_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // A resource represents one row in the task manager. | 38 // A resource represents one row in the task manager. |
| 39 // Resources from similar processes are grouped together by the task manager. | 39 // Resources from similar processes are grouped together by the task manager. |
| 40 class Resource { | 40 class Resource { |
| 41 public: | 41 public: |
| 42 virtual ~Resource() {} | 42 virtual ~Resource() {} |
| 43 | 43 |
| 44 virtual std::wstring GetTitle() const = 0; | 44 virtual std::wstring GetTitle() const = 0; |
| 45 virtual SkBitmap GetIcon() const = 0; | 45 virtual SkBitmap GetIcon() const = 0; |
| 46 virtual base::ProcessHandle GetProcess() const = 0; | 46 virtual base::ProcessHandle GetProcess() const = 0; |
| 47 | 47 |
| 48 virtual bool ReportsCacheStats() const { return false; } | 48 virtual bool HasCacheStats() const { return false; } |
| 49 virtual WebKit::WebCache::ResourceTypeStats GetWebCoreCacheStats() const { | 49 virtual WebKit::WebCache::ResourceTypeStats GetWebCoreCacheStats() const { |
| 50 return WebKit::WebCache::ResourceTypeStats(); | 50 return WebKit::WebCache::ResourceTypeStats(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 virtual bool ReportsSqliteMemoryUsed() const { return false; } | 53 virtual bool ReportsSqliteMemoryUsed() const { return false; } |
| 54 virtual size_t SqliteMemoryUsedBytes() const { return 0; } | 54 virtual size_t SqliteMemoryUsedBytes() const { return 0; } |
| 55 | 55 |
| 56 // Return extension associated with the resource, or NULL | 56 // Return extension associated with the resource, or NULL |
| 57 // if not applicable. | 57 // if not applicable. |
| 58 virtual const Extension* GetExtension() const { return NULL; } | 58 virtual const Extension* GetExtension() const { return NULL; } |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 // Whether we are currently in the process of updating. | 403 // Whether we are currently in the process of updating. |
| 404 UpdateState update_state_; | 404 UpdateState update_state_; |
| 405 | 405 |
| 406 // A salt lick for the goats. | 406 // A salt lick for the goats. |
| 407 int goat_salt_; | 407 int goat_salt_; |
| 408 | 408 |
| 409 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); | 409 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); |
| 410 }; | 410 }; |
| 411 | 411 |
| 412 #endif // CHROME_BROWSER_TASK_MANAGER_H_ | 412 #endif // CHROME_BROWSER_TASK_MANAGER_H_ |
| OLD | NEW |