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

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

Issue 1738753002: Revert of Set the request mode and the credentials mode of FetchEvent in the service worker correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 m_skipServiceWorker = false; 422 m_skipServiceWorker = false;
423 m_shouldResetAppCache = false; 423 m_shouldResetAppCache = false;
424 m_priority = ResourceLoadPriorityLowest; 424 m_priority = ResourceLoadPriorityLowest;
425 m_intraPriorityValue = 0; 425 m_intraPriorityValue = 0;
426 m_requestorID = 0; 426 m_requestorID = 0;
427 m_requestorProcessID = 0; 427 m_requestorProcessID = 0;
428 m_appCacheHostID = 0; 428 m_appCacheHostID = 0;
429 m_requestContext = WebURLRequest::RequestContextUnspecified; 429 m_requestContext = WebURLRequest::RequestContextUnspecified;
430 m_frameType = WebURLRequest::FrameTypeNone; 430 m_frameType = WebURLRequest::FrameTypeNone;
431 m_fetchRequestMode = WebURLRequest::FetchRequestModeNoCORS; 431 m_fetchRequestMode = WebURLRequest::FetchRequestModeNoCORS;
432 m_fetchCredentialsMode = WebURLRequest::FetchCredentialsModeInclude; 432 // Contrary to the Fetch spec, we default to same-origin mode here, and deal
433 // with CORS modes in updateRequestForAccessControl if we're called in a
434 // context which requires it.
435 m_fetchCredentialsMode = WebURLRequest::FetchCredentialsModeSameOrigin;
433 m_fetchRedirectMode = WebURLRequest::FetchRedirectModeFollow; 436 m_fetchRedirectMode = WebURLRequest::FetchRedirectModeFollow;
434 m_referrerPolicy = ReferrerPolicyDefault; 437 m_referrerPolicy = ReferrerPolicyDefault;
435 m_loFiState = WebURLRequest::LoFiUnspecified; 438 m_loFiState = WebURLRequest::LoFiUnspecified;
436 m_didSetHTTPReferrer = false; 439 m_didSetHTTPReferrer = false;
437 m_checkForBrowserSideNavigation = true; 440 m_checkForBrowserSideNavigation = true;
438 m_uiStartTime = 0; 441 m_uiStartTime = 0;
439 m_originatesFromReservedIPRange = false; 442 m_originatesFromReservedIPRange = false;
440 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport; 443 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport;
441 m_followedRedirect = false; 444 m_followedRedirect = false;
442 m_requestorOrigin = SecurityOrigin::createUnique(); 445 m_requestorOrigin = SecurityOrigin::createUnique();
443 } 446 }
444 447
445 } // namespace blink 448 } // 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