| 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 ReadableStreamController_h | 5 #ifndef ReadableStreamController_h |
| 6 #define ReadableStreamController_h | 6 #define ReadableStreamController_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScopedPersistent.h" | 8 #include "bindings/core/v8/ScopedPersistent.h" |
| 9 #include "bindings/core/v8/ScriptValue.h" | 9 #include "bindings/core/v8/ScriptValue.h" |
| 10 #include "bindings/core/v8/ToV8ForCore.h" | 10 #include "bindings/core/v8/ToV8ForCore.h" |
| 11 #include "bindings/core/v8/V8ScriptRunner.h" | 11 #include "bindings/core/v8/V8ScriptRunner.h" |
| 12 #include "core/CoreExport.h" | 12 #include "core/CoreExport.h" |
| 13 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
| 14 #include "platform/wtf/RefPtr.h" |
| 14 #include "v8/include/v8.h" | 15 #include "v8/include/v8.h" |
| 15 #include "wtf/RefPtr.h" | |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 // TODO(tyoshino): Rename this to ReadableStreamDefaultControllerWrapper. | 19 // TODO(tyoshino): Rename this to ReadableStreamDefaultControllerWrapper. |
| 20 class CORE_EXPORT ReadableStreamController final | 20 class CORE_EXPORT ReadableStreamController final |
| 21 : public GarbageCollectedFinalized<ReadableStreamController> { | 21 : public GarbageCollectedFinalized<ReadableStreamController> { |
| 22 public: | 22 public: |
| 23 DEFINE_INLINE_TRACE() {} | 23 DEFINE_INLINE_TRACE() {} |
| 24 | 24 |
| 25 explicit ReadableStreamController(ScriptValue controller) | 25 explicit ReadableStreamController(ScriptValue controller) |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 } | 112 } |
| 113 | 113 |
| 114 private: | 114 private: |
| 115 RefPtr<ScriptState> script_state_; | 115 RefPtr<ScriptState> script_state_; |
| 116 ScopedPersistent<v8::Value> js_controller_; | 116 ScopedPersistent<v8::Value> js_controller_; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace blink | 119 } // namespace blink |
| 120 | 120 |
| 121 #endif // ReadableStreamController_h | 121 #endif // ReadableStreamController_h |
| OLD | NEW |