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

Side by Side Diff: third_party/WebKit/Source/platform/network/ResourceRequest.cpp

Issue 1762893002: Reland of Set the request mode and the credentials mode of FetchEvent in the service worker correct… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated tyoshino's comment Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/FetchManager.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) 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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 m_skipServiceWorker = false; 446 m_skipServiceWorker = false;
447 m_shouldResetAppCache = false; 447 m_shouldResetAppCache = false;
448 m_priority = ResourceLoadPriorityLowest; 448 m_priority = ResourceLoadPriorityLowest;
449 m_intraPriorityValue = 0; 449 m_intraPriorityValue = 0;
450 m_requestorID = 0; 450 m_requestorID = 0;
451 m_requestorProcessID = 0; 451 m_requestorProcessID = 0;
452 m_appCacheHostID = 0; 452 m_appCacheHostID = 0;
453 m_requestContext = WebURLRequest::RequestContextUnspecified; 453 m_requestContext = WebURLRequest::RequestContextUnspecified;
454 m_frameType = WebURLRequest::FrameTypeNone; 454 m_frameType = WebURLRequest::FrameTypeNone;
455 m_fetchRequestMode = WebURLRequest::FetchRequestModeNoCORS; 455 m_fetchRequestMode = WebURLRequest::FetchRequestModeNoCORS;
456 // Contrary to the Fetch spec, we default to same-origin mode here, and deal 456 m_fetchCredentialsMode = WebURLRequest::FetchCredentialsModeInclude;
457 // with CORS modes in updateRequestForAccessControl if we're called in a
458 // context which requires it.
459 m_fetchCredentialsMode = WebURLRequest::FetchCredentialsModeSameOrigin;
460 m_fetchRedirectMode = WebURLRequest::FetchRedirectModeFollow; 457 m_fetchRedirectMode = WebURLRequest::FetchRedirectModeFollow;
461 m_referrerPolicy = ReferrerPolicyDefault; 458 m_referrerPolicy = ReferrerPolicyDefault;
462 m_loFiState = WebURLRequest::LoFiUnspecified; 459 m_loFiState = WebURLRequest::LoFiUnspecified;
463 m_didSetHTTPReferrer = false; 460 m_didSetHTTPReferrer = false;
464 m_checkForBrowserSideNavigation = true; 461 m_checkForBrowserSideNavigation = true;
465 m_uiStartTime = 0; 462 m_uiStartTime = 0;
466 m_isExternalRequest = false; 463 m_isExternalRequest = false;
467 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport; 464 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport;
468 m_followedRedirect = false; 465 m_followedRedirect = false;
469 m_requestorOrigin = SecurityOrigin::createUnique(); 466 m_requestorOrigin = SecurityOrigin::createUnique();
470 } 467 }
471 468
472 } // namespace blink 469 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/FetchManager.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698