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

Issue 463013002: ServiceWorker: Implement updatefound event and version attributes (Chromium) (Closed)

Created:
6 years, 4 months ago by nhiroki
Modified:
6 years, 4 months ago
Reviewers:
falken, michaeln, nasko
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, kinuko+serviceworker, darin-cc_chromium.org, horo+watch_chromium.org, alecflett+watch_chromium.org, dominicc (has gone to gerrit)
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Implement updatefound event and version attributes (Chromium) Changes in the renderer side: * Implementing WebServiceWorkerRegistrationImpl in order to handle 'updatefound' event and version attributes. * Adding ServiceWorkerRegistrationHandleReference which is responsible for incrementing/decrementing the refcount of ServiceWorkerRegistration in the browser-side (in the same way as ServiceWorkerHandleRefernce). Changes in the browser side: * Adding ServiceWorkerRegistrationHandle which manages the refcount of ServiceWorkerRegistration and listens to its version change events. This is managed by ServiceWorkerDispatcherHost. Changes in the wiring part: * Adding new IPC messages for refcount operations. * Changing Registered and SetVersionAttributes messages to carry the registration handle id. BUG=384119, 396400 TEST=content_unittests --gtest_filter=ServiceWorker* TEST=run_webkit_tests.py --debug http/tests/serviceworker TEST=https://codereview.chromium.org/466723002/ (layout tests for ServiceWorkerRegistration) NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289415

Patch Set 1 : #

Patch Set 2 : fix errors #

Patch Set 3 : add browser-side implementation and wiring part #

Total comments: 22

Patch Set 4 : rebase #

Patch Set 5 : address for comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+646 lines, -22 lines) Patch
M content/browser/service_worker/service_worker_context_core.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_context_core.cc View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 2 4 chunks +12 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 4 7 chunks +73 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_provider_host.cc View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
A content/browser/service_worker/service_worker_registration_handle.h View 1 2 3 4 1 chunk +83 lines, -0 lines 0 comments Download
A content/browser/service_worker/service_worker_registration_handle.cc View 1 2 3 4 1 chunk +131 lines, -0 lines 0 comments Download
M content/child/service_worker/service_worker_dispatcher.h View 1 2 5 chunks +30 lines, -2 lines 0 comments Download
M content/child/service_worker/service_worker_dispatcher.cc View 1 2 8 chunks +98 lines, -7 lines 0 comments Download
M content/child/service_worker/service_worker_message_filter.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/child/service_worker/service_worker_message_filter.cc View 1 2 3 4 4 chunks +14 lines, -1 line 0 comments Download
A content/child/service_worker/service_worker_registration_handle_reference.h View 1 chunk +53 lines, -0 lines 0 comments Download
A content/child/service_worker/service_worker_registration_handle_reference.cc View 1 2 3 4 1 chunk +54 lines, -0 lines 0 comments Download
M content/child/service_worker/web_service_worker_registration_impl.h View 1 chunk +17 lines, -2 lines 0 comments Download
M content/child/service_worker/web_service_worker_registration_impl.cc View 1 2 3 4 1 chunk +46 lines, -3 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 3 chunks +13 lines, -3 lines 0 comments Download
M content/common/service_worker/service_worker_types.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_child.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
nhiroki
Hi falken@, I haven't closely checked if this CL works well or not, but please ...
6 years, 4 months ago (2014-08-12 09:08:21 UTC) #1
falken
Yep, this all looks good to me.
6 years, 4 months ago (2014-08-12 10:53:13 UTC) #2
nhiroki
Thank you for reviewing! Can you take another look? I merged the browser-side implementation into ...
6 years, 4 months ago (2014-08-12 13:22:39 UTC) #3
nhiroki
+michaeln@
6 years, 4 months ago (2014-08-12 13:24:06 UTC) #4
nhiroki
Hi jschuh@, could you review service_worker_messages.h? Thanks.
6 years, 4 months ago (2014-08-12 15:48:15 UTC) #5
nhiroki
On 2014/08/12 15:48:15, nhiroki wrote: > Hi jschuh@, could you review service_worker_messages.h? Thanks.
6 years, 4 months ago (2014-08-13 00:40:39 UTC) #6
nhiroki
On 2014/08/12 15:48:15, nhiroki wrote: > Hi jschuh@, could you review service_worker_messages.h? Thanks. Removed jschuh@ ...
6 years, 4 months ago (2014-08-13 00:42:10 UTC) #7
michaeln
it looks like you're working up to the model outlined in 384119, please add that ...
6 years, 4 months ago (2014-08-13 04:18:17 UTC) #8
nhiroki
nasko@: Could you take a look at service_worker_messages.h? This is the second CL I mentioned ...
6 years, 4 months ago (2014-08-13 04:48:33 UTC) #9
falken
lgtm. this is pretty consistent with our existing code for ServiceWorker objects, we likely have ...
6 years, 4 months ago (2014-08-13 08:27:06 UTC) #10
nhiroki
Thank you for reviewing! I'll put this into the CQ when I got the stamp ...
6 years, 4 months ago (2014-08-13 13:15:06 UTC) #11
nhiroki
On 2014/08/13 08:27:06, falken wrote: > lgtm. this is pretty consistent with our existing code ...
6 years, 4 months ago (2014-08-13 13:21:28 UTC) #12
nasko
IPC LGTM
6 years, 4 months ago (2014-08-13 15:33:08 UTC) #13
nhiroki
The CQ bit was checked by nhiroki@chromium.org
6 years, 4 months ago (2014-08-13 16:33:40 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/463013002/130001
6 years, 4 months ago (2014-08-13 16:34:35 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_gn_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-13 16:49:35 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-13 17:04:54 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/3841)
6 years, 4 months ago (2014-08-13 17:04:56 UTC) #18
nhiroki
The CQ bit was checked by nhiroki@chromium.org
6 years, 4 months ago (2014-08-13 23:00:30 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/463013002/130001
6 years, 4 months ago (2014-08-13 23:04:25 UTC) #20
nhiroki
The CQ bit was unchecked by nhiroki@chromium.org
6 years, 4 months ago (2014-08-13 23:41:50 UTC) #21
nhiroki
The CQ bit was checked by nhiroki@chromium.org
6 years, 4 months ago (2014-08-13 23:42:05 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/463013002/130001
6 years, 4 months ago (2014-08-13 23:45:25 UTC) #23
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 23:49:44 UTC) #24
Message was sent while issue was closed.
Committed patchset #5 (130001) as 289415

Powered by Google App Engine
This is Rietveld 408576698