| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 UnderlyingSourceBase_h | 5 #ifndef UnderlyingSourceBase_h |
| 6 #define UnderlyingSourceBase_h | 6 #define UnderlyingSourceBase_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ActiveScriptWrappable.h" | 8 #include "bindings/core/v8/ActiveScriptWrappable.h" |
| 9 #include "bindings/core/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.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 "core/CoreExport.h" | 13 #include "core/CoreExport.h" |
| 14 #include "core/dom/ActiveDOMObject.h" | 14 #include "core/dom/ActiveDOMObject.h" |
| 15 #include "platform/heap/GarbageCollected.h" | 15 #include "platform/heap/GarbageCollected.h" |
| 16 #include "platform/heap/Handle.h" | 16 #include "platform/heap/Handle.h" |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 class ReadableStreamController; | 20 class ReadableStreamController; |
| 21 | 21 |
| 22 class CORE_EXPORT UnderlyingSourceBase : public GarbageCollectedFinalized<Underl
yingSourceBase>, public ScriptWrappable, public ActiveScriptWrappable, public Ac
tiveDOMObject { | 22 class CORE_EXPORT UnderlyingSourceBase : public GarbageCollectedFinalized<Underl
yingSourceBase>, public ScriptWrappable, public ActiveScriptWrappable, public Ac
tiveDOMObject { |
| 23 DEFINE_WRAPPERTYPEINFO(); | 23 DEFINE_WRAPPERTYPEINFO(); |
| 24 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(UnderlyingSourceBase); | 24 USING_GARBAGE_COLLECTED_MIXIN(UnderlyingSourceBase); |
| 25 | 25 |
| 26 public: | 26 public: |
| 27 DECLARE_VIRTUAL_TRACE(); | 27 DECLARE_VIRTUAL_TRACE(); |
| 28 virtual ~UnderlyingSourceBase() {} | 28 virtual ~UnderlyingSourceBase() {} |
| 29 | 29 |
| 30 ScriptPromise startWrapper(ScriptState*, ScriptValue stream); | 30 ScriptPromise startWrapper(ScriptState*, ScriptValue stream); |
| 31 virtual ScriptPromise start(ScriptState*); | 31 virtual ScriptPromise start(ScriptState*); |
| 32 | 32 |
| 33 virtual ScriptPromise pull(ScriptState*); | 33 virtual ScriptPromise pull(ScriptState*); |
| 34 | 34 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 51 | 51 |
| 52 ReadableStreamController* controller() const { return m_controller; } | 52 ReadableStreamController* controller() const { return m_controller; } |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 Member<ReadableStreamController> m_controller; | 55 Member<ReadableStreamController> m_controller; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace blink | 58 } // namespace blink |
| 59 | 59 |
| 60 #endif // UnderlyingSourceBase_h | 60 #endif // UnderlyingSourceBase_h |
| OLD | NEW |