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

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

Issue 8932003: WebUI Task manager: prevent to kill the wrong process or none (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/task_manager/main.js ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8c8e101938e5918e6bea8262b9c8f4d0ccb4de50..e3686fb9d23cb0498b338a9cdeff804009e65ba8 100644
--- a/chrome/browser/task_manager/task_manager.h
+++ b/chrome/browser/task_manager/task_manager.h
@@ -273,6 +273,9 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> {
double GetCPUUsage(int index) const;
int GetProcessId(int index) const;
int GetResourceUniqueId(int index) const;
+ // Returns the index of resource that has the given |unique_id|. Returns -1 if
+ // no resouce has the |unique_id|.
+ int GetResourceIndexByUniqueId(const int unique_id) const;
// Methods to return formatted resource information.
string16 GetResourceTitle(int index) const;
« no previous file with comments | « chrome/browser/resources/task_manager/main.js ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698