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

Side by Side 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: rebase 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 void setHasUserGesture(bool hasUserGesture) { m_hasUserGesture = hasUserGest ure; } 168 void setHasUserGesture(bool hasUserGesture) { m_hasUserGesture = hasUserGest ure; }
169 169
170 // True if request should be downloaded to file. 170 // True if request should be downloaded to file.
171 bool downloadToFile() const { return m_downloadToFile; } 171 bool downloadToFile() const { return m_downloadToFile; }
172 void setDownloadToFile(bool downloadToFile) { m_downloadToFile = downloadToF ile; } 172 void setDownloadToFile(bool downloadToFile) { m_downloadToFile = downloadToF ile; }
173 173
174 // True if the request should not be handled by the ServiceWorker. 174 // True if the request should not be handled by the ServiceWorker.
175 bool skipServiceWorker() const { return m_skipServiceWorker; } 175 bool skipServiceWorker() const { return m_skipServiceWorker; }
176 void setSkipServiceWorker(bool skipServiceWorker) { m_skipServiceWorker = sk ipServiceWorker; } 176 void setSkipServiceWorker(bool skipServiceWorker) { m_skipServiceWorker = sk ipServiceWorker; }
177 177
178 // True if the requestor wants WebDataConsumerHandle as response body.
tyoshino (SeeGerritForStatus) 2014/11/12 04:22:03 wants to receive a response body as WebDataConsume
yhirano 2014/11/12 04:52:09 Done.
179 bool useStreamOnResponse() const { return m_useStreamOnResponse; }
180 void setUseStreamOnResponse(bool useStreamOnResponse) { m_useStreamOnRespons e = useStreamOnResponse; }
181
178 // Extra data associated with this request. 182 // Extra data associated with this request.
179 ExtraData* extraData() const { return m_extraData.get(); } 183 ExtraData* extraData() const { return m_extraData.get(); }
180 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData ; } 184 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData ; }
181 185
182 WebURLRequest::RequestContext requestContext() const { return m_requestConte xt; } 186 WebURLRequest::RequestContext requestContext() const { return m_requestConte xt; }
183 void setRequestContext(WebURLRequest::RequestContext context) { m_requestCon text = context; } 187 void setRequestContext(WebURLRequest::RequestContext context) { m_requestCon text = context; }
184 188
185 WebURLRequest::FrameType frameType() const { return m_frameType; } 189 WebURLRequest::FrameType frameType() const { return m_frameType; }
186 void setFrameType(WebURLRequest::FrameType frameType) { m_frameType = frameT ype; } 190 void setFrameType(WebURLRequest::FrameType frameType) { m_frameType = frameT ype; }
187 191
(...skipping 23 matching lines...) Expand all
211 KURL m_firstPartyForCookies; 215 KURL m_firstPartyForCookies;
212 AtomicString m_httpMethod; 216 AtomicString m_httpMethod;
213 HTTPHeaderMap m_httpHeaderFields; 217 HTTPHeaderMap m_httpHeaderFields;
214 RefPtr<FormData> m_httpBody; 218 RefPtr<FormData> m_httpBody;
215 bool m_allowStoredCredentials : 1; 219 bool m_allowStoredCredentials : 1;
216 bool m_reportUploadProgress : 1; 220 bool m_reportUploadProgress : 1;
217 bool m_reportRawHeaders : 1; 221 bool m_reportRawHeaders : 1;
218 bool m_hasUserGesture : 1; 222 bool m_hasUserGesture : 1;
219 bool m_downloadToFile : 1; 223 bool m_downloadToFile : 1;
220 bool m_skipServiceWorker : 1; 224 bool m_skipServiceWorker : 1;
225 bool m_useStreamOnResponse : 1;
221 ResourceLoadPriority m_priority; 226 ResourceLoadPriority m_priority;
222 int m_intraPriorityValue; 227 int m_intraPriorityValue;
223 int m_requestorID; 228 int m_requestorID;
224 int m_requestorProcessID; 229 int m_requestorProcessID;
225 int m_appCacheHostID; 230 int m_appCacheHostID;
226 RefPtr<ExtraData> m_extraData; 231 RefPtr<ExtraData> m_extraData;
227 WebURLRequest::RequestContext m_requestContext; 232 WebURLRequest::RequestContext m_requestContext;
228 WebURLRequest::FrameType m_frameType; 233 WebURLRequest::FrameType m_frameType;
229 WebURLRequest::FetchRequestMode m_fetchRequestMode; 234 WebURLRequest::FetchRequestMode m_fetchRequestMode;
230 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; 235 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode;
(...skipping 20 matching lines...) Expand all
251 KURL m_firstPartyForCookies; 256 KURL m_firstPartyForCookies;
252 257
253 String m_httpMethod; 258 String m_httpMethod;
254 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; 259 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders;
255 RefPtr<FormData> m_httpBody; 260 RefPtr<FormData> m_httpBody;
256 bool m_allowStoredCredentials; 261 bool m_allowStoredCredentials;
257 bool m_reportUploadProgress; 262 bool m_reportUploadProgress;
258 bool m_hasUserGesture; 263 bool m_hasUserGesture;
259 bool m_downloadToFile; 264 bool m_downloadToFile;
260 bool m_skipServiceWorker; 265 bool m_skipServiceWorker;
266 bool m_useStreamOnResponse;
261 ResourceLoadPriority m_priority; 267 ResourceLoadPriority m_priority;
262 int m_intraPriorityValue; 268 int m_intraPriorityValue;
263 int m_requestorID; 269 int m_requestorID;
264 int m_requestorProcessID; 270 int m_requestorProcessID;
265 int m_appCacheHostID; 271 int m_appCacheHostID;
266 WebURLRequest::RequestContext m_requestContext; 272 WebURLRequest::RequestContext m_requestContext;
267 WebURLRequest::FrameType m_frameType; 273 WebURLRequest::FrameType m_frameType;
268 WebURLRequest::FetchRequestMode m_fetchRequestMode; 274 WebURLRequest::FetchRequestMode m_fetchRequestMode;
269 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; 275 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode;
270 ReferrerPolicy m_referrerPolicy; 276 ReferrerPolicy m_referrerPolicy;
271 }; 277 };
272 278
273 unsigned initializeMaximumHTTPConnectionCountPerHost(); 279 unsigned initializeMaximumHTTPConnectionCountPerHost();
274 280
275 } // namespace blink 281 } // namespace blink
276 282
277 #endif // ResourceRequest_h 283 #endif // ResourceRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698