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/dom/ContextLifecycleObserver.h" | 14 #include "core/dom/ContextLifecycleObserver.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 UnderlyingSource; | 24 class UnderlyingSource; |
25 | 25 |
26 class ReadableStream : public GarbageCollectedFinalized<ReadableStream>, public
ScriptWrappable { | 26 class ReadableStream : public GarbageCollectedFinalized<ReadableStream>, public
ScriptWrappable { |
| 27 DEFINE_WRAPPERTYPEINFO(); |
27 public: | 28 public: |
28 enum State { | 29 enum State { |
29 Readable, | 30 Readable, |
30 Waiting, | 31 Waiting, |
31 Closed, | 32 Closed, |
32 Errored, | 33 Errored, |
33 }; | 34 }; |
34 | 35 |
35 // FIXME: Define Strategy here. | 36 // FIXME: Define Strategy here. |
36 // FIXME: Add |strategy| constructor parameter. | 37 // FIXME: Add |strategy| constructor parameter. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 State m_state; | 82 State m_state; |
82 | 83 |
83 Member<WaitPromise> m_wait; | 84 Member<WaitPromise> m_wait; |
84 Member<ClosedPromise> m_closed; | 85 Member<ClosedPromise> m_closed; |
85 RefPtrWillBeMember<DOMException> m_exception; | 86 RefPtrWillBeMember<DOMException> m_exception; |
86 }; | 87 }; |
87 | 88 |
88 } // namespace blink | 89 } // namespace blink |
89 | 90 |
90 #endif // ReadableStream_h | 91 #endif // ReadableStream_h |
91 | |
OLD | NEW |