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

Unified Diff: services/memory_instrumentation/public/cpp/memory_dump_manager_delegate_impl.h

Issue 2693063002: Renamed /services/memory_infrastructure to /services/resource_coordinator (Closed)
Patch Set: Review fix Created 3 years, 10 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: services/memory_instrumentation/public/cpp/memory_dump_manager_delegate_impl.h
diff --git a/services/memory_instrumentation/public/cpp/memory_dump_manager_delegate_impl.h b/services/memory_instrumentation/public/cpp/memory_dump_manager_delegate_impl.h
deleted file mode 100644
index 952f0b1c4c48643a4a2bce19a139f48a692b964c..0000000000000000000000000000000000000000
--- a/services/memory_instrumentation/public/cpp/memory_dump_manager_delegate_impl.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SERVICES_MEMORY_INFRA_PUBLIC_CPP_MEMORY_DUMP_MANAGER_DELEGATE_IMPL_H_
-#define SERVICES_MEMORY_INFRA_PUBLIC_CPP_MEMORY_DUMP_MANAGER_DELEGATE_IMPL_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"
-#include "services/memory_instrumentation/public/cpp/coordinator.h"
-#include "services/memory_instrumentation/public/interfaces/memory_instrumentation.mojom.h"
-#include "services/service_manager/public/cpp/interface_provider.h"
-
-namespace memory_instrumentation {
-
-class MemoryDumpManagerDelegateImpl
- : public base::trace_event::MemoryDumpManagerDelegate,
- public mojom::ProcessLocalDumpManager {
- public:
- // Use to bind to a remote coordinator.
- MemoryDumpManagerDelegateImpl(
- service_manager::InterfaceProvider* interface_provider);
-
- // Use to bind to a coordinator in the same process.
- MemoryDumpManagerDelegateImpl(Coordinator* coordinator);
- ~MemoryDumpManagerDelegateImpl() override;
-
- bool IsCoordinator() const;
-
- // The base::trace_event::MemoryDumpManager calls this.
- void RequestGlobalMemoryDump(
- const base::trace_event::MemoryDumpRequestArgs& args,
- const base::trace_event::MemoryDumpCallback& callback) override;
-
- private:
- // The ProcessLocalDumpManager interface. The coordinator calls this.
- void RequestProcessMemoryDump(
- const base::trace_event::MemoryDumpRequestArgs& args,
- const RequestProcessMemoryDumpCallback& callback) override;
-
- bool is_coordinator_;
- mojom::CoordinatorPtr coordinator_;
- mojo::Binding<mojom::ProcessLocalDumpManager> binding_;
-
- DISALLOW_COPY_AND_ASSIGN(MemoryDumpManagerDelegateImpl);
-};
-
-} // namespace memory_instrumentation
-
-#endif // SERVICES_MEMORY_INFRA_PUBLIC_CPP_MEMORY_DUMP_MANAGER_DELEGATE_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698