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

Issue 2968123002: Introduce ServiceWorkerRegistrationOptions struct for service worker options (Closed)

Created:
3 years, 5 months ago by yuryu
Modified:
3 years, 5 months ago
CC:
agrieve+watch_chromium.org, awdf+watch_chromium.org, blink-worker-reviews_chromium.org, chasej+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, dominickn+watch_chromium.org, gogerald+paymentswatch_chromium.org, horo+watch_chromium.org, iclelland+watch_chromium.org, jam, jkarlin+watch_chromium.org, johnme+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+watch, kinuko+serviceworker, mahmadi+paymentswatch_chromium.org, michaeln, mlamouri+watch-notifications_chromium.org, Peter Beverloo, pkotwicz+watch_chromium.org, rouslan+payments_chromium.org, sebsg+paymentswatch_chromium.org, serviceworker-reviews, shimazu+serviceworker_chromium.org, tzik, zpeng+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce ServiceWorkerRegistrationOptions struct for service worker options This patch introduces ServiceWorkerRegistrationOptions struct to the ServiceWorkerRegistration IPC message. The service worker spec has a couple of options that need to be passed between the browser and blink. It allows future implementation of other options, as currently ServiceWorkerRegistration has the maximum number of arguments. BUG=675540 Review-Url: https://codereview.chromium.org/2968123002 Cr-Commit-Position: refs/heads/master@{#485227} Committed: https://chromium.googlesource.com/chromium/src/+/85a04df639d3e3c05220e7bdb311b05a9470e0f1

Patch Set 1 #

Total comments: 17

Patch Set 2 : address comments #

Total comments: 4

Patch Set 3 : address more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -224 lines) Patch
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/background_fetch/background_fetch_test_base.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/background_sync/background_sync_manager_unittest.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/background_sync/background_sync_service_impl_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/notifications/platform_notification_context_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/payments/payment_app_content_unittest_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/foreign_fetch_request_handler_unittest.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M content/browser/service_worker/link_header_support_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_context_core.h View 1 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.cc View 1 chunk +4 lines, -8 lines 0 comments Download
M content/browser/service_worker/service_worker_context_request_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_context_unittest.cc View 11 chunks +14 lines, -33 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_data_pipe_reader_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 3 chunks +14 lines, -17 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host_unittest.cc View 3 chunks +9 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_handle_unittest.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_job_coordinator.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_job_coordinator.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_job_unittest.cc View 1 19 chunks +44 lines, -61 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host_unittest.cc View 3 chunks +11 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_read_from_cache_job_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M content/browser/service_worker/service_worker_registration.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_registration.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_registration_handle.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_registration_unittest.cc View 4 chunks +8 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_storage.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_storage_unittest.cc View 14 chunks +28 lines, -27 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_version_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_write_to_cache_job_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/child/service_worker/service_worker_dispatcher.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/child/service_worker/service_worker_registration_handle_reference.h View 1 chunk +1 line, -1 line 0 comments Download
M content/common/service_worker/service_worker_messages.h View 2 chunks +7 lines, -3 lines 0 comments Download
M content/common/service_worker/service_worker_types.h View 1 2 1 chunk +10 lines, -1 line 0 comments Download
M content/common/service_worker/service_worker_types.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (16 generated)
yuryu
Ptal, I've split the patch into two, and this will first change the IPC to ...
3 years, 5 months ago (2017-07-06 08:57:44 UTC) #4
nhiroki
LGTM with minor comments. https://codereview.chromium.org/2968123002/diff/1/content/common/service_worker/service_worker_types.cc File content/common/service_worker/service_worker_types.cc (right): https://codereview.chromium.org/2968123002/diff/1/content/common/service_worker/service_worker_types.cc#newcode135 content/common/service_worker/service_worker_types.cc:135: ServiceWorkerRegistrationOptions::ServiceWorkerRegistrationOptions() {} = default; ? ...
3 years, 5 months ago (2017-07-07 02:02:09 UTC) #7
nhiroki
+kinuko@ for content/ +dominickn@ for chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc
3 years, 5 months ago (2017-07-07 02:03:08 UTC) #9
nhiroki
+mkwst@ for content/common/service_worker/service_worker_messages.h
3 years, 5 months ago (2017-07-07 02:05:02 UTC) #11
nhiroki
Regarding the CL description: "It allows future implementation of other options, as currently ServiceWorkerRegistration has ...
3 years, 5 months ago (2017-07-07 02:08:59 UTC) #12
kinuko
lgtm https://codereview.chromium.org/2968123002/diff/1/content/common/service_worker/service_worker_types.h File content/common/service_worker/service_worker_types.h (right): https://codereview.chromium.org/2968123002/diff/1/content/common/service_worker/service_worker_types.h#newcode228 content/common/service_worker/service_worker_types.h:228: GURL scope; nit: maybe add a lightweight TODO ...
3 years, 5 months ago (2017-07-07 02:59:31 UTC) #13
dominickn
add_to_homescreen_data_fetcher_unittest.cc lgtm
3 years, 5 months ago (2017-07-07 03:02:55 UTC) #14
dominickn
General nit: you should explicitly #include "content/common/service_worker/service_worker_types.h" in the test files you've changed to IWYU. ...
3 years, 5 months ago (2017-07-07 03:04:32 UTC) #15
falken
Looks good. https://codereview.chromium.org/2968123002/diff/1/content/browser/service_worker/service_worker_context_core.h File content/browser/service_worker/service_worker_context_core.h (right): https://codereview.chromium.org/2968123002/diff/1/content/browser/service_worker/service_worker_context_core.h#newcode199 content/browser/service_worker/service_worker_context_core.h:199: // worker for initial installation. not related ...
3 years, 5 months ago (2017-07-07 03:25:32 UTC) #17
Mike West
IPC LGTM.
3 years, 5 months ago (2017-07-07 11:11:05 UTC) #18
yuryu
https://codereview.chromium.org/2968123002/diff/1/chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc File chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc (right): https://codereview.chromium.org/2968123002/diff/1/chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc#newcode25 chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc:25: #include "content/browser/service_worker/service_worker_context_core.h" On 2017/07/07 03:04:32, dominickn wrote: > Nit: ...
3 years, 5 months ago (2017-07-10 03:38:11 UTC) #19
falken
lgtm https://codereview.chromium.org/2968123002/diff/20001/content/common/service_worker/service_worker_types.h File content/common/service_worker/service_worker_types.h (right): https://codereview.chromium.org/2968123002/diff/20001/content/common/service_worker/service_worker_types.h#newcode225 content/common/service_worker/service_worker_types.h:225: // https://w3c.github.io/ServiceWorker/v1/#dictdef-registrationoptions Please link to Service Worker Nightly, ...
3 years, 5 months ago (2017-07-10 03:46:30 UTC) #22
yuryu
https://codereview.chromium.org/2968123002/diff/20001/content/common/service_worker/service_worker_types.h File content/common/service_worker/service_worker_types.h (right): https://codereview.chromium.org/2968123002/diff/20001/content/common/service_worker/service_worker_types.h#newcode225 content/common/service_worker/service_worker_types.h:225: // https://w3c.github.io/ServiceWorker/v1/#dictdef-registrationoptions On 2017/07/10 03:46:30, falken wrote: > Please ...
3 years, 5 months ago (2017-07-10 09:01:30 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2968123002/40001
3 years, 5 months ago (2017-07-10 09:02:23 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/85a04df639d3e3c05220e7bdb311b05a9470e0f1
3 years, 5 months ago (2017-07-10 10:43:36 UTC) #31
yuryu
On 2017/07/07 02:08:59, nhiroki wrote: > Regarding the CL description: > > "It allows future ...
3 years, 5 months ago (2017-07-10 10:48:43 UTC) #32
nhiroki
3 years, 5 months ago (2017-07-11 00:05:27 UTC) #33
Message was sent while issue was closed.
On 2017/07/10 10:48:43, yuryu wrote:
> On 2017/07/07 02:08:59, nhiroki wrote:
> > Regarding the CL description:
> > 
> > "It allows future implementation of other options, as currently
> > ServiceWorkerRegistration has the maximum number of arguments."
> > 
> > What's the maximum number of arguments?
> 
> The maximum is 5.

Ah, I understand it means *IPC's* maximum number of arguments :)

Powered by Google App Engine
This is Rietveld 408576698