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

Unified Diff: Source/core/fetch/RawResource.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/core/fetch/ImageResourceTest.cpp ('k') | Source/core/fetch/RawResource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/RawResource.h
diff --git a/Source/core/fetch/RawResource.h b/Source/core/fetch/RawResource.h
index 793f0f09341771aa8d3a7a3d31f9e8458e2297c3..21a283a8d5d6c5c9705534a48f1b4a6449164fc5 100644
--- a/Source/core/fetch/RawResource.h
+++ b/Source/core/fetch/RawResource.h
@@ -25,6 +25,8 @@
#include "core/fetch/ResourceClient.h"
#include "core/fetch/ResourcePtr.h"
+#include "public/platform/WebDataConsumerHandle.h"
+#include "wtf/PassOwnPtr.h"
namespace blink {
class RawResourceClient;
@@ -50,7 +52,7 @@ private:
void willFollowRedirect(ResourceRequest&, const ResourceResponse&) override;
void updateRequest(const ResourceRequest&) override;
- void responseReceived(const ResourceResponse&) override;
+ void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataConsumerHandle>) override;
void didSendData(unsigned long long bytesSent, unsigned long long totalBytesToBeSent) override;
void didDownloadData(int) override;
};
@@ -75,7 +77,7 @@ public:
virtual ResourceClientType resourceClientType() const override final { return expectedType(); }
virtual void dataSent(Resource*, unsigned long long /* bytesSent */, unsigned long long /* totalBytesToBeSent */) { }
- virtual void responseReceived(Resource*, const ResourceResponse&) { }
+ virtual void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<WebDataConsumerHandle>) { }
virtual void dataReceived(Resource*, const char* /* data */, unsigned /* length */) { }
virtual void redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&) { }
virtual void updateRequest(Resource*, const ResourceRequest&) { }
« no previous file with comments | « Source/core/fetch/ImageResourceTest.cpp ('k') | Source/core/fetch/RawResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698