OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef DOMArrayPiece_h |
| 6 #define DOMArrayPiece_h |
| 7 |
| 8 #include "core/dom/DOMArrayBuffer.h" |
| 9 #include "core/dom/DOMArrayBufferView.h" |
| 10 #include "wtf/ArrayPiece.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class DOMArrayPiece : public WTF::ArrayPiece { |
| 15 public: |
| 16 DOMArrayPiece(DOMArrayBuffer* buffer) |
| 17 : ArrayPiece(buffer->buffer()) { } |
| 18 DOMArrayPiece(DOMArrayBufferView* view) |
| 19 : ArrayPiece(view->view()) { } |
| 20 }; |
| 21 |
| 22 } // namespace blink |
| 23 |
| 24 #endif // DOMArrayPiece_h |
OLD | NEW |