summaryrefslogtreecommitdiffstats
path: root/chrome/browser/task_manager.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-30 18:28:44 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-30 18:28:44 +0000
commit149fd6df098f406fcb8bcabc12c9a8fefda49058 (patch)
treee7b1838eb63d9ba7883cc8c2c85fdde6a84a1759 /chrome/browser/task_manager.h
parentadeedaff76d28c2dd2c75bd399dbae21c415d037 (diff)
downloadchromium_src-149fd6df098f406fcb8bcabc12c9a8fefda49058.zip
chromium_src-149fd6df098f406fcb8bcabc12c9a8fefda49058.tar.gz
chromium_src-149fd6df098f406fcb8bcabc12c9a8fefda49058.tar.bz2
Make it possible to sort the WebCore Cache size columns in the Task Manager. Also only show cache sizes once per process since the WebCore Cahce is a singleton within the renderer process.
BUG=16221 TEST=none Review URL: http://codereview.chromium.org/244041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27636 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager.h')
-rw-r--r--chrome/browser/task_manager.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/task_manager.h b/chrome/browser/task_manager.h
index 666b643..ff402a4 100644
--- a/chrome/browser/task_manager.h
+++ b/chrome/browser/task_manager.h
@@ -47,13 +47,14 @@ class TaskManager {
virtual SkBitmap GetIcon() const = 0;
virtual base::ProcessHandle GetProcess() const = 0;
- virtual std::wstring GetWebCoreImageCacheSize();
- virtual std::wstring GetWebCoreScriptsCacheSize();
- virtual std::wstring GetWebCoreCSSCacheSize();
+ virtual bool ReportsCacheStats() const { return false; }
+ virtual WebKit::WebCache::ResourceTypeStats GetWebCoreCacheStats() const {
+ return WebKit::WebCache::ResourceTypeStats();
+ }
// A helper function for ActivateFocusedTab. Returns NULL by default
// because not all resources have an assoiciated tab.
- virtual TabContents* GetTabContents() const {return NULL;}
+ virtual TabContents* GetTabContents() const { return NULL; }
// Whether this resource does report the network usage accurately.
// This controls whether 0 or N/A is displayed when no bytes have been