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

Side by Side 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: Use unique_id to determine process instead of PID. 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 unified diff | Download patch | Annotate | Revision Log
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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // Returns number of registered resources. 266 // Returns number of registered resources.
267 int ResourceCount() const; 267 int ResourceCount() const;
268 // Returns number of registered groups. 268 // Returns number of registered groups.
269 int GroupCount() const; 269 int GroupCount() const;
270 270
271 // Methods to return raw resource information. 271 // Methods to return raw resource information.
272 int64 GetNetworkUsage(int index) const; 272 int64 GetNetworkUsage(int index) const;
273 double GetCPUUsage(int index) const; 273 double GetCPUUsage(int index) const;
274 int GetProcessId(int index) const; 274 int GetProcessId(int index) const;
275 int GetResourceUniqueId(int index) const; 275 int GetResourceUniqueId(int index) const;
276 int GetResourceIndexByUniqueId(const int unique_id) const;
mazda 2011/12/14 09:38:20 Please add a comment on the case where the index i
yoshiki 2011/12/14 09:52:24 Done.
276 277
277 // Methods to return formatted resource information. 278 // Methods to return formatted resource information.
278 string16 GetResourceTitle(int index) const; 279 string16 GetResourceTitle(int index) const;
279 string16 GetResourceProfileName(int index) const; 280 string16 GetResourceProfileName(int index) const;
280 string16 GetResourceNetworkUsage(int index) const; 281 string16 GetResourceNetworkUsage(int index) const;
281 string16 GetResourceCPUUsage(int index) const; 282 string16 GetResourceCPUUsage(int index) const;
282 string16 GetResourcePrivateMemory(int index) const; 283 string16 GetResourcePrivateMemory(int index) const;
283 string16 GetResourceSharedMemory(int index) const; 284 string16 GetResourceSharedMemory(int index) const;
284 string16 GetResourcePhysicalMemory(int index) const; 285 string16 GetResourcePhysicalMemory(int index) const;
285 string16 GetResourceProcessId(int index) const; 286 string16 GetResourceProcessId(int index) const;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 // A salt lick for the goats. 531 // A salt lick for the goats.
531 int goat_salt_; 532 int goat_salt_;
532 533
533 // Resource identifier that is unique within single session. 534 // Resource identifier that is unique within single session.
534 int last_unique_id_; 535 int last_unique_id_;
535 536
536 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); 537 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel);
537 }; 538 };
538 539
539 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 540 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
OLDNEW
« 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