| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "core/streams/ReadableStreamOperations.h" | 5 #include "core/streams/ReadableStreamOperations.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
| 8 #include "bindings/core/v8/ScriptState.h" | 8 #include "bindings/core/v8/ScriptState.h" |
| 9 #include "bindings/core/v8/ToV8.h" | 9 #include "bindings/core/v8/ToV8ForCore.h" |
| 10 #include "bindings/core/v8/V8ScriptRunner.h" | 10 #include "bindings/core/v8/V8ScriptRunner.h" |
| 11 #include "core/streams/UnderlyingSourceBase.h" | 11 #include "core/streams/UnderlyingSourceBase.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 ScriptValue ReadableStreamOperations::CreateReadableStream( | 15 ScriptValue ReadableStreamOperations::CreateReadableStream( |
| 16 ScriptState* script_state, | 16 ScriptState* script_state, |
| 17 UnderlyingSourceBase* underlying_source, | 17 UnderlyingSourceBase* underlying_source, |
| 18 ScriptValue strategy) { | 18 ScriptValue strategy) { |
| 19 ScriptState::Scope scope(script_state); | 19 ScriptState::Scope scope(script_state); |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 branches->Get(script_state->GetContext(), 0).ToLocalChecked()); | 173 branches->Get(script_state->GetContext(), 0).ToLocalChecked()); |
| 174 *new_stream2 = ScriptValue( | 174 *new_stream2 = ScriptValue( |
| 175 script_state, | 175 script_state, |
| 176 branches->Get(script_state->GetContext(), 1).ToLocalChecked()); | 176 branches->Get(script_state->GetContext(), 1).ToLocalChecked()); |
| 177 | 177 |
| 178 DCHECK(IsReadableStream(script_state, *new_stream1)); | 178 DCHECK(IsReadableStream(script_state, *new_stream1)); |
| 179 DCHECK(IsReadableStream(script_state, *new_stream2)); | 179 DCHECK(IsReadableStream(script_state, *new_stream2)); |
| 180 } | 180 } |
| 181 | 181 |
| 182 } // namespace blink | 182 } // namespace blink |
| OLD | NEW |