| 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 FlexibleArrayBufferView_h | 5 #ifndef FlexibleArrayBufferView_h |
| 6 #define FlexibleArrayBufferView_h | 6 #define FlexibleArrayBufferView_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/DOMArrayBufferView.h" | 9 #include "core/dom/DOMArrayBufferView.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 #include "wtf/Noncopyable.h" | 11 #include "platform/wtf/Noncopyable.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class CORE_EXPORT FlexibleArrayBufferView { | 15 class CORE_EXPORT FlexibleArrayBufferView { |
| 16 STACK_ALLOCATED(); | 16 STACK_ALLOCATED(); |
| 17 WTF_MAKE_NONCOPYABLE(FlexibleArrayBufferView); | 17 WTF_MAKE_NONCOPYABLE(FlexibleArrayBufferView); |
| 18 | 18 |
| 19 public: | 19 public: |
| 20 FlexibleArrayBufferView() : small_data_(nullptr), small_length_(0) {} | 20 FlexibleArrayBufferView() : small_data_(nullptr), small_length_(0) {} |
| 21 | 21 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 private: | 62 private: |
| 63 Member<DOMArrayBufferView> full_; | 63 Member<DOMArrayBufferView> full_; |
| 64 | 64 |
| 65 void* small_data_; | 65 void* small_data_; |
| 66 size_t small_length_; | 66 size_t small_length_; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace blink | 69 } // namespace blink |
| 70 | 70 |
| 71 #endif // FlexibleArrayBufferView_h | 71 #endif // FlexibleArrayBufferView_h |
| OLD | NEW |