OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 BASE_MEMORY_DISCARDABLE_MEMORY_H_ | 5 #ifndef BASE_MEMORY_DISCARDABLE_MEMORY_H_ |
6 #define BASE_MEMORY_DISCARDABLE_MEMORY_H_ | 6 #define BASE_MEMORY_DISCARDABLE_MEMORY_H_ |
7 | 7 |
8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
9 #include "base/basictypes.h" | |
10 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
11 | 10 |
12 namespace base { | 11 namespace base { |
13 | 12 |
14 namespace trace_event { | 13 namespace trace_event { |
15 class MemoryAllocatorDump; | 14 class MemoryAllocatorDump; |
16 class ProcessMemoryDump; | 15 class ProcessMemoryDump; |
17 } | 16 } |
18 | 17 |
19 // Discardable memory is used to cache large objects without worrying about | 18 // Discardable memory is used to cache large objects without worrying about |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // discardable memory. The MemoryAllocatorDump created is owned by |pmd|. See | 69 // discardable memory. The MemoryAllocatorDump created is owned by |pmd|. See |
71 // ProcessMemoryDump::CreateAllocatorDump. | 70 // ProcessMemoryDump::CreateAllocatorDump. |
72 virtual trace_event::MemoryAllocatorDump* CreateMemoryAllocatorDump( | 71 virtual trace_event::MemoryAllocatorDump* CreateMemoryAllocatorDump( |
73 const char* name, | 72 const char* name, |
74 trace_event::ProcessMemoryDump* pmd) const = 0; | 73 trace_event::ProcessMemoryDump* pmd) const = 0; |
75 }; | 74 }; |
76 | 75 |
77 } // namespace base | 76 } // namespace base |
78 | 77 |
79 #endif // BASE_MEMORY_DISCARDABLE_MEMORY_H_ | 78 #endif // BASE_MEMORY_DISCARDABLE_MEMORY_H_ |
OLD | NEW |