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

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

Issue 11885005: Consolidates lookup of task manager values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: garden path Created 7 years, 11 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 | « no previous file | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // Methods to return raw resource information. 298 // Methods to return raw resource information.
299 int64 GetNetworkUsage(int index) const; 299 int64 GetNetworkUsage(int index) const;
300 double GetCPUUsage(int index) const; 300 double GetCPUUsage(int index) const;
301 int GetProcessId(int index) const; 301 int GetProcessId(int index) const;
302 base::ProcessHandle GetProcess(int index) const; 302 base::ProcessHandle GetProcess(int index) const;
303 int GetResourceUniqueId(int index) const; 303 int GetResourceUniqueId(int index) const;
304 // Returns the index of resource that has the given |unique_id|. Returns -1 if 304 // Returns the index of resource that has the given |unique_id|. Returns -1 if
305 // no resouce has the |unique_id|. 305 // no resouce has the |unique_id|.
306 int GetResourceIndexByUniqueId(const int unique_id) const; 306 int GetResourceIndexByUniqueId(const int unique_id) const;
307 307
308 // Catchall method that calls off to the appropriate GetResourceXXX method
309 // based on |col_id|. |col_id| is an IDS_ value used to identify the column.
310 string16 GetResourceById(int index, int col_id) const;
311
308 // Methods to return formatted resource information. 312 // Methods to return formatted resource information.
309 string16 GetResourceTitle(int index) const; 313 string16 GetResourceTitle(int index) const;
310 string16 GetResourceProfileName(int index) const; 314 string16 GetResourceProfileName(int index) const;
311 string16 GetResourceNetworkUsage(int index) const; 315 string16 GetResourceNetworkUsage(int index) const;
312 string16 GetResourceCPUUsage(int index) const; 316 string16 GetResourceCPUUsage(int index) const;
313 string16 GetResourcePrivateMemory(int index) const; 317 string16 GetResourcePrivateMemory(int index) const;
314 string16 GetResourceSharedMemory(int index) const; 318 string16 GetResourceSharedMemory(int index) const;
315 string16 GetResourcePhysicalMemory(int index) const; 319 string16 GetResourcePhysicalMemory(int index) const;
316 string16 GetResourceProcessId(int index) const; 320 string16 GetResourceProcessId(int index) const;
317 string16 GetResourceWebCoreImageCacheSize(int index) const; 321 string16 GetResourceWebCoreImageCacheSize(int index) const;
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 int last_unique_id_; 619 int last_unique_id_;
616 620
617 // Buffer for coalescing BytesReadParam so we don't have to post a task on 621 // Buffer for coalescing BytesReadParam so we don't have to post a task on
618 // each NotifyBytesRead() call. 622 // each NotifyBytesRead() call.
619 std::vector<BytesReadParam> bytes_read_buffer_; 623 std::vector<BytesReadParam> bytes_read_buffer_;
620 624
621 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); 625 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel);
622 }; 626 };
623 627
624 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 628 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698