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

Unified Diff: components/memory_coordinator/browser/memory_coordinator_impl.cc

Issue 2094583002: Add MemoryCoordinator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment 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_impl.cc
diff --git a/components/memory_coordinator/browser/memory_coordinator_impl.cc b/components/memory_coordinator/browser/memory_coordinator_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a12f3c1065b4db5c24a0950dc7fbdcabdaf904bc
--- /dev/null
+++ b/components/memory_coordinator/browser/memory_coordinator_impl.cc
@@ -0,0 +1,20 @@
+// 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.
+
+#include "components/memory_coordinator/browser/memory_coordinator_impl.h"
+
+namespace memory_coordinator {
+
+MemoryCoordinatorImpl::MemoryCoordinatorImpl() {}
+
+MemoryCoordinatorImpl::~MemoryCoordinatorImpl() {}
+
+void MemoryCoordinatorImpl::RendererLaunched(
+ shell::InterfaceProvider* remote_interfaces) {
+ mojom::ChildMemoryCoordinatorPtr child;
+ remote_interfaces->GetInterface(mojo::GetProxy(&child));
+ children_.AddPtr(std::move(child));
haraken 2016/07/08 02:40:25 Don't we need to remove the pointer when the rende
bashi 2016/07/08 02:44:49 No. InterfacePtrSet removes it when an error occur
+}
+
+} // namespace memory_coordinator

Powered by Google App Engine
This is Rietveld 408576698