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

Side by Side Diff: public/platform/WebURLRequest.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 unified diff | Download patch
« no previous file with comments | « Source/platform/network/ResourceRequest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 217
218 // Allows the request to be matched up with its app cache host. 218 // Allows the request to be matched up with its app cache host.
219 BLINK_PLATFORM_EXPORT int appCacheHostID() const; 219 BLINK_PLATFORM_EXPORT int appCacheHostID() const;
220 BLINK_PLATFORM_EXPORT void setAppCacheHostID(int); 220 BLINK_PLATFORM_EXPORT void setAppCacheHostID(int);
221 221
222 // If true, the response body will be downloaded to a file managed by the 222 // If true, the response body will be downloaded to a file managed by the
223 // WebURLLoader. See WebURLResponse::downloadedFilePath. 223 // WebURLLoader. See WebURLResponse::downloadedFilePath.
224 BLINK_PLATFORM_EXPORT bool downloadToFile() const; 224 BLINK_PLATFORM_EXPORT bool downloadToFile() const;
225 BLINK_PLATFORM_EXPORT void setDownloadToFile(bool); 225 BLINK_PLATFORM_EXPORT void setDownloadToFile(bool);
226 226
227 // True if the requestor wants to receive the response body as a stream.
228 BLINK_PLATFORM_EXPORT bool useStreamOnResponse() const;
229 BLINK_PLATFORM_EXPORT void setUseStreamOnResponse(bool);
230
227 // True if the request should not be handled by the ServiceWorker. 231 // True if the request should not be handled by the ServiceWorker.
228 BLINK_PLATFORM_EXPORT bool skipServiceWorker() const; 232 BLINK_PLATFORM_EXPORT bool skipServiceWorker() const;
229 BLINK_PLATFORM_EXPORT void setSkipServiceWorker(bool); 233 BLINK_PLATFORM_EXPORT void setSkipServiceWorker(bool);
230 234
231 // The request mode which will be passed to the ServiceWorker. 235 // The request mode which will be passed to the ServiceWorker.
232 BLINK_PLATFORM_EXPORT FetchRequestMode fetchRequestMode() const; 236 BLINK_PLATFORM_EXPORT FetchRequestMode fetchRequestMode() const;
233 BLINK_PLATFORM_EXPORT void setFetchRequestMode(FetchRequestMode); 237 BLINK_PLATFORM_EXPORT void setFetchRequestMode(FetchRequestMode);
234 238
235 // The credentials mode which will be passed to the ServiceWorker. 239 // The credentials mode which will be passed to the ServiceWorker.
236 BLINK_PLATFORM_EXPORT FetchCredentialsMode fetchCredentialsMode() const; 240 BLINK_PLATFORM_EXPORT FetchCredentialsMode fetchCredentialsMode() const;
(...skipping 19 matching lines...) Expand all
256 protected: 260 protected:
257 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); 261 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*);
258 262
259 private: 263 private:
260 WebURLRequestPrivate* m_private; 264 WebURLRequestPrivate* m_private;
261 }; 265 };
262 266
263 } // namespace blink 267 } // namespace blink
264 268
265 #endif 269 #endif
OLDNEW
« no previous file with comments | « Source/platform/network/ResourceRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698