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

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

Issue 1204263002: Implement FetchDataLoader::createLoaderAsStream() (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
« no previous file with comments | « Source/modules/fetch/DataConsumerHandleTestUtil.h ('k') | Source/modules/fetch/FetchDataLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/fetch/FetchDataLoader.h
diff --git a/Source/modules/fetch/FetchDataLoader.h b/Source/modules/fetch/FetchDataLoader.h
index 3acd0a1c8f608758049601449a674d200129650d..a5faa983a1cbd62ee5b18c12318f7275b3531a1b 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,12 @@ public:
{
ASSERT_NOT_REACHED();
}
+ // This is called after all data are read from |handle| and written
+ // to |outStream|, and |outStream| is closed or aborted.
+ virtual void didFetchDataLoadedStream()
+ {
+ ASSERT_NOT_REACHED();
+ }
virtual void didFetchDataLoadFailed() = 0;
@@ -52,6 +59,7 @@ public:
static FetchDataLoader* createLoaderAsBlobHandle(const String& mimeType);
static FetchDataLoader* createLoaderAsArrayBuffer();
static FetchDataLoader* createLoaderAsString();
+ static FetchDataLoader* createLoaderAsStream(Stream* outStream);
virtual ~FetchDataLoader() { }
« no previous file with comments | « Source/modules/fetch/DataConsumerHandleTestUtil.h ('k') | Source/modules/fetch/FetchDataLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698