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

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

Issue 1912773002: Remove the old task manager view (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tapted's comments Created 4 years, 8 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 464637e9b78baae32a3ba8d9fbaef5efcedd7ffe..3852a47f685c9357869cd0278bfc24b64c496093 100644
--- a/chrome/browser/task_manager/task_manager.h
+++ b/chrome/browser/task_manager/task_manager.h
@@ -24,6 +24,18 @@
#include "gpu/ipc/common/memory_stats.h"
#include "third_party/WebKit/public/web/WebCache.h"
+// -----------------------------------------------------------------------------
+// DEPRECATED:
+// - This is currently enabled only on MacOSX, and will be removed soon (See
+// crbug.com/528486).
+// - Please don't add any new stuff here. See the new implementation in
+// //src/chrome/browser/task_management.
+// -----------------------------------------------------------------------------
+#if !defined(OS_MACOSX)
+#error "The old task manager is deprecated on non-macos platforms."
+#endif // defined(OS_MACOSX)
+
+
class PrefRegistrySimple;
class PrivateWorkingSetSnapshot;
class TaskManagerModel;
@@ -52,10 +64,9 @@ class URLRequest;
// This class is a singleton.
class TaskManager {
public:
- static void RegisterPrefs(PrefRegistrySimple* registry);
-
- // Returns true if the user is allowed to end processes.
- static bool IsEndProcessEnabled();
+ // On Mac, if the views toolkit is enabled, the new implementation of the task
+ // manager backend (in task_management/) will be used.
+ static bool NewTaskManagerEnabled();
// Returns true if the process at the specified index is the browser process.
bool IsBrowserProcess(int index) const;

Powered by Google App Engine
This is Rietveld 408576698