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

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

Issue 1665533003: 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: Created 4 years, 10 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 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 // Contrary to the Fetch spec, we default to same-origin mode here, and deal 432 m_fetchCredentialsMode = WebURLRequest::FetchCredentialsModeInclude;
433 // with CORS modes in updateRequestForAccessControl if we're called in a
434 // context which requires it.
435 m_fetchCredentialsMode = WebURLRequest::FetchCredentialsModeSameOrigin;
436 m_fetchRedirectMode = WebURLRequest::FetchRedirectModeFollow; 433 m_fetchRedirectMode = WebURLRequest::FetchRedirectModeFollow;
437 m_referrerPolicy = ReferrerPolicyDefault; 434 m_referrerPolicy = ReferrerPolicyDefault;
438 m_loFiState = WebURLRequest::LoFiUnspecified; 435 m_loFiState = WebURLRequest::LoFiUnspecified;
439 m_didSetHTTPReferrer = false; 436 m_didSetHTTPReferrer = false;
440 m_checkForBrowserSideNavigation = true; 437 m_checkForBrowserSideNavigation = true;
441 m_uiStartTime = 0; 438 m_uiStartTime = 0;
442 m_originatesFromReservedIPRange = false; 439 m_originatesFromReservedIPRange = false;
443 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport; 440 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport;
444 m_followedRedirect = false; 441 m_followedRedirect = false;
445 m_requestorOrigin = SecurityOrigin::createUnique(); 442 m_requestorOrigin = SecurityOrigin::createUnique();
446 } 443 }
447 444
448 } // namespace blink 445 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698