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

Unified Diff: Source/platform/network/ResourceRequest.h

Issue 700663004: [Streams] Add "useStreamOnResponse" on WebURLRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@use-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/platform/exported/WebURLRequest.cpp ('k') | Source/platform/network/ResourceRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/network/ResourceRequest.h
diff --git a/Source/platform/network/ResourceRequest.h b/Source/platform/network/ResourceRequest.h
index a432ccce7e6e2f96a008700752924a15d50b9a27..7c01ce22f304e1dee98f864d05e73f00f988226e 100644
--- a/Source/platform/network/ResourceRequest.h
+++ b/Source/platform/network/ResourceRequest.h
@@ -171,6 +171,11 @@ public:
bool downloadToFile() const { return m_downloadToFile; }
void setDownloadToFile(bool downloadToFile) { m_downloadToFile = downloadToFile; }
+ // True if the requestor wants to receive a response body as
+ // WebDataConsumerHandle.
+ bool useStreamOnResponse() const { return m_useStreamOnResponse; }
+ void setUseStreamOnResponse(bool useStreamOnResponse) { m_useStreamOnResponse = useStreamOnResponse; }
+
// True if the request should not be handled by the ServiceWorker.
bool skipServiceWorker() const { return m_skipServiceWorker; }
void setSkipServiceWorker(bool skipServiceWorker) { m_skipServiceWorker = skipServiceWorker; }
@@ -217,6 +222,7 @@ private:
bool m_reportRawHeaders : 1;
bool m_hasUserGesture : 1;
bool m_downloadToFile : 1;
+ bool m_useStreamOnResponse : 1;
bool m_skipServiceWorker : 1;
ResourceLoadPriority m_priority;
int m_intraPriorityValue;
@@ -258,6 +264,7 @@ public:
bool m_hasUserGesture;
bool m_downloadToFile;
bool m_skipServiceWorker;
+ bool m_useStreamOnResponse;
ResourceLoadPriority m_priority;
int m_intraPriorityValue;
int m_requestorID;
« no previous file with comments | « Source/platform/exported/WebURLRequest.cpp ('k') | Source/platform/network/ResourceRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698