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 DOMArrayBufferBase_h | 5 #ifndef DOMArrayBufferBase_h |
6 #define DOMArrayBufferBase_h | 6 #define DOMArrayBufferBase_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 v8::Local<v8::Object> wrap(v8::Isolate*, | 36 v8::Local<v8::Object> wrap(v8::Isolate*, |
37 v8::Local<v8::Object> creationContext) override { | 37 v8::Local<v8::Object> creationContext) override { |
38 NOTREACHED(); | 38 NOTREACHED(); |
39 return v8::Local<v8::Object>(); | 39 return v8::Local<v8::Object>(); |
40 } | 40 } |
41 | 41 |
42 DEFINE_INLINE_VIRTUAL_TRACE() {} | 42 DEFINE_INLINE_VIRTUAL_TRACE() {} |
43 | 43 |
44 protected: | 44 protected: |
45 explicit DOMArrayBufferBase(PassRefPtr<WTF::ArrayBuffer> buffer) | 45 explicit DOMArrayBufferBase(PassRefPtr<WTF::ArrayBuffer> buffer) |
46 : m_buffer(buffer) { | 46 : m_buffer(std::move(buffer)) { |
47 DCHECK(m_buffer); | 47 DCHECK(m_buffer); |
48 } | 48 } |
49 | 49 |
50 RefPtr<WTF::ArrayBuffer> m_buffer; | 50 RefPtr<WTF::ArrayBuffer> m_buffer; |
51 }; | 51 }; |
52 | 52 |
53 } // namespace blink | 53 } // namespace blink |
54 | 54 |
55 #endif // DOMArrayBufferBase_h | 55 #endif // DOMArrayBufferBase_h |
OLD | NEW |