diff options
author | nick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-06 01:59:04 +0000 |
---|---|---|
committer | nick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-06 01:59:04 +0000 |
commit | 813300cda44974c5017bb64cd93d131215df4f74 (patch) | |
tree | 7c7c0ca169e13cfafb4ab653621aa02940fdeb01 /chrome/browser/task_manager/task_manager.h | |
parent | 1fdef0f9dea52c4c78bb876d2f6330d23644c233 (diff) | |
download | chromium_src-813300cda44974c5017bb64cd93d131215df4f74.zip chromium_src-813300cda44974c5017bb64cd93d131215df4f74.tar.gz chromium_src-813300cda44974c5017bb64cd93d131215df4f74.tar.bz2 |
TaskManager: Remove some unused/unnecessary methods.
What's removed:
- The idea of unique_id's (these were for the now-gone webUI taskmanager).
- The GetResourceExtension() method, which the tests no longer need.
- The IsBackground getter, which is not used.
BUG=348836
Review URL: https://codereview.chromium.org/186153002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255217 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager/task_manager.h')
-rw-r--r-- | chrome/browser/task_manager/task_manager.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/chrome/browser/task_manager/task_manager.h b/chrome/browser/task_manager/task_manager.h index 45a76d5..2909460 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_; |