| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/child/memory/child_memory_coordinator_impl.h" | 5 #include "content/child/memory/child_memory_coordinator_impl.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/memory/memory_coordinator_client_registry.h" | 8 #include "base/memory/memory_coordinator_client_registry.h" |
| 9 #include "base/memory/ptr_util.h" |
| 9 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| 10 #include "base/trace_event/trace_event.h" | 11 #include "base/trace_event/trace_event.h" |
| 11 | 12 |
| 12 namespace content { | 13 namespace content { |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 base::LazyInstance<base::Lock>::Leaky g_lock = LAZY_INSTANCE_INITIALIZER; | 17 base::LazyInstance<base::Lock>::Leaky g_lock = LAZY_INSTANCE_INITIALIZER; |
| 17 ChildMemoryCoordinatorImpl* g_child_memory_coordinator = nullptr; | 18 ChildMemoryCoordinatorImpl* g_child_memory_coordinator = nullptr; |
| 18 | 19 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 #if !defined(OS_ANDROID) | 69 #if !defined(OS_ANDROID) |
| 69 std::unique_ptr<ChildMemoryCoordinatorImpl> CreateChildMemoryCoordinator( | 70 std::unique_ptr<ChildMemoryCoordinatorImpl> CreateChildMemoryCoordinator( |
| 70 mojom::MemoryCoordinatorHandlePtr parent, | 71 mojom::MemoryCoordinatorHandlePtr parent, |
| 71 ChildMemoryCoordinatorDelegate* delegate) { | 72 ChildMemoryCoordinatorDelegate* delegate) { |
| 72 return base::WrapUnique( | 73 return base::WrapUnique( |
| 73 new ChildMemoryCoordinatorImpl(std::move(parent), delegate)); | 74 new ChildMemoryCoordinatorImpl(std::move(parent), delegate)); |
| 74 } | 75 } |
| 75 #endif | 76 #endif |
| 76 | 77 |
| 77 } // namespace content | 78 } // namespace content |
| OLD | NEW |