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

Issue 588153002: [ServiceWorker] Plumbing the request mode from the renderer to the ServiceWorker. [2/2 chromium] (Closed)

Created:
6 years, 3 months ago by horo
Modified:
6 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kinuko+serviceworker, michaeln, mkwst+moarreviews-renderer_chromium.org, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[ServiceWorker] Plumbing the request mode from the renderer to the ServiceWorker. [2/2 chromium] [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://crrev.com/7e40ec77f7b300c82c722b9927c5268ddc258294 Cr-Commit-Position: refs/heads/master@{#297391}

Patch Set 1 : #

Patch Set 2 : incorporated yhirano's comment in https://codereview.chromium.org/587213003/ #

Patch Set 3 : rebse #

Patch Set 4 : rebase #

Total comments: 2

Patch Set 5 : Use COMPILE_ASSERT_MATCHING_ENUMS #

Patch Set 6 : rebase #

Patch Set 7 : fix compile error on enum #

Patch Set 8 : fix compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -11 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.h View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.cc View 1 3 chunks +8 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.cc View 1 2 3 chunks +8 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler_unittest.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/child/request_info.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M content/child/request_info.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/child/resource_dispatcher.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 3 chunks +21 lines, -0 lines 0 comments Download
M content/common/resource_messages.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/common/service_worker/service_worker_types.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_types.cc View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.cc View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (17 generated)
horo
yhirano@ Could you please review?
6 years, 3 months ago (2014-09-22 10:38:08 UTC) #4
yhirano
lgtm
6 years, 2 months ago (2014-09-25 11:37:30 UTC) #8
horo
jochen@ Could you please review content/child/*??
6 years, 2 months ago (2014-09-25 14:06:40 UTC) #10
horo
nasko@ Could you please review content/common/resource_messages.h and content/common/service_worker/service_worker_messages.h? Thank you.
6 years, 2 months ago (2014-09-25 14:07:51 UTC) #12
nasko
IPC LGTM
6 years, 2 months ago (2014-09-25 15:53:15 UTC) #13
jochen (gone - plz use gerrit)
lgtm with nit https://codereview.chromium.org/588153002/diff/160001/content/renderer/service_worker/service_worker_script_context.cc File content/renderer/service_worker/service_worker_script_context.cc (right): https://codereview.chromium.org/588153002/diff/160001/content/renderer/service_worker/service_worker_script_context.cc#newcode42 content/renderer/service_worker/service_worker_script_context.cc:42: return blink::WebURLRequest::FetchRequestModeSameOrigin; nit. you could just ...
6 years, 2 months ago (2014-09-29 12:56:44 UTC) #14
horo
https://codereview.chromium.org/588153002/diff/160001/content/renderer/service_worker/service_worker_script_context.cc File content/renderer/service_worker/service_worker_script_context.cc (right): https://codereview.chromium.org/588153002/diff/160001/content/renderer/service_worker/service_worker_script_context.cc#newcode42 content/renderer/service_worker/service_worker_script_context.cc:42: return blink::WebURLRequest::FetchRequestModeSameOrigin; On 2014/09/29 12:56:44, jochen wrote: > nit. ...
6 years, 2 months ago (2014-09-30 02:15:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/588153002/180001
6 years, 2 months ago (2014-09-30 06:58:21 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/62314) mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/20221) mac_chromium_rel_swarming ...
6 years, 2 months ago (2014-09-30 07:01:18 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/588153002/180001
6 years, 2 months ago (2014-09-30 07:15:49 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/72927) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/62326) android_aosp ...
6 years, 2 months ago (2014-09-30 07:19:23 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/588153002/200001
6 years, 2 months ago (2014-09-30 07:31:05 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/13702) linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/21043)
6 years, 2 months ago (2014-09-30 07:47:30 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/588153002/220001
6 years, 2 months ago (2014-09-30 08:13:09 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/3497)
6 years, 2 months ago (2014-09-30 08:26:10 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/588153002/240001
6 years, 2 months ago (2014-09-30 08:33:15 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:240001) as b103832ddfca6ce266c190b82153d7bc2e40b7c8
6 years, 2 months ago (2014-09-30 09:23:53 UTC) #34
commit-bot: I haz the power
6 years, 2 months ago (2014-09-30 09:24:33 UTC) #35
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/7e40ec77f7b300c82c722b9927c5268ddc258294
Cr-Commit-Position: refs/heads/master@{#297391}

Powered by Google App Engine
This is Rietveld 408576698