|
Implement the BackgroundFetch{Fail,ed} Service Worker events
This CL implements the two final events part of the Background Fetch
API: backgroundfetchfail and backgroundfetched. They'll be dispatched
from the BackgroundFetchEventDispatcher, through the
ServiceWorkerEventDispatcher, to the renderer, where they'll run.
The BackgroundFetchSettledFetch structure has been defined in the
SWEventDispatcher's mojom file, but will move to its more appropriate
location in Blink when the ServiceWorkerFetchRequest/Response types
have been migrated to Mojo proper. This is in-progress.
BUG= 692534, 692581
Review-Url: https://codereview.chromium.org/2767093004
Cr-Commit-Position: refs/heads/master@{#459469}
Committed: https://chromium.googlesource.com/chromium/src/+/4b613c4cd7c83a70d4f176bcb6394b2a800bbd4d
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+831 lines, -47 lines) |
Patch |
|
M |
content/browser/background_fetch/background_fetch_event_dispatcher.h
|
View
|
|
4 chunks |
+30 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/background_fetch/background_fetch_event_dispatcher.cc
|
View
|
|
2 chunks |
+56 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/background_fetch/background_fetch_event_dispatcher_unittest.cc
|
View
|
1
|
4 chunks |
+162 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/service_worker/embedded_worker_test_helper.h
|
View
|
|
3 chunks |
+21 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/service_worker/embedded_worker_test_helper.cc
|
View
|
1
|
4 chunks |
+56 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/service_worker/service_worker_metrics.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/service_worker/service_worker_metrics.cc
|
View
|
|
3 chunks |
+16 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/common/background_fetch/background_fetch_struct_traits.h
|
View
|
1
2
3
4
5
|
2 chunks |
+23 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/common/background_fetch/background_fetch_struct_traits.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/common/background_fetch/background_fetch_types.h
|
View
|
|
2 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/common/background_fetch/background_fetch_types.cc
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/common/background_fetch/background_fetch_types.typemap
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/common/service_worker/service_worker_event_dispatcher.mojom
|
View
|
1
|
2 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/common/service_worker/service_worker_event_dispatcher.typemap
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/service_worker/service_worker_context_client.h
|
View
|
1
|
2 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/service_worker/service_worker_context_client.cc
|
View
|
1
2
3
4
|
9 chunks |
+152 lines, -28 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.h
|
View
|
1
|
3 chunks |
+22 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.cpp
|
View
|
1
|
1 chunk |
+23 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.h
|
View
|
1
|
3 chunks |
+19 lines, -6 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.cpp
|
View
|
1
|
1 chunk |
+25 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp
|
View
|
1
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.h
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
|
View
|
1
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h
|
View
|
1
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
View
|
1
2
3
4
|
2 chunks |
+46 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/BUILD.gn
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/public/platform/modules/background_fetch/WebBackgroundFetchSettledFetch.h
|
View
|
1
2
3
4
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
|
View
|
1
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
|
View
|
1
|
2 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
|
M |
tools/metrics/histograms/histograms.xml
|
View
|
1
2
3
4
|
3 chunks |
+22 lines, -0 lines |
0 comments
|
Download
|
Depends on Patchset:
Total messages: 31 (17 generated)
|