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

Unified Diff: components/memory_coordinator/browser/memory_coordinator.h

Issue 2144163002: Extract client handing from ChildMemoryCoordinatorImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mc-2-notify
Patch Set: rebase Created 4 years, 5 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: components/memory_coordinator/browser/memory_coordinator.h
diff --git a/components/memory_coordinator/browser/memory_coordinator.h b/components/memory_coordinator/browser/memory_coordinator.h
index 8ae02eb30943f45548830bf082973034965a932e..3cf4fb585904e092512971d40ea0d1ad053c3894 100644
--- a/components/memory_coordinator/browser/memory_coordinator.h
+++ b/components/memory_coordinator/browser/memory_coordinator.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_COORDINATOR_H_
#define COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_COORDINATOR_H_
+#include "components/memory_coordinator/common/client_registry.h"
#include "components/memory_coordinator/public/interfaces/memory_coordinator.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
@@ -15,10 +16,10 @@ class MemoryCoordinatorHandleImpl;
// MemoryCoordinator is responsible for the whole memory management accross the
// browser and child proceeses. It will dispatch memory events to its clients
// and child processes based on its best knowledge of the memory usage.
-class MemoryCoordinator {
+class MemoryCoordinator : public ClientRegistry {
public:
MemoryCoordinator();
- ~MemoryCoordinator();
+ ~MemoryCoordinator() override;
void CreateHandle(int render_process_id,
mojom::MemoryCoordinatorHandleRequest request);
« no previous file with comments | « components/memory_coordinator.gypi ('k') | components/memory_coordinator/child/child_memory_coordinator_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698