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

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

Issue 2105503002: Skip foreign fetch when the skipServiceWorker flag is set on a request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rephrase SkipServiceWorker comments. Created 4 years, 5 months 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) 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 bool WebURLRequest::useStreamOnResponse() const 336 bool WebURLRequest::useStreamOnResponse() const
337 { 337 {
338 return m_private->m_resourceRequest->useStreamOnResponse(); 338 return m_private->m_resourceRequest->useStreamOnResponse();
339 } 339 }
340 340
341 void WebURLRequest::setUseStreamOnResponse(bool useStreamOnResponse) 341 void WebURLRequest::setUseStreamOnResponse(bool useStreamOnResponse)
342 { 342 {
343 m_private->m_resourceRequest->setUseStreamOnResponse(useStreamOnResponse); 343 m_private->m_resourceRequest->setUseStreamOnResponse(useStreamOnResponse);
344 } 344 }
345 345
346 bool WebURLRequest::skipServiceWorker() const 346 WebURLRequest::SkipServiceWorker WebURLRequest::skipServiceWorker() const
347 { 347 {
348 return m_private->m_resourceRequest->skipServiceWorker(); 348 return m_private->m_resourceRequest->skipServiceWorker();
349 } 349 }
350 350
351 void WebURLRequest::setSkipServiceWorker(bool skipServiceWorker) 351 void WebURLRequest::setSkipServiceWorker(WebURLRequest::SkipServiceWorker skipSe rviceWorker)
352 { 352 {
353 m_private->m_resourceRequest->setSkipServiceWorker(skipServiceWorker); 353 m_private->m_resourceRequest->setSkipServiceWorker(skipServiceWorker);
354 } 354 }
355 355
356 bool WebURLRequest::shouldResetAppCache() const 356 bool WebURLRequest::shouldResetAppCache() const
357 { 357 {
358 return m_private->m_resourceRequest->shouldResetAppCache(); 358 return m_private->m_resourceRequest->shouldResetAppCache();
359 } 359 }
360 360
361 void WebURLRequest::setShouldResetAppCache(bool setShouldResetAppCache) 361 void WebURLRequest::setShouldResetAppCache(bool setShouldResetAppCache)
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 // Subclasses may call this directly so a self-assignment check is needed 487 // Subclasses may call this directly so a self-assignment check is needed
488 // here as well as in the public assign method. 488 // here as well as in the public assign method.
489 if (m_private == p) 489 if (m_private == p)
490 return; 490 return;
491 if (m_private) 491 if (m_private)
492 m_private->dispose(); 492 m_private->dispose();
493 m_private = p; 493 m_private = p;
494 } 494 }
495 495
496 } // namespace blink 496 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/FetchManager.cpp ('k') | third_party/WebKit/Source/platform/network/ResourceRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698