Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(885)

Side by Side Diff: third_party/WebKit/Source/core/streams/ReadableStreamOperations.h

Issue 1969333002: [Fetch API] |(new Response(stream)).body| should return |stream| (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698