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

Unified Diff: Source/core/fetch/ResourceFetcher.cpp

Issue 603903003: [Streams] Pass WebDataConsumerHandle when the response arrives. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@web-data-pipe
Patch Set: Created 6 years, 1 month 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/core/fetch/Resource.cpp ('k') | Source/core/fetch/ResourceLoader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ResourceFetcher.cpp
diff --git a/Source/core/fetch/ResourceFetcher.cpp b/Source/core/fetch/ResourceFetcher.cpp
index e5026a1af1269fa9cc9af967854b790a48ca67b8..f2dc026b6540570504f9e4313e855f3b91dbdedd 100644
--- a/Source/core/fetch/ResourceFetcher.cpp
+++ b/Source/core/fetch/ResourceFetcher.cpp
@@ -170,7 +170,8 @@ static Resource* resourceFromDataURIRequest(const ResourceRequest& request, cons
Resource* resource = createResource(Resource::Image, request, charset);
resource->setOptions(resourceOptions);
- resource->responseReceived(response);
+ // FIXME: We should provide a body stream here.
+ resource->responseReceived(response, nullptr);
if (data->size())
resource->setResourceBuffer(data);
resource->setCacheIdentifier(cacheIdentifier);
@@ -436,7 +437,7 @@ void ResourceFetcher::preCacheSubstituteDataForMainResource(const FetchRequest&
resource->setNeedsSynchronousCacheHit(substituteData.forceSynchronousLoad());
resource->setOptions(request.options());
resource->setDataBufferingPolicy(BufferData);
- resource->responseReceived(response);
+ resource->responseReceived(response, nullptr);
if (substituteData.content()->size())
resource->setResourceBuffer(substituteData.content());
resource->setCacheIdentifier(cacheIdentifier);
« no previous file with comments | « Source/core/fetch/Resource.cpp ('k') | Source/core/fetch/ResourceLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698