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

Side by Side Diff: Source/platform/exported/WebURLRequest.cpp

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 | « no previous file | Source/platform/network/ResourceRequest.h » ('j') | 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 bool WebURLRequest::downloadToFile() const 292 bool WebURLRequest::downloadToFile() const
293 { 293 {
294 return m_private->m_resourceRequest->downloadToFile(); 294 return m_private->m_resourceRequest->downloadToFile();
295 } 295 }
296 296
297 void WebURLRequest::setDownloadToFile(bool downloadToFile) 297 void WebURLRequest::setDownloadToFile(bool downloadToFile)
298 { 298 {
299 m_private->m_resourceRequest->setDownloadToFile(downloadToFile); 299 m_private->m_resourceRequest->setDownloadToFile(downloadToFile);
300 } 300 }
301 301
302 bool WebURLRequest::useStreamOnResponse() const
303 {
304 return m_private->m_resourceRequest->useStreamOnResponse();
305 }
306
307 void WebURLRequest::setUseStreamOnResponse(bool useStreamOnResponse)
308 {
309 m_private->m_resourceRequest->setUseStreamOnResponse(useStreamOnResponse);
310 }
311
302 bool WebURLRequest::skipServiceWorker() const 312 bool WebURLRequest::skipServiceWorker() const
303 { 313 {
304 return m_private->m_resourceRequest->skipServiceWorker(); 314 return m_private->m_resourceRequest->skipServiceWorker();
305 } 315 }
306 316
307 void WebURLRequest::setSkipServiceWorker(bool skipServiceWorker) 317 void WebURLRequest::setSkipServiceWorker(bool skipServiceWorker)
308 { 318 {
309 m_private->m_resourceRequest->setSkipServiceWorker(skipServiceWorker); 319 m_private->m_resourceRequest->setSkipServiceWorker(skipServiceWorker);
310 } 320 }
311 321
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 // Subclasses may call this directly so a self-assignment check is needed 385 // Subclasses may call this directly so a self-assignment check is needed
376 // here as well as in the public assign method. 386 // here as well as in the public assign method.
377 if (m_private == p) 387 if (m_private == p)
378 return; 388 return;
379 if (m_private) 389 if (m_private)
380 m_private->dispose(); 390 m_private->dispose();
381 m_private = p; 391 m_private = p;
382 } 392 }
383 393
384 } // namespace blink 394 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/platform/network/ResourceRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698