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

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

Issue 186153002: TaskManager: Remove some unused/unnecessary methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 45a76d59ee12cf429443e31b6cb9cf9f6c9797f1..2909460c0dd3eb9db4b60a97d651d5fee3f6e995 100644
--- a/chrome/browser/task_manager/task_manager.h
+++ b/chrome/browser/task_manager/task_manager.h
@@ -159,10 +159,6 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> {
int GetIdleWakeupsPerSecond(int index) const;
base::ProcessId GetProcessId(int index) const;
base::ProcessHandle GetProcess(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;
// Catchall method that calls off to the appropriate GetResourceXXX method
// based on |col_id|. |col_id| is an IDS_ value used to identify the column.
@@ -254,10 +250,6 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> {
bool IsResourceFirstInGroup(int index) const;
bool IsResourceLastInGroup(int index) const;
- // Returns true if the resource runs in the background (not visible to the
- // user, e.g. extension background pages and BackgroundContents).
- bool IsBackgroundResource(int index) const;
-
// Returns icon to be used for resource (for example a favicon).
gfx::ImageSkia GetResourceIcon(int index) const;
@@ -287,9 +279,6 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> {
// Returns WebContents of given resource or NULL if not applicable.
content::WebContents* GetResourceWebContents(int index) const;
- // Returns Extension of given resource or NULL if not applicable.
- const extensions::Extension* GetResourceExtension(int index) const;
-
void AddResource(task_manager::Resource* resource);
void RemoveResource(task_manager::Resource* resource);
@@ -566,9 +555,6 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> {
// A salt lick for the goats.
uint64 goat_salt_;
- // Resource identifier that is unique within single session.
- int last_unique_id_;
-
// Buffer for coalescing BytesReadParam so we don't have to post a task on
// each NotifyBytesRead() call.
std::vector<BytesReadParam> bytes_read_buffer_;
« no previous file with comments | « chrome/browser/task_manager/tab_contents_resource_provider.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698