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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 203 |
205 MemoryCoordinator::ChildInfo::ChildInfo() {} | 204 MemoryCoordinator::ChildInfo::ChildInfo() {} |
206 | 205 |
207 MemoryCoordinator::ChildInfo::ChildInfo(const ChildInfo& rhs) { | 206 MemoryCoordinator::ChildInfo::ChildInfo(const ChildInfo& rhs) { |
208 // This is a nop, but exists for compatibility with STL containers. | 207 // This is a nop, but exists for compatibility with STL containers. |
209 } | 208 } |
210 | 209 |
211 MemoryCoordinator::ChildInfo::~ChildInfo() {} | 210 MemoryCoordinator::ChildInfo::~ChildInfo() {} |
212 | 211 |
213 } // namespace content | 212 } // namespace content |
OLD | NEW |