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

Side by Side Diff: third_party/WebKit/Source/platform/network/ResourceRequest.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) 2003, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 m_url = url; 402 m_url = url;
403 m_cachePolicy = WebCachePolicy::UseProtocolCachePolicy; 403 m_cachePolicy = WebCachePolicy::UseProtocolCachePolicy;
404 m_timeoutInterval = s_defaultTimeoutInterval; 404 m_timeoutInterval = s_defaultTimeoutInterval;
405 m_httpMethod = HTTPNames::GET; 405 m_httpMethod = HTTPNames::GET;
406 m_allowStoredCredentials = true; 406 m_allowStoredCredentials = true;
407 m_reportUploadProgress = false; 407 m_reportUploadProgress = false;
408 m_reportRawHeaders = false; 408 m_reportRawHeaders = false;
409 m_hasUserGesture = false; 409 m_hasUserGesture = false;
410 m_downloadToFile = false; 410 m_downloadToFile = false;
411 m_useStreamOnResponse = false; 411 m_useStreamOnResponse = false;
412 m_skipServiceWorker = false; 412 m_skipServiceWorker = WebURLRequest::SkipServiceWorker::None;
413 m_shouldResetAppCache = false; 413 m_shouldResetAppCache = false;
414 m_priority = ResourceLoadPriorityLowest; 414 m_priority = ResourceLoadPriorityLowest;
415 m_intraPriorityValue = 0; 415 m_intraPriorityValue = 0;
416 m_requestorID = 0; 416 m_requestorID = 0;
417 m_requestorProcessID = 0; 417 m_requestorProcessID = 0;
418 m_appCacheHostID = 0; 418 m_appCacheHostID = 0;
419 m_requestContext = WebURLRequest::RequestContextUnspecified; 419 m_requestContext = WebURLRequest::RequestContextUnspecified;
420 m_frameType = WebURLRequest::FrameTypeNone; 420 m_frameType = WebURLRequest::FrameTypeNone;
421 m_fetchRequestMode = WebURLRequest::FetchRequestModeNoCORS; 421 m_fetchRequestMode = WebURLRequest::FetchRequestModeNoCORS;
422 m_fetchCredentialsMode = WebURLRequest::FetchCredentialsModeInclude; 422 m_fetchCredentialsMode = WebURLRequest::FetchCredentialsModeInclude;
423 m_fetchRedirectMode = WebURLRequest::FetchRedirectModeFollow; 423 m_fetchRedirectMode = WebURLRequest::FetchRedirectModeFollow;
424 m_referrerPolicy = ReferrerPolicyDefault; 424 m_referrerPolicy = ReferrerPolicyDefault;
425 m_loFiState = WebURLRequest::LoFiUnspecified; 425 m_loFiState = WebURLRequest::LoFiUnspecified;
426 m_didSetHTTPReferrer = false; 426 m_didSetHTTPReferrer = false;
427 m_checkForBrowserSideNavigation = true; 427 m_checkForBrowserSideNavigation = true;
428 m_uiStartTime = 0; 428 m_uiStartTime = 0;
429 m_isExternalRequest = false; 429 m_isExternalRequest = false;
430 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport; 430 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport;
431 m_redirectStatus = RedirectStatus::NoRedirect; 431 m_redirectStatus = RedirectStatus::NoRedirect;
432 m_requestorOrigin = SecurityOrigin::createUnique(); 432 m_requestorOrigin = SecurityOrigin::createUnique();
433 } 433 }
434 434
435 } // namespace blink 435 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698