Description[ServiceWorker] Plumbing the request mode from the renderer to the ServiceWorker. [1/2 blink]
[1/2] blink: https://codereview.chromium.org/587213003/
[2/2] chromium: https://codereview.chromium.org/588153002/
This value is passed from the renederer to the ServiceWorker in the following steps.
In the renederer process:
blink::ResourceRequest::setFetchRequestMode()
blink::ResourceRequest::m_fetchRequestMode
content::WebURLLoaderImpl::Context::Start()
blink::WebURLRequest::fetchRequestMode()
GetFetchRequestMode()
conetnt::RequestInfo::service_worker_request_mode
In the browser process:
conetnt::RequestInfo::service_worker_request_mode
content::ResourceDispatcherHostImpl::BeginRequest()
content::ServiceWorkerRequestHandler::InitializeHandler()
content::ServiceWorkerProviderHost::CreateRequestHandler()
content::ServiceWorkerControlleeRequestHandler::ServiceWorkerControlleeRequestHandler()
content::ServiceWorkerControlleeRequestHandler::request_mode_
content::ServiceWorkerControlleeRequestHandler::MaybeCreateJob()
content::ServiceWorkerURLRequestJob::ServiceWorkerURLRequestJob()
content::ServiceWorkerURLRequestJob::request_mode_
content::ServiceWorkerURLRequestJob::CreateFetchRequest()
content::ServiceWorkerFetchRequest::mode
In the ServiceWorker process:
content::ServiceWorkerFetchRequest::mode
content::ServiceWorkerScriptContext::OnFetchEvent()
GetBlinkFetchRequestMode()
blink::WebServiceWorkerRequest::setMode()
blink::WebServiceWorkerRequest::WebServiceWorkerRequestPrivate::m_mode
blink::ServiceWorkerGlobalScopeProxy::dispatchFetchEvent()
blilnk::RespondWithObserver::create()
blilnk::RespondWithObserver::m_requestMode
blink::WebServiceWorkerRequest::WebServiceWorkerRequestPrivate::m_mode
blink::Request::create()
blink::FetchRequestData::create()
blink::FetchRequestData::m_mode
BUG=416371, 408507
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182885
Patch Set 1 #
Total comments: 2
Patch Set 2 : incorporated yhirano's comment #Patch Set 3 : small fix #Patch Set 4 : Add opaque and not NoCors check in RespondWithObserver::responseWasFulfilled. #
Total comments: 2
Patch Set 5 : wrap in 80 columns #
Total comments: 8
Patch Set 6 : incorporated mkwst's comment #Patch Set 7 : git cl format #Messages
Total messages: 18 (5 generated)
|