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

Unified Diff: chrome/browser/task_manager/task_manager.h

Issue 9959101: Exposing the child process unique ID through the task manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improved the comment on the new function in TaskManagerModel. Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/task_manager/task_manager.h
diff --git a/chrome/browser/task_manager/task_manager.h b/chrome/browser/task_manager/task_manager.h
index 2f993960b57f7262226f1ec9ec58259c51c0b059..9ad63457cb981f9ecc7871cb14f1bc409bd8bc38 100644
--- a/chrome/browser/task_manager/task_manager.h
+++ b/chrome/browser/task_manager/task_manager.h
@@ -68,6 +68,7 @@ class TaskManager {
virtual string16 GetProfileName() const = 0;
virtual SkBitmap GetIcon() const = 0;
virtual base::ProcessHandle GetProcess() const = 0;
+ virtual int GetUniqueChildProcessId() const = 0;
virtual Type GetType() const = 0;
virtual int GetRoutingID() const { return 0; }
@@ -376,6 +377,11 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> {
// Returns process handle for given resource.
base::ProcessHandle GetResourceProcessHandle(int index) const;
+ // Returns the unique child process ID generated by Chromium, not the OS
+ // process id. This is used to identifying processes internally and by
Charlie Reis 2012/04/04 19:23:29 nit: identify nit: for extensions
nasko 2012/04/04 19:31:24 Done.
+ // extensions. It is not meant to be displayed to the user.
+ int GetUniqueChildProcessId(int index) const;
+
// Returns the type of the given resource.
TaskManager::Resource::Type GetResourceType(int index) const;
« no previous file with comments | « no previous file | chrome/browser/task_manager/task_manager.cc » ('j') | chrome/browser/task_manager/task_manager_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698