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

Unified Diff: Source/core/streams/ReadableStream.h

Issue 1028913002: ReadableStream.cancel's parameter should be optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/streams/ReadableStream.h
diff --git a/Source/core/streams/ReadableStream.h b/Source/core/streams/ReadableStream.h
index cf6aeef4938d55bd88332f6f172cf3297ef9cb73..964cd08638fceed34858383a9c1a78a954686d29 100644
--- a/Source/core/streams/ReadableStream.h
+++ b/Source/core/streams/ReadableStream.h
@@ -48,6 +48,7 @@ public:
virtual ScriptPromise read(ScriptState*) = 0;
ScriptPromise cancel(ScriptState*, ScriptValue reason);
+ ScriptPromise cancel(ScriptState*);
ScriptPromise cancelInternal(ScriptState*, ScriptValue reason);
virtual bool hasPendingReads() const = 0;

Powered by Google App Engine
This is Rietveld 408576698