| 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 1f59c8ebda56ad963de0b791e11f24a465130d59..bc7fb483fb3adcdd838c2c87e8feaad18badad95 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"
|
| @@ -25,6 +26,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 {
|
| @@ -33,6 +36,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();
|
|
|
| @@ -126,6 +130,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_;
|
|
|