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

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

Issue 1908213004: [Streams] Remove SetReadableStreamDisturbed from ReadableStream.js (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 25 matching lines...) Expand all
36 // errored. 36 // errored.
37 static ScriptValue getReader(ScriptState*, ScriptValue stream, ExceptionStat e&); 37 static ScriptValue getReader(ScriptState*, ScriptValue stream, ExceptionStat e&);
38 38
39 // IsReadableStream 39 // IsReadableStream
40 static bool isReadableStream(ScriptState*, ScriptValue); 40 static bool isReadableStream(ScriptState*, ScriptValue);
41 41
42 // IsReadableStreamDisturbed 42 // IsReadableStreamDisturbed
43 // This function assumes |isReadableStream(stream)|. 43 // This function assumes |isReadableStream(stream)|.
44 static bool isDisturbed(ScriptState*, ScriptValue stream); 44 static bool isDisturbed(ScriptState*, ScriptValue stream);
45 45
46 // SetReadableStreamDisturbed
47 // This function assumes |isReadableStream(stream)|.
48 static void setDisturbed(ScriptState*, ScriptValue stream);
49
50 // IsReadableStreamLocked 46 // IsReadableStreamLocked
51 // This function assumes |isReadableStream(stream)|. 47 // This function assumes |isReadableStream(stream)|.
52 static bool isLocked(ScriptState*, ScriptValue stream); 48 static bool isLocked(ScriptState*, ScriptValue stream);
53 49
54 // IsReadableStreamReadable 50 // IsReadableStreamReadable
55 // This function assumes |isReadableStream(stream)|. 51 // This function assumes |isReadableStream(stream)|.
56 static bool isReadable(ScriptState*, ScriptValue stream); 52 static bool isReadable(ScriptState*, ScriptValue stream);
57 53
58 // IsReadableStreamClosed 54 // IsReadableStreamClosed
59 // This function assumes |isReadableStream(stream)|. 55 // This function assumes |isReadableStream(stream)|.
60 static bool isClosed(ScriptState*, ScriptValue stream); 56 static bool isClosed(ScriptState*, ScriptValue stream);
61 57
62 // IsReadableStreamErrored 58 // IsReadableStreamErrored
63 // This function assumes |isReadableStream(stream)|. 59 // This function assumes |isReadableStream(stream)|.
64 static bool isErrored(ScriptState*, ScriptValue stream); 60 static bool isErrored(ScriptState*, ScriptValue stream);
65 61
66 // IsReadableStreamReader 62 // IsReadableStreamReader
67 static bool isReadableStreamReader(ScriptState*, ScriptValue); 63 static bool isReadableStreamReader(ScriptState*, ScriptValue);
68 64
69 // ReadFromReadableStreamReader 65 // ReadFromReadableStreamReader
70 // This function assumes |isReadableStreamReader(reader)|. 66 // This function assumes |isReadableStreamReader(reader)|.
71 static ScriptPromise read(ScriptState*, ScriptValue reader); 67 static ScriptPromise read(ScriptState*, ScriptValue reader);
72 }; 68 };
73 69
74 } // namespace blink 70 } // namespace blink
75 71
76 #endif // ReadableStreamOperations_h 72 #endif // ReadableStreamOperations_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698