|
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
Total comments: 22
|
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
|
Total messages: 24 (0 generated)
|