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