OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CC_BASE_LIST_CONTAINER_HELPER_H_ | 5 #ifndef CC_BASE_LIST_CONTAINER_HELPER_H_ |
6 #define CC_BASE_LIST_CONTAINER_HELPER_H_ | 6 #define CC_BASE_LIST_CONTAINER_HELPER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 10 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
9 #include "cc/base/cc_export.h" | 12 #include "cc/base/cc_export.h" |
10 | 13 |
11 namespace cc { | 14 namespace cc { |
12 | 15 |
13 // Helper class for ListContainer non-templated logic. All methods are private, | 16 // Helper class for ListContainer non-templated logic. All methods are private, |
14 // and only exposed to friend classes. | 17 // and only exposed to friend classes. |
15 // For usage, see comments in ListContainer (list_container.h). | 18 // For usage, see comments in ListContainer (list_container.h). |
16 class CC_EXPORT ListContainerHelper final { | 19 class CC_EXPORT ListContainerHelper final { |
17 private: | 20 private: |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 void* Allocate(size_t size_of_actual_element_in_bytes); | 172 void* Allocate(size_t size_of_actual_element_in_bytes); |
170 | 173 |
171 scoped_ptr<CharAllocator> data_; | 174 scoped_ptr<CharAllocator> data_; |
172 | 175 |
173 DISALLOW_COPY_AND_ASSIGN(ListContainerHelper); | 176 DISALLOW_COPY_AND_ASSIGN(ListContainerHelper); |
174 }; | 177 }; |
175 | 178 |
176 } // namespace cc | 179 } // namespace cc |
177 | 180 |
178 #endif // CC_BASE_LIST_CONTAINER_HELPER_H_ | 181 #endif // CC_BASE_LIST_CONTAINER_HELPER_H_ |
OLD | NEW |