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 ReadableStream_h | 5 #ifndef ReadableStream_h |
6 #define ReadableStream_h | 6 #define ReadableStream_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
9 #include "bindings/core/v8/ScriptPromiseProperty.h" | 9 #include "bindings/core/v8/ScriptPromiseProperty.h" |
10 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
11 #include "bindings/core/v8/ScriptValue.h" | 11 #include "bindings/core/v8/ScriptValue.h" |
12 #include "bindings/core/v8/ScriptWrappable.h" | 12 #include "bindings/core/v8/ScriptWrappable.h" |
13 #include "bindings/core/v8/V8Binding.h" | 13 #include "bindings/core/v8/V8Binding.h" |
14 #include "core/CoreExport.h" | 14 #include "core/CoreExport.h" |
15 #include "platform/heap/Handle.h" | 15 #include "platform/heap/Handle.h" |
16 #include "wtf/Forward.h" | 16 #include "wtf/Forward.h" |
17 #include "wtf/PassRefPtr.h" | 17 #include "wtf/PassRefPtr.h" |
18 #include "wtf/RefPtr.h" | 18 #include "wtf/RefPtr.h" |
19 | 19 |
20 namespace blink { | 20 namespace blink { |
21 | 21 |
22 class DOMException; | 22 class DOMException; |
23 class ExceptionState; | 23 class ExceptionState; |
24 class ExecutionContext; | 24 class ExecutionContext; |
25 class ReadableStreamReader; | 25 class ReadableStreamReader; |
26 class UnderlyingSource; | 26 class UnderlyingSource; |
27 | 27 |
28 class CORE_EXPORT ReadableStream : public GarbageCollectedFinalized<ReadableStre
am>, public ScriptWrappable { | 28 class CORE_EXPORT ReadableStream : public GarbageCollectedFinalized<ReadableStre
am> { |
29 DEFINE_WRAPPERTYPEINFO(); | |
30 public: | 29 public: |
31 enum State { | 30 enum State { |
32 Readable, | 31 Readable, |
33 Closed, | 32 Closed, |
34 Errored, | 33 Errored, |
35 }; | 34 }; |
36 | 35 |
37 // After ReadableStream construction, |didSourceStart| must be called when | 36 // After ReadableStream construction, |didSourceStart| must be called when |
38 // |source| initialization succeeds and |error| must be called when | 37 // |source| initialization succeeds and |error| must be called when |
39 // |source| initialization fails. | 38 // |source| initialization fails. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 bool m_isDisturbed; | 97 bool m_isDisturbed; |
99 State m_state; | 98 State m_state; |
100 | 99 |
101 Member<DOMException> m_exception; | 100 Member<DOMException> m_exception; |
102 Member<ReadableStreamReader> m_reader; | 101 Member<ReadableStreamReader> m_reader; |
103 }; | 102 }; |
104 | 103 |
105 } // namespace blink | 104 } // namespace blink |
106 | 105 |
107 #endif // ReadableStream_h | 106 #endif // ReadableStream_h |
OLD | NEW |