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

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

Issue 1700873002: Remove HostDesktopType from task manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-25
Patch Set: Created 4 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 unified diff | Download patch
« 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // observers to completely refresh themselves (for example, the creation of 77 // observers to completely refresh themselves (for example, the creation of
78 // a background resource in a process). Results in all observers receiving 78 // a background resource in a process). Results in all observers receiving
79 // OnModelChanged() events. 79 // OnModelChanged() events.
80 void ModelChanged(); 80 void ModelChanged();
81 81
82 // Returns the singleton instance (and initializes it if necessary). 82 // Returns the singleton instance (and initializes it if necessary).
83 static TaskManager* GetInstance(); 83 static TaskManager* GetInstance();
84 84
85 TaskManagerModel* model() const { return model_.get(); } 85 TaskManagerModel* model() const { return model_.get(); }
86 86
87 void OpenAboutMemory(chrome::HostDesktopType desktop_type); 87 void OpenAboutMemory();
88 88
89 private: 89 private:
90 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, Basic); 90 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, Basic);
91 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, Resources); 91 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, Resources);
92 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, RefreshCalled); 92 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, RefreshCalled);
93 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Init); 93 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Init);
94 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Sort); 94 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Sort);
95 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, 95 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest,
96 SelectionAdaptsToSorting); 96 SelectionAdaptsToSorting);
97 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, 97 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest,
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 // All per-Resource values are stored here. 549 // All per-Resource values are stored here.
550 mutable PerResourceCache per_resource_cache_; 550 mutable PerResourceCache per_resource_cache_;
551 551
552 // All per-Process values are stored here. 552 // All per-Process values are stored here.
553 mutable PerProcessCache per_process_cache_; 553 mutable PerProcessCache per_process_cache_;
554 554
555 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); 555 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel);
556 }; 556 };
557 557
558 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 558 #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