| 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 "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptValue.h" | 9 #include "bindings/core/v8/ScriptValue.h" |
| 10 #include <v8.h> | 10 #include <v8.h> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // IsReadableStreamErrored | 58 // IsReadableStreamErrored |
| 59 // This function assumes |isReadableStream(stream)|. | 59 // This function assumes |isReadableStream(stream)|. |
| 60 static bool isErrored(ScriptState*, ScriptValue stream); | 60 static bool isErrored(ScriptState*, ScriptValue stream); |
| 61 | 61 |
| 62 // IsReadableStreamDefaultReader | 62 // IsReadableStreamDefaultReader |
| 63 static bool isReadableStreamDefaultReader(ScriptState*, ScriptValue); | 63 static bool isReadableStreamDefaultReader(ScriptState*, ScriptValue); |
| 64 | 64 |
| 65 // ReadableStreamDefaultReaderRead | 65 // ReadableStreamDefaultReaderRead |
| 66 // This function assumes |isReadableStreamDefaultReader(reader)|. | 66 // This function assumes |isReadableStreamDefaultReader(reader)|. |
| 67 static ScriptPromise defaultReaderRead(ScriptState*, ScriptValue reader); | 67 static ScriptPromise defaultReaderRead(ScriptState*, ScriptValue reader); |
| 68 |
| 69 // ReadableStreamTee |
| 70 // This function assumes |isReadableStream(stream)| and |!isLocked(stream)| |
| 71 static void tee(ScriptState*, ScriptValue stream, ScriptValue* newStream1, S
criptValue* newStream2); |
| 68 }; | 72 }; |
| 69 | 73 |
| 70 } // namespace blink | 74 } // namespace blink |
| 71 | 75 |
| 72 #endif // ReadableStreamOperations_h | 76 #endif // ReadableStreamOperations_h |
| OLD | NEW |