|
Enable transmitting Fetch Requests over Mojo
This CL implements support for sending Fetch API requests over Mojo. The
used type in Blink is WebServiceWorkerRequest, where the browser side
will use ServiceWorkerFetchRequest.
It's a lot of extra code and definitely more duplication. However, this
is something that we'll need in the near future to support Onion Soup of
the other users of these types, too. There also are opportunities to
remove duplication, notably of the enum values, by adopting the Mojo
enumerations as opposed to the ones in WebURLRequest.
The introduced type now also supersedes the native struct definition
included in service_worker_event_dispatcher.mojom.
BUG= 692535
Review-Url: https://codereview.chromium.org/2762303002
Cr-Commit-Position: refs/heads/master@{#460359}
Committed: https://chromium.googlesource.com/chromium/src/+/f05540d87c83d707b4e9d7a00f29ebd423b9cfb8
Total comments: 11
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1546 lines, -32 lines) |
Patch |
|
M |
content/browser/background_fetch/background_fetch_service_impl.h
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/background_fetch/background_fetch_service_impl.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+11 lines, -14 lines |
0 comments
|
Download
|
|
M |
content/common/DEPS
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/common/background_fetch/background_fetch_struct_traits.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/common/service_worker/service_worker_event_dispatcher.mojom
|
View
|
1
2
3
4
5
|
3 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
|
A |
content/common/service_worker/service_worker_fetch_request.typemap
|
View
|
1
2
3
4
5
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
|
A |
content/common/service_worker/service_worker_fetch_request_struct_traits.h
|
View
|
1
2
3
4
5
|
1 chunk |
+156 lines, -0 lines |
0 comments
|
Download
|
|
A |
content/common/service_worker/service_worker_fetch_request_struct_traits.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+460 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/common/service_worker/service_worker_types_struct_traits.cc
|
View
|
|
1 chunk |
+43 lines, -9 lines |
0 comments
|
Download
|
|
M |
content/common/typemaps.gni
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/BUILD.gn
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/platform/mojo/FetchAPIRequestStructTraits.h
|
View
|
1
2
3
4
5
|
1 chunk |
+137 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/platform/mojo/FetchAPIRequestStructTraits.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+503 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/platform/mojo/Referrer.typemap
|
View
|
1
2
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/platform/mojo/ReferrerStructTraits.h
|
View
|
1
2
3
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/mojo/blink_typemaps.gni
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/BUILD.gn
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/platform/modules/background_fetch/background_fetch.mojom
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/public/platform/modules/fetch/FetchAPIRequest.typemap
|
View
|
1
2
3
4
5
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/public/platform/modules/fetch/OWNERS
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/public/platform/modules/fetch/fetch_api_request.mojom
|
View
|
1
2
3
4
5
|
1 chunk |
+105 lines, -0 lines |
0 comments
|
Download
|
Depends on Patchset:
Total messages: 55 (29 generated)
|