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

Unified Diff: public/platform/WebURLLoaderClient.h

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/web/AssociatedURLLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebURLLoaderClient.h
diff --git a/public/platform/WebURLLoaderClient.h b/public/platform/WebURLLoaderClient.h
index e3171b372c0bcb70edcf4cd56eabba92a1acde34..09ab9567a19e956b9115d2e9c4e0b402ead18008 100644
--- a/public/platform/WebURLLoaderClient.h
+++ b/public/platform/WebURLLoaderClient.h
@@ -31,6 +31,8 @@
#ifndef WebURLLoaderClient_h
#define WebURLLoaderClient_h
+#include "public/platform/WebDataConsumerHandle.h"
+
namespace blink {
class WebURLLoader;
@@ -53,6 +55,14 @@ public:
// Called when response headers are received.
virtual void didReceiveResponse(WebURLLoader*, const WebURLResponse&) { }
+ // Called when response headers are received.
+ // The ownership of |handle| is transferred to the callee.
+ virtual void didReceiveResponse(WebURLLoader* loader, const WebURLResponse& response, WebDataConsumerHandle* handle)
+ {
+ delete handle;
+ didReceiveResponse(loader, response);
+ }
+
// Called when a chunk of response data is downloaded. This is only called
// if WebURLRequest's downloadToFile flag was set to true.
virtual void didDownloadData(WebURLLoader*, int dataLength, int encodedDataLength) { }
« no previous file with comments | « Source/web/AssociatedURLLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698