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

Unified Diff: Source/modules/fetch/FetchDataLoader.h

Issue 1192913007: Change BodyStreamBuffer to be FetchDataConsumerHandle-based and enable backpressure in Fetch API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reflect comments. Created 5 years, 6 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/modules/fetch/FetchDataLoader.h
diff --git a/Source/modules/fetch/FetchDataLoader.h b/Source/modules/fetch/FetchDataLoader.h
index 3acd0a1c8f608758049601449a674d200129650d..7df42d561f80e8077faa539230a2f39ccebf9116 100644
--- a/Source/modules/fetch/FetchDataLoader.h
+++ b/Source/modules/fetch/FetchDataLoader.h
@@ -6,6 +6,7 @@
#define FetchDataLoader_h
#include "core/dom/DOMArrayBuffer.h"
+#include "core/streams/Stream.h"
#include "modules/fetch/FetchDataConsumerHandle.h"
#include "platform/blob/BlobData.h"
#include "platform/heap/Handle.h"
@@ -43,6 +44,10 @@ public:
{
ASSERT_NOT_REACHED();
}
+ virtual void didFetchDataLoadedStream()
+ {
+ ASSERT_NOT_REACHED();
+ }
virtual void didFetchDataLoadFailed() = 0;
@@ -52,6 +57,7 @@ public:
static FetchDataLoader* createLoaderAsBlobHandle(const String& mimeType);
static FetchDataLoader* createLoaderAsArrayBuffer();
static FetchDataLoader* createLoaderAsString();
+ static FetchDataLoader* createLoaderAsStream(Stream* outStream);
virtual ~FetchDataLoader() { }

Powered by Google App Engine
This is Rietveld 408576698