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

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

Issue 2143353004: Revert of Add MemoryCoordinator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
deleted file mode 100644
index 8ae02eb30943f45548830bf082973034965a932e..0000000000000000000000000000000000000000
--- a/components/memory_coordinator/browser/memory_coordinator.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2016 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 COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_COORDINATOR_H_
-#define COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_COORDINATOR_H_
-
-#include "components/memory_coordinator/public/interfaces/memory_coordinator.mojom.h"
-#include "mojo/public/cpp/bindings/binding.h"
-
-namespace memory_coordinator {
-
-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 {
- public:
- MemoryCoordinator();
- ~MemoryCoordinator();
-
- void CreateHandle(int render_process_id,
- mojom::MemoryCoordinatorHandleRequest request);
-
- // Returns number of children. Only used for testing.
- size_t NumChildrenForTesting();
-
- private:
- void OnConnectionError(int render_process_id);
-
- // Mappings of RenderProcessHost::GetID() -> MemoryCoordinatorHandleImpl.
- // A mapping is added when a renderer connects to MemoryCoordinator and
- // removed automatically when a underlying binding is disconnected.
- std::map<int, std::unique_ptr<MemoryCoordinatorHandleImpl>> children_;
-
- DISALLOW_COPY_AND_ASSIGN(MemoryCoordinator);
-};
-
-} // memory_coordinator
-
-#endif // COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_COORDINATOR_H_
« no previous file with comments | « components/memory_coordinator/browser/BUILD.gn ('k') | components/memory_coordinator/browser/memory_coordinator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698