| 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/browser/memory/memory_coordinator.h" | 5 #include "content/browser/memory/memory_coordinator.h" |
| 6 | 6 |
| 7 #include "base/memory/memory_coordinator_client_registry.h" | 7 #include "base/memory/memory_coordinator_client_registry.h" |
| 8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
| 9 #include "content/public/browser/content_browser_client.h" | 9 #include "content/public/browser/content_browser_client.h" |
| 10 #include "content/public/browser/render_process_host.h" | 10 #include "content/public/browser/render_process_host.h" |
| 11 #include "content/public/common/content_client.h" | 11 #include "content/public/common/content_client.h" |
| 12 #include "content/public/common/content_features.h" | |
| 13 | 12 |
| 14 namespace content { | 13 namespace content { |
| 15 | 14 |
| 16 // The implementation of MemoryCoordinatorHandle. See memory_coordinator.mojom | 15 // The implementation of MemoryCoordinatorHandle. See memory_coordinator.mojom |
| 17 // for the role of this class. | 16 // for the role of this class. |
| 18 class MemoryCoordinatorHandleImpl : public mojom::MemoryCoordinatorHandle { | 17 class MemoryCoordinatorHandleImpl : public mojom::MemoryCoordinatorHandle { |
| 19 public: | 18 public: |
| 20 MemoryCoordinatorHandleImpl(mojom::MemoryCoordinatorHandleRequest request, | 19 MemoryCoordinatorHandleImpl(mojom::MemoryCoordinatorHandleRequest request, |
| 21 MemoryCoordinator* coordinator, | 20 MemoryCoordinator* coordinator, |
| 22 int render_process_id); | 21 int render_process_id); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 195 |
| 197 MemoryCoordinator::ChildInfo::ChildInfo() {} | 196 MemoryCoordinator::ChildInfo::ChildInfo() {} |
| 198 | 197 |
| 199 MemoryCoordinator::ChildInfo::ChildInfo(const ChildInfo& rhs) { | 198 MemoryCoordinator::ChildInfo::ChildInfo(const ChildInfo& rhs) { |
| 200 // This is a nop, but exists for compatibility with STL containers. | 199 // This is a nop, but exists for compatibility with STL containers. |
| 201 } | 200 } |
| 202 | 201 |
| 203 MemoryCoordinator::ChildInfo::~ChildInfo() {} | 202 MemoryCoordinator::ChildInfo::~ChildInfo() {} |
| 204 | 203 |
| 205 } // namespace content | 204 } // namespace content |
| OLD | NEW |