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

Issue 2762303002: Enable transmitting Fetch Requests over Mojo (Closed)

Created:
3 years, 9 months ago by Peter Beverloo
Modified:
3 years, 8 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, kinuko+watch, jsbell+serviceworker_chromium.org, awdf+watch_chromium.org, tzik, jam, abarth-chromium, dglazkov+blink, darin-cc_chromium.org, blink-reviews, harkness+watch_chromium.org, blink-reviews-api_chromium.org, blink-worker-reviews_chromium.org, nhiroki, haraken, michaeln, shimazu+serviceworker_chromium.org, serviceworker-reviews, Aaron Boodman, kinuko+serviceworker, horo+watch_chromium.org, darin (slow to review), tyoshino (SeeGerritForStatus)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : rename #

Patch Set 3 : Enable transmitting Fetch Requests over Mojo #

Total comments: 11

Patch Set 4 : Enable transmitting Fetch Requests over Mojo #

Patch Set 5 : rebase #

Total comments: 14

Patch Set 6 : Enable transmitting Fetch Requests over Mojo #

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:

Messages

Total messages: 55 (29 generated)
Peter Beverloo
+horo, yhirano for fetch +dcheng for Blink/Mojo/security +harkness FYI This patch is not ready for ...
3 years, 9 months ago (2017-03-21 20:06:42 UTC) #2
yhirano
I think Request is too generic. I know that it corresponds to blink::Request, but I ...
3 years, 9 months ago (2017-03-22 13:10:20 UTC) #4
falken
On 2017/03/22 13:10:20, yhirano wrote: > I think Request is too generic. I know that ...
3 years, 9 months ago (2017-03-22 13:44:22 UTC) #5
Peter Beverloo
On 2017/03/22 13:44:22, falken wrote: > On 2017/03/22 13:10:20, yhirano wrote: > > I think ...
3 years, 9 months ago (2017-03-22 14:36:10 UTC) #6
horo
We (yhirano@, falken@ and shimazu@) talked offline, and agreed that: - The name "Request" is ...
3 years, 9 months ago (2017-03-23 10:10:57 UTC) #7
Peter Beverloo
That is very helpful, thank you! I've renamed the `Request` structure to `FetchAPIRequest`, and implemented ...
3 years, 9 months ago (2017-03-23 21:02:44 UTC) #8
kinuko
On 2017/03/23 21:02:44, Peter Beverloo wrote: > That is very helpful, thank you! I've renamed ...
3 years, 9 months ago (2017-03-24 03:37:24 UTC) #13
dcheng
https://codereview.chromium.org/2762303002/diff/40001/content/common/service_worker/service_worker_fetch_request_struct_traits.cc File content/common/service_worker/service_worker_fetch_request_struct_traits.cc (right): https://codereview.chromium.org/2762303002/diff/40001/content/common/service_worker/service_worker_fetch_request_struct_traits.cc#newcode398 content/common/service_worker/service_worker_fetch_request_struct_traits.cc:398: return std::map<std::string, std::string>(); Is this something we expect to ...
3 years, 9 months ago (2017-03-24 05:27:48 UTC) #14
Peter Beverloo
Thanks for the comments! This should now be ready for review, please take a look. ...
3 years, 9 months ago (2017-03-24 18:48:43 UTC) #15
horo
lgtm On 2017/03/24 18:48:43, Peter Beverloo wrote: > Thanks for the comments! This should now ...
3 years, 9 months ago (2017-03-27 05:52:02 UTC) #24
yhirano
https://codereview.chromium.org/2762303002/diff/80001/third_party/WebKit/public/platform/modules/fetch/request.mojom File third_party/WebKit/public/platform/modules/fetch/request.mojom (right): https://codereview.chromium.org/2762303002/diff/80001/third_party/WebKit/public/platform/modules/fetch/request.mojom#newcode1 third_party/WebKit/public/platform/modules/fetch/request.mojom:1: // Copyright 2017 The Chromium Authors. All rights reserved. ...
3 years, 9 months ago (2017-03-27 05:58:20 UTC) #25
kinuko
> > On 2017/03/24 03:37:24, kinuko wrote: > > > (drive-by) just to make sure ...
3 years, 9 months ago (2017-03-27 10:01:03 UTC) #27
Peter Beverloo
dcheng - ptal https://codereview.chromium.org/2762303002/diff/80001/third_party/WebKit/public/platform/modules/fetch/request.mojom File third_party/WebKit/public/platform/modules/fetch/request.mojom (right): https://codereview.chromium.org/2762303002/diff/80001/third_party/WebKit/public/platform/modules/fetch/request.mojom#newcode1 third_party/WebKit/public/platform/modules/fetch/request.mojom:1: // Copyright 2017 The Chromium Authors. ...
3 years, 9 months ago (2017-03-27 22:22:31 UTC) #28
dcheng
mojo lgtm https://codereview.chromium.org/2762303002/diff/80001/content/common/service_worker/service_worker_fetch_request_struct_traits.cc File content/common/service_worker/service_worker_fetch_request_struct_traits.cc (right): https://codereview.chromium.org/2762303002/diff/80001/content/common/service_worker/service_worker_fetch_request_struct_traits.cc#newcode8 content/common/service_worker/service_worker_fetch_request_struct_traits.cc:8: #include "content/public/common/referrer_struct_traits.h" Out of curiosity, why are ...
3 years, 9 months ago (2017-03-28 06:52:24 UTC) #29
kinuko
lgtm
3 years, 8 months ago (2017-03-28 12:48:27 UTC) #30
yhirano
https://codereview.chromium.org/2762303002/diff/80001/third_party/WebKit/public/platform/modules/fetch/request.mojom File third_party/WebKit/public/platform/modules/fetch/request.mojom (right): https://codereview.chromium.org/2762303002/diff/80001/third_party/WebKit/public/platform/modules/fetch/request.mojom#newcode1 third_party/WebKit/public/platform/modules/fetch/request.mojom:1: // Copyright 2017 The Chromium Authors. All rights reserved. ...
3 years, 8 months ago (2017-03-28 12:52:18 UTC) #31
Peter Beverloo
https://codereview.chromium.org/2762303002/diff/80001/content/common/service_worker/service_worker_fetch_request_struct_traits.cc File content/common/service_worker/service_worker_fetch_request_struct_traits.cc (right): https://codereview.chromium.org/2762303002/diff/80001/content/common/service_worker/service_worker_fetch_request_struct_traits.cc#newcode8 content/common/service_worker/service_worker_fetch_request_struct_traits.cc:8: #include "content/public/common/referrer_struct_traits.h" On 2017/03/28 06:52:24, dcheng wrote: > Out ...
3 years, 8 months ago (2017-03-28 14:07:53 UTC) #33
yhirano
lgtm
3 years, 8 months ago (2017-03-28 14:40:45 UTC) #35
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/2762303002/100001
3 years, 8 months ago (2017-03-28 15:49:24 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/181472)
3 years, 8 months ago (2017-03-28 17:35:27 UTC) #42
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/2762303002/100001
3 years, 8 months ago (2017-03-28 20:48:15 UTC) #44
commit-bot: I haz the power
CQ has no permission to schedule in bucket master.tryserver.chromium.linux
3 years, 8 months ago (2017-03-28 21:15:35 UTC) #46
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/2762303002/100001
3 years, 8 months ago (2017-03-28 22:05:05 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/181739)
3 years, 8 months ago (2017-03-29 01:04:42 UTC) #50
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/2762303002/100001
3 years, 8 months ago (2017-03-29 10:40:42 UTC) #52
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 12:37:25 UTC) #55
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/f05540d87c83d707b4e9d7a00f29...

Powered by Google App Engine
This is Rietveld 408576698