Chromium Code Reviews| 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 |