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

Unified Diff: chrome/browser/task_management/sampling/task_group.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_group.h
diff --git a/chrome/browser/task_management/sampling/task_group.h b/chrome/browser/task_management/sampling/task_group.h
index e42c9dd97376df66cc9416c74cf1fe93c2e527ae..79224273b4e8dcd7320d9cc47a7a800108983d7b 100644
--- a/chrome/browser/task_management/sampling/task_group.h
+++ b/chrome/browser/task_management/sampling/task_group.h
@@ -9,6 +9,7 @@
#include <stdint.h>
#include <map>
+#include <vector>
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
@@ -24,6 +25,8 @@ struct VideoMemoryUsageStats;
namespace task_management {
+class SharedSampler;
+
// Defines a group of tasks tracked by the task manager which belong to the same
// process. This class lives on the UI thread.
class TaskGroup {
@@ -32,6 +35,7 @@ class TaskGroup {
base::ProcessHandle proc_handle,
base::ProcessId proc_id,
const base::Closure& on_background_calculations_done,
+ const scoped_refptr<SharedSampler>& shared_sampler,
const scoped_refptr<base::SequencedTaskRunner>& blocking_pool_runner);
~TaskGroup();
@@ -125,6 +129,8 @@ class TaskGroup {
scoped_refptr<TaskGroupSampler> worker_thread_sampler_;
+ scoped_refptr<SharedSampler> shared_sampler_;
+
// Lists the Tasks in this TaskGroup.
// Tasks are not owned by the TaskGroup. They're owned by the TaskProviders.
std::vector<Task*> tasks_;
« no previous file with comments | « chrome/browser/task_management/sampling/shared_sampler_win.cc ('k') | chrome/browser/task_management/sampling/task_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698