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

Unified Diff: Source/core/loader/DocumentThreadableLoader.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/loader/DocumentThreadableLoader.h ('k') | Source/core/loader/ThreadableLoaderClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/DocumentThreadableLoader.cpp
diff --git a/Source/core/loader/DocumentThreadableLoader.cpp b/Source/core/loader/DocumentThreadableLoader.cpp
index f02a22f584a90b9a801f472a5d0429bb17c0cbb0..6e8d9e07e0a3831c2e5ab315c8af0070d6165590 100644
--- a/Source/core/loader/DocumentThreadableLoader.cpp
+++ b/Source/core/loader/DocumentThreadableLoader.cpp
@@ -349,10 +349,10 @@ void DocumentThreadableLoader::dataDownloaded(Resource* resource, int dataLength
m_client->didDownloadData(dataLength);
}
-void DocumentThreadableLoader::responseReceived(Resource* resource, const ResourceResponse& response)
+void DocumentThreadableLoader::responseReceived(Resource* resource, const ResourceResponse& response, PassOwnPtr<WebDataConsumerHandle> handle)
{
ASSERT_UNUSED(resource, resource == this->resource());
- handleResponse(resource->identifier(), response);
+ handleResponse(resource->identifier(), response, handle);
}
void DocumentThreadableLoader::handlePreflightResponse(const ResourceResponse& response)
@@ -390,7 +390,7 @@ void DocumentThreadableLoader::notifyResponseReceived(unsigned long identifier,
frame->console().reportResourceResponseReceived(loader, identifier, response);
}
-void DocumentThreadableLoader::handleResponse(unsigned long identifier, const ResourceResponse& response)
+void DocumentThreadableLoader::handleResponse(unsigned long identifier, const ResourceResponse& response, PassOwnPtr<WebDataConsumerHandle> handle)
{
ASSERT(m_client);
@@ -407,7 +407,7 @@ void DocumentThreadableLoader::handleResponse(unsigned long identifier, const Re
return;
}
m_fallbackRequestForServiceWorker = nullptr;
- m_client->didReceiveResponse(identifier, response);
+ m_client->didReceiveResponse(identifier, response, handle);
return;
}
@@ -422,7 +422,7 @@ void DocumentThreadableLoader::handleResponse(unsigned long identifier, const Re
}
}
- m_client->didReceiveResponse(identifier, response);
+ m_client->didReceiveResponse(identifier, response, handle);
}
void DocumentThreadableLoader::dataReceived(Resource* resource, const char* data, unsigned dataLength)
@@ -580,7 +580,7 @@ void DocumentThreadableLoader::loadRequest(const ResourceRequest& request, Resou
return;
}
- handleResponse(identifier, response);
+ handleResponse(identifier, response, nullptr);
SharedBuffer* data = resource->resourceBuffer();
if (data)
« no previous file with comments | « Source/core/loader/DocumentThreadableLoader.h ('k') | Source/core/loader/ThreadableLoaderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698