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

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

Issue 7831003: Add Profile data to the Task Manager on OS Mac. Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « chrome/app/generated_resources.grd ('k') | chrome/browser/task_manager/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) 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_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 <string> 10 #include <string>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 WORKER, // A web worker process. 53 WORKER, // A web worker process.
54 NACL, // A NativeClient loader or broker process. 54 NACL, // A NativeClient loader or broker process.
55 UTILITY, // A browser utility process. 55 UTILITY, // A browser utility process.
56 PROFILE_IMPORT, // A profile import process. 56 PROFILE_IMPORT, // A profile import process.
57 ZYGOTE, // A Linux zygote process. 57 ZYGOTE, // A Linux zygote process.
58 SANDBOX_HELPER, // A sandbox helper process. 58 SANDBOX_HELPER, // A sandbox helper process.
59 GPU // A graphics process. 59 GPU // A graphics process.
60 }; 60 };
61 61
62 virtual string16 GetTitle() const = 0; 62 virtual string16 GetTitle() const = 0;
63 virtual string16 GetProfileName() const = 0;
63 virtual SkBitmap GetIcon() const = 0; 64 virtual SkBitmap GetIcon() const = 0;
64 virtual base::ProcessHandle GetProcess() const = 0; 65 virtual base::ProcessHandle GetProcess() const = 0;
65 virtual Type GetType() const = 0; 66 virtual Type GetType() const = 0;
66 virtual int GetRoutingId() const { return 0; } 67 virtual int GetRoutingId() const { return 0; }
67 68
68 virtual bool ReportsCacheStats() const { return false; } 69 virtual bool ReportsCacheStats() const { return false; }
69 virtual WebKit::WebCache::ResourceTypeStats GetWebCoreCacheStats() const { 70 virtual WebKit::WebCache::ResourceTypeStats GetWebCoreCacheStats() const {
70 return WebKit::WebCache::ResourceTypeStats(); 71 return WebKit::WebCache::ResourceTypeStats();
71 } 72 }
72 73
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // Returns number of registered groups. 234 // Returns number of registered groups.
234 int GroupCount() const; 235 int GroupCount() const;
235 236
236 // Methods to return raw resource information. 237 // Methods to return raw resource information.
237 int64 GetNetworkUsage(int index) const; 238 int64 GetNetworkUsage(int index) const;
238 double GetCPUUsage(int index) const; 239 double GetCPUUsage(int index) const;
239 int GetProcessId(int index) const; 240 int GetProcessId(int index) const;
240 241
241 // Methods to return formatted resource information. 242 // Methods to return formatted resource information.
242 string16 GetResourceTitle(int index) const; 243 string16 GetResourceTitle(int index) const;
244 string16 GetResourceProfileName(int index) const;
243 string16 GetResourceNetworkUsage(int index) const; 245 string16 GetResourceNetworkUsage(int index) const;
244 string16 GetResourceCPUUsage(int index) const; 246 string16 GetResourceCPUUsage(int index) const;
245 string16 GetResourcePrivateMemory(int index) const; 247 string16 GetResourcePrivateMemory(int index) const;
246 string16 GetResourceSharedMemory(int index) const; 248 string16 GetResourceSharedMemory(int index) const;
247 string16 GetResourcePhysicalMemory(int index) const; 249 string16 GetResourcePhysicalMemory(int index) const;
248 string16 GetResourceProcessId(int index) const; 250 string16 GetResourceProcessId(int index) const;
249 string16 GetResourceWebCoreImageCacheSize(int index) const; 251 string16 GetResourceWebCoreImageCacheSize(int index) const;
250 string16 GetResourceWebCoreScriptsCacheSize(int index) const; 252 string16 GetResourceWebCoreScriptsCacheSize(int index) const;
251 string16 GetResourceWebCoreCSSCacheSize(int index) const; 253 string16 GetResourceWebCoreCSSCacheSize(int index) const;
252 string16 GetResourceFPS(int index) const; 254 string16 GetResourceFPS(int index) const;
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 // Whether we are currently in the process of updating. 481 // Whether we are currently in the process of updating.
480 UpdateState update_state_; 482 UpdateState update_state_;
481 483
482 // A salt lick for the goats. 484 // A salt lick for the goats.
483 int goat_salt_; 485 int goat_salt_;
484 486
485 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); 487 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel);
486 }; 488 };
487 489
488 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 490 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698