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

Unified Diff: third_party/WebKit/Source/modules/fetch/BytesConsumer.h

Issue 2392823002: Remove create[Done|UnexpectedError]DataConsumerHandle (Closed)
Patch Set: fix Created 4 years, 2 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: third_party/WebKit/Source/modules/fetch/BytesConsumer.h
diff --git a/third_party/WebKit/Source/modules/fetch/BytesConsumer.h b/third_party/WebKit/Source/modules/fetch/BytesConsumer.h
index 46c1ed72dbd54c983e1d26e47241a8e5e89ec256..1cf5aedd8a9058dccff03c7e0a057776b6a08279 100644
--- a/third_party/WebKit/Source/modules/fetch/BytesConsumer.h
+++ b/third_party/WebKit/Source/modules/fetch/BytesConsumer.h
@@ -155,6 +155,12 @@ class MODULES_EXPORT BytesConsumer
BytesConsumer** dest1,
BytesConsumer** dest2);
+ // Returns a BytesConsumer whose state is Closed.
+ static BytesConsumer* createClosed();
+
+ // Returns a BytesConsumer whose state is Errored.
+ static BytesConsumer* createErrored(const Error&);
+
DEFINE_INLINE_VIRTUAL_TRACE() {}
protected:

Powered by Google App Engine
This is Rietveld 408576698