OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_CHILD_CHILD_DISCARDABLE_SHARED_MEMORY_MANAGER_H_ | 5 #ifndef CONTENT_CHILD_CHILD_DISCARDABLE_SHARED_MEMORY_MANAGER_H_ |
6 #define CONTENT_CHILD_CHILD_DISCARDABLE_SHARED_MEMORY_MANAGER_H_ | 6 #define CONTENT_CHILD_CHILD_DISCARDABLE_SHARED_MEMORY_MANAGER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 10 #include "base/macros.h" |
8 #include "base/memory/discardable_memory_allocator.h" | 11 #include "base/memory/discardable_memory_allocator.h" |
9 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
10 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
11 #include "base/trace_event/memory_dump_provider.h" | 14 #include "base/trace_event/memory_dump_provider.h" |
12 #include "content/child/thread_safe_sender.h" | 15 #include "content/child/thread_safe_sender.h" |
13 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
14 #include "content/common/discardable_shared_memory_heap.h" | 17 #include "content/common/discardable_shared_memory_heap.h" |
15 #include "content/common/host_discardable_shared_memory_manager.h" | 18 #include "content/common/host_discardable_shared_memory_manager.h" |
16 | 19 |
17 namespace content { | 20 namespace content { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 mutable base::Lock lock_; | 58 mutable base::Lock lock_; |
56 DiscardableSharedMemoryHeap heap_; | 59 DiscardableSharedMemoryHeap heap_; |
57 scoped_refptr<ThreadSafeSender> sender_; | 60 scoped_refptr<ThreadSafeSender> sender_; |
58 | 61 |
59 DISALLOW_COPY_AND_ASSIGN(ChildDiscardableSharedMemoryManager); | 62 DISALLOW_COPY_AND_ASSIGN(ChildDiscardableSharedMemoryManager); |
60 }; | 63 }; |
61 | 64 |
62 } // namespace content | 65 } // namespace content |
63 | 66 |
64 #endif // CONTENT_CHILD_CHILD_DISCARDABLE_SHARED_MEMORY_MANAGER_H_ | 67 #endif // CONTENT_CHILD_CHILD_DISCARDABLE_SHARED_MEMORY_MANAGER_H_ |
OLD | NEW |