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

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

Issue 466088: Revert 34146 - A place to store the pid>mach_port_t mapping.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 28 matching lines...) Expand all
39 public: 39 public:
40 // A resource represents one row in the task manager. 40 // A resource represents one row in the task manager.
41 // Resources from similar processes are grouped together by the task manager. 41 // Resources from similar processes are grouped together by the task manager.
42 class Resource { 42 class Resource {
43 public: 43 public:
44 virtual ~Resource() {} 44 virtual ~Resource() {}
45 45
46 virtual std::wstring GetTitle() const = 0; 46 virtual std::wstring GetTitle() const = 0;
47 virtual SkBitmap GetIcon() const = 0; 47 virtual SkBitmap GetIcon() const = 0;
48 virtual base::ProcessHandle GetProcess() const = 0; 48 virtual base::ProcessHandle GetProcess() const = 0;
49 #if defined(OS_MACOSX)
50 // TODO(thakis): All the providers need to get these somewhere (child
51 // processes need to IPC them to us via mach IPC at some point).
52 // TODO(thakis): TMM needs to hand this on to ProcessMetrics.
53 // TODO(thakis): ProcessMetrics then needs to call mach data collection apis
54 // if it has the mach ports it needs.
55 virtual mach_port_t GetMachHostPort() const { return 0; };
56 virtual mach_port_t GetMachTaskPort() const { return 0; };
57 #endif
58 49
59 virtual bool ReportsCacheStats() const { return false; } 50 virtual bool ReportsCacheStats() const { return false; }
60 virtual WebKit::WebCache::ResourceTypeStats GetWebCoreCacheStats() const { 51 virtual WebKit::WebCache::ResourceTypeStats GetWebCoreCacheStats() const {
61 return WebKit::WebCache::ResourceTypeStats(); 52 return WebKit::WebCache::ResourceTypeStats();
62 } 53 }
63 54
64 virtual bool ReportsSqliteMemoryUsed() const { return false; } 55 virtual bool ReportsSqliteMemoryUsed() const { return false; }
65 virtual size_t SqliteMemoryUsedBytes() const { return 0; } 56 virtual size_t SqliteMemoryUsedBytes() const { return 0; }
66 57
67 // Return extension associated with the resource, or NULL 58 // Return extension associated with the resource, or NULL
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 // Whether we are currently in the process of updating. 386 // Whether we are currently in the process of updating.
396 UpdateState update_state_; 387 UpdateState update_state_;
397 388
398 // See design doc at http://go/at-teleporter for more information. 389 // See design doc at http://go/at-teleporter for more information.
399 static int goats_teleported_; 390 static int goats_teleported_;
400 391
401 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); 392 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel);
402 }; 393 };
403 394
404 #endif // CHROME_BROWSER_TASK_MANAGER_H_ 395 #endif // CHROME_BROWSER_TASK_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/browser_render_process_host.cc ('k') | chrome/browser/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698