| 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_;
|
|
|