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 #ifndef ReadableStreamOperations_h | 5 #ifndef ReadableStreamOperations_h |
6 #define ReadableStreamOperations_h | 6 #define ReadableStreamOperations_h |
7 | 7 |
| 8 #include <v8.h> |
8 #include "bindings/core/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.h" |
9 #include "bindings/core/v8/ScriptValue.h" | 10 #include "bindings/core/v8/ScriptValue.h" |
10 #include <v8.h> | |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class UnderlyingSourceBase; | 14 class UnderlyingSourceBase; |
15 class ExceptionState; | 15 class ExceptionState; |
16 class ScriptState; | 16 class ScriptState; |
17 | 17 |
18 // This class has various methods for ReadableStream[Reader] implemented with | 18 // This class has various methods for ReadableStream[Reader] implemented with |
19 // V8 Extras. | 19 // V8 Extras. |
20 // All methods should be called in an appropriate V8 context. All ScriptValue | 20 // All methods should be called in an appropriate V8 context. All ScriptValue |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // This function assumes |isReadableStream(stream)| and |!isLocked(stream)| | 76 // This function assumes |isReadableStream(stream)| and |!isLocked(stream)| |
77 static void tee(ScriptState*, | 77 static void tee(ScriptState*, |
78 ScriptValue stream, | 78 ScriptValue stream, |
79 ScriptValue* newStream1, | 79 ScriptValue* newStream1, |
80 ScriptValue* newStream2); | 80 ScriptValue* newStream2); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace blink | 83 } // namespace blink |
84 | 84 |
85 #endif // ReadableStreamOperations_h | 85 #endif // ReadableStreamOperations_h |
OLD | NEW |