| 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 HeapTerminatedArrayBuilder_h | 5 #ifndef HeapTerminatedArrayBuilder_h |
| 6 #define HeapTerminatedArrayBuilder_h | 6 #define HeapTerminatedArrayBuilder_h |
| 7 | 7 |
| 8 #include "platform/heap/Heap.h" | 8 #include "platform/heap/Heap.h" |
| 9 #include "platform/heap/HeapTerminatedArray.h" | 9 #include "platform/heap/HeapTerminatedArray.h" |
| 10 #include "wtf/TerminatedArrayBuilder.h" | 10 #include "platform/wtf/TerminatedArrayBuilder.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 template <typename T> | 14 template <typename T> |
| 15 class HeapTerminatedArrayBuilder final | 15 class HeapTerminatedArrayBuilder final |
| 16 : public TerminatedArrayBuilder<T, HeapTerminatedArray> { | 16 : public TerminatedArrayBuilder<T, HeapTerminatedArray> { |
| 17 STACK_ALLOCATED(); | 17 STACK_ALLOCATED(); |
| 18 | 18 |
| 19 public: | 19 public: |
| 20 explicit HeapTerminatedArrayBuilder(HeapTerminatedArray<T>* array) | 20 explicit HeapTerminatedArrayBuilder(HeapTerminatedArray<T>* array) |
| 21 : TerminatedArrayBuilder<T, HeapTerminatedArray>(array) {} | 21 : TerminatedArrayBuilder<T, HeapTerminatedArray>(array) {} |
| 22 }; | 22 }; |
| 23 | 23 |
| 24 } // namespace blink | 24 } // namespace blink |
| 25 | 25 |
| 26 #endif // HeapTerminatedArrayBuilder_h | 26 #endif // HeapTerminatedArrayBuilder_h |
| OLD | NEW |