| 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 ReadableByteStream_h | 5 #ifndef ReadableByteStream_h |
| 6 #define ReadableByteStream_h | 6 #define ReadableByteStream_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 "core/streams/ReadableStreamImpl.h" | 10 #include "core/streams/ReadableStreamImpl.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class DOMArrayBufferView; | 14 class DOMArrayBufferView; |
| 15 class ExceptionState; | 15 class ExceptionState; |
| 16 class ExecutionContext; | 16 class ExecutionContext; |
| 17 class ReadableByteStreamReader; | 17 class ReadableByteStreamReader; |
| 18 class ScriptState; | 18 class ScriptState; |
| 19 class Strategy; | 19 class Strategy; |
| 20 class UnderlyingSource; | 20 class UnderlyingSource; |
| 21 | 21 |
| 22 class CORE_EXPORT ReadableByteStream : public ReadableStreamImpl<ReadableStreamC
hunkTypeTraits<DOMArrayBufferView>> { | 22 class CORE_EXPORT ReadableByteStream : public ReadableStreamImpl<ReadableStreamC
hunkTypeTraits<DOMArrayBufferView>>, public ScriptWrappable { |
| 23 DEFINE_WRAPPERTYPEINFO(); | 23 DEFINE_WRAPPERTYPEINFO(); |
| 24 public: | 24 public: |
| 25 explicit ReadableByteStream(UnderlyingSource* source) : ReadableStreamImpl<R
eadableStreamChunkTypeTraits<DOMArrayBufferView>>(source) { } | 25 explicit ReadableByteStream(UnderlyingSource* source) : ReadableStreamImpl<R
eadableStreamChunkTypeTraits<DOMArrayBufferView>>(source) { } |
| 26 ReadableByteStream(UnderlyingSource* source, Strategy* strategy) : ReadableS
treamImpl<ReadableStreamChunkTypeTraits<DOMArrayBufferView>>(source, strategy) {
} | 26 ReadableByteStream(UnderlyingSource* source, Strategy* strategy) : ReadableS
treamImpl<ReadableStreamChunkTypeTraits<DOMArrayBufferView>>(source, strategy) {
} |
| 27 | 27 |
| 28 ReadableByteStreamReader* getBytesReader(ExecutionContext*, ExceptionState&)
; | 28 ReadableByteStreamReader* getBytesReader(ExecutionContext*, ExceptionState&)
; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 } // namespace blink | 31 } // namespace blink |
| 32 | 32 |
| 33 #endif // ReadableByteStream_h | 33 #endif // ReadableByteStream_h |
| OLD | NEW |