| 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/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptState.h" | |
| 10 #include "bindings/core/v8/ScriptValue.h" | 9 #include "bindings/core/v8/ScriptValue.h" |
| 11 #include "bindings/core/v8/ScriptWrappable.h" | |
| 12 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
| 13 #include "core/dom/ContextLifecycleObserver.h" | 11 #include "core/dom/ContextLifecycleObserver.h" |
| 14 #include "core/dom/ExecutionContext.h" | 12 #include "core/dom/ExecutionContext.h" |
| 15 #include "platform/bindings/ActiveScriptWrappable.h" | 13 #include "platform/bindings/ActiveScriptWrappable.h" |
| 14 #include "platform/bindings/ScriptState.h" |
| 15 #include "platform/bindings/ScriptWrappable.h" |
| 16 #include "platform/heap/GarbageCollected.h" | 16 #include "platform/heap/GarbageCollected.h" |
| 17 #include "platform/heap/Handle.h" | 17 #include "platform/heap/Handle.h" |
| 18 | 18 |
| 19 namespace blink { | 19 namespace blink { |
| 20 | 20 |
| 21 class ReadableStreamController; | 21 class ReadableStreamController; |
| 22 | 22 |
| 23 class CORE_EXPORT UnderlyingSourceBase | 23 class CORE_EXPORT UnderlyingSourceBase |
| 24 : public GarbageCollectedFinalized<UnderlyingSourceBase>, | 24 : public GarbageCollectedFinalized<UnderlyingSourceBase>, |
| 25 public ScriptWrappable, | 25 public ScriptWrappable, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 56 ReadableStreamController* Controller() const { return controller_; } | 56 ReadableStreamController* Controller() const { return controller_; } |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 Member<ReadableStreamController> controller_; | 59 Member<ReadableStreamController> controller_; |
| 60 bool is_stream_locked_ = false; | 60 bool is_stream_locked_ = false; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace blink | 63 } // namespace blink |
| 64 | 64 |
| 65 #endif // UnderlyingSourceBase_h | 65 #endif // UnderlyingSourceBase_h |
| OLD | NEW |