| Index: services/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl.h
|
| diff --git a/services/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl.h b/services/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl.h
|
| index 117661997368983b166c9a275728e054f488a42b..d54b795f243653e0934806747d393d530ec25f10 100644
|
| --- a/services/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl.h
|
| +++ b/services/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_MEMORY_MEMORY_DUMP_MANAGER_DELEGATE_IMPL_H_
|
| #define SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_MEMORY_MEMORY_DUMP_MANAGER_DELEGATE_IMPL_H_
|
|
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/trace_event/memory_dump_manager.h"
|
| #include "base/trace_event/memory_dump_request_args.h"
|
| #include "mojo/public/cpp/bindings/binding.h"
|
| @@ -23,10 +24,11 @@ class MemoryDumpManagerDelegateImpl
|
| service_manager::InterfaceProvider* interface_provider);
|
|
|
| // Use to bind to a coordinator in the same process.
|
| - MemoryDumpManagerDelegateImpl(Coordinator* coordinator);
|
| + MemoryDumpManagerDelegateImpl(Coordinator* coordinator,
|
| + base::SingleThreadTaskRunner* task_runner);
|
| ~MemoryDumpManagerDelegateImpl() override;
|
|
|
| - bool IsCoordinator() const;
|
| + bool IsCoordinator() const override;
|
|
|
| // The base::trace_event::MemoryDumpManager calls this.
|
| void RequestGlobalMemoryDump(
|
| @@ -42,6 +44,7 @@ class MemoryDumpManagerDelegateImpl
|
| bool is_coordinator_;
|
| mojom::CoordinatorPtr coordinator_;
|
| mojo::Binding<mojom::ProcessLocalDumpManager> binding_;
|
| + base::SingleThreadTaskRunner* task_runner_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(MemoryDumpManagerDelegateImpl);
|
| };
|
|
|