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

Unified Diff: chrome/browser/task_management/sampling/task_manager_impl.h

Issue 2178733002: Task manager should support Idle Wakeups on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build error on win_clang Created 4 years, 4 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_management/sampling/task_manager_impl.h
diff --git a/chrome/browser/task_management/sampling/task_manager_impl.h b/chrome/browser/task_management/sampling/task_manager_impl.h
index 70de5121bafd30841fc86dc906f275c9924c0f74..14a940a0ab0c56a684375739d9d8a68a131dc8ab 100644
--- a/chrome/browser/task_management/sampling/task_manager_impl.h
+++ b/chrome/browser/task_management/sampling/task_manager_impl.h
@@ -9,6 +9,9 @@
#include <stdint.h>
#include <map>
+#include <memory>
+#include <string>
+#include <vector>
#include "base/lazy_instance.h"
#include "base/macros.h"
@@ -24,6 +27,8 @@
namespace task_management {
+class SharedSampler;
+
// Defines a concrete implementation of the TaskManagerInterface.
class TaskManagerImpl :
public TaskManagerInterface,
@@ -152,6 +157,10 @@ class TaskManagerImpl :
// sure TaskGroupSampler posts their refreshes serially.
scoped_refptr<base::SequencedTaskRunner> blocking_pool_runner_;
+ // A special sampler shared with all instances of TaskGroup that calculates a
+ // subset of resources for all processes at once.
+ scoped_refptr<SharedSampler> shared_sampler_;
+
// This will be set to true while there are observers and the task manager is
// running.
bool is_running_;

Powered by Google App Engine
This is Rietveld 408576698