Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: chrome/browser/task_manager.h

Issue 3118003: Revert 55449 - Fix some problems with TaskManagerBrowserTest.PopulateWebCache... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/task_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 HasCacheStats() const { return false; } 48 virtual bool ReportsCacheStats() 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 // Whether we are currently in the process of updating. 405 // Whether we are currently in the process of updating.
406 UpdateState update_state_; 406 UpdateState update_state_;
407 407
408 // A salt lick for the goats. 408 // A salt lick for the goats.
409 int goat_salt_; 409 int goat_salt_;
410 410
411 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); 411 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel);
412 }; 412 };
413 413
414 #endif // CHROME_BROWSER_TASK_MANAGER_H_ 414 #endif // CHROME_BROWSER_TASK_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698