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

Issue 1960843002: [OnionSoup] Move background_sync.mojom from //content to //third_party/WebKit (Closed)

Created:
4 years, 7 months ago by juncai
Modified:
4 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-worker-reviews_chromium.org, chasej+watch_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, horo+watch_chromium.org, iclelland+watch_chromium.org, jam, jkarlin+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+serviceworker, kinuko+watch, michaeln, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nhiroki, Peter Beverloo, qsr+mojo_chromium.org, Sam McNally, serviceworker-reviews, tzik, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[OnionSoup] Move background_sync.mojom from //content to //third_party/WebKit This patch is the first step of moving background_sync.mojom from //content to //third_party/WebKit BUG=610374 Committed: https://crrev.com/30a0e93e8d121381d3674db975ba7ac7838ec7cf Cr-Commit-Position: refs/heads/master@{#392779}

Patch Set 1 : moved background sync related mojom files to blink #

Patch Set 2 : rebase #

Patch Set 3 : merged background_sync_service.mojom to background_sync.mojom #

Patch Set 4 : added security owners for background_sync.mojom file #

Total comments: 2

Patch Set 5 : added security owners for service_worker_event_status.mojom file #

Total comments: 3

Patch Set 6 : address dcheng@'s comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -315 lines) Patch
M content/app/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/BUILD.gn View 1 2 chunks +1 line, -1 line 0 comments Download
M content/browser/DEPS View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/background_sync/background_sync_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/background_sync/background_sync_context.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/background_sync/background_sync_context.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/background_sync/background_sync_manager.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/background_sync/background_sync_manager.cc View 1 2 11 chunks +18 lines, -17 lines 0 comments Download
M content/browser/background_sync/background_sync_manager_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/background_sync/background_sync_registration.h View 1 2 3 4 5 3 chunks +7 lines, -25 lines 0 comments Download
M content/browser/background_sync/background_sync_registration.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/background_sync/background_sync_service_impl.h View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M content/browser/background_sync/background_sync_service_impl.cc View 1 7 chunks +14 lines, -14 lines 0 comments Download
M content/browser/background_sync/background_sync_service_impl_unittest.cc View 1 6 chunks +27 lines, -26 lines 0 comments Download
M content/child/background_sync/background_sync_provider.h View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
M content/child/background_sync/background_sync_provider.cc View 1 2 8 chunks +21 lines, -22 lines 0 comments Download
M content/child/background_sync/background_sync_type_converters.h View 1 2 1 chunk +17 lines, -18 lines 0 comments Download
M content/child/background_sync/background_sync_type_converters.cc View 3 chunks +18 lines, -18 lines 0 comments Download
M content/child/background_sync/background_sync_type_converters_unittest.cc View 2 chunks +18 lines, -21 lines 0 comments Download
M content/common/BUILD.gn View 1 2 chunks +0 lines, -2 lines 0 comments Download
M content/common/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
D content/common/background_sync_service.mojom View 1 chunk +0 lines, -42 lines 0 comments Download
M content/common/service_worker/service_worker_type_converters.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/common/service_worker/service_worker_type_converters.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M content/content_common_mojo_bindings.gyp View 1 2 chunks +0 lines, -6 lines 0 comments Download
M content/public/browser/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/BUILD.gn View 1 chunk +0 lines, -7 lines 0 comments Download
D content/public/common/background_sync.mojom View 1 chunk +0 lines, -18 lines 0 comments Download
D content/public/common/service_worker_event_status.mojom View 1 chunk +0 lines, -12 lines 0 comments Download
M content/renderer/BUILD.gn View 1 2 chunks +1 line, -1 line 0 comments Download
M content/renderer/background_sync/background_sync_client_impl.h View 1 2 1 chunk +10 lines, -8 lines 0 comments Download
M content/renderer/background_sync/background_sync_client_impl.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.h View 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/test/BUILD.gn View 1 2 2 chunks +1 line, -1 line 0 comments Download
M content/test/test_background_sync_manager.h View 3 chunks +4 lines, -4 lines 0 comments Download
M content/test/test_background_sync_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/utility/BUILD.gn View 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/public/blink.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/background_sync/OWNERS View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
A + third_party/WebKit/public/platform/modules/background_sync/background_sync.mojom View 1 2 2 chunks +15 lines, -4 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/OWNERS View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
A + third_party/WebKit/public/platform/modules/serviceworker/service_worker_event_status.mojom View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (10 generated)
juncai
esprehn@chromium.org: Please review changes in //third_party/WebKit/public/ avi@chromium.org: Please review changes in //content/
4 years, 7 months ago (2016-05-09 18:14:59 UTC) #3
Avi (use Gerrit)
This seems like just a move, yes? LGTM stamp
4 years, 7 months ago (2016-05-09 18:38:34 UTC) #4
juncai
On 2016/05/09 18:38:34, Avi wrote: > This seems like just a move, yes? > > ...
4 years, 7 months ago (2016-05-09 18:42:00 UTC) #5
esprehn
lgtm
4 years, 7 months ago (2016-05-09 18:51:37 UTC) #6
juncai
tsepez@chromium.org: Please review changes in //content/common/background_sync_service.mojom //content/public/common/background_sync.mojom //content/public/common/service_worker_event_status.mojom
4 years, 7 months ago (2016-05-09 18:59:50 UTC) #8
Marijn Kruisselbrink
drive-by nit https://codereview.chromium.org/1960843002/diff/60001/third_party/WebKit/public/platform/modules/background_sync/OWNERS File third_party/WebKit/public/platform/modules/background_sync/OWNERS (right): https://codereview.chromium.org/1960843002/diff/60001/third_party/WebKit/public/platform/modules/background_sync/OWNERS#newcode4 third_party/WebKit/public/platform/modules/background_sync/OWNERS:4: # Changes to Mojo interfaces require a ...
4 years, 7 months ago (2016-05-09 19:02:37 UTC) #9
juncai
https://codereview.chromium.org/1960843002/diff/60001/third_party/WebKit/public/platform/modules/background_sync/OWNERS File third_party/WebKit/public/platform/modules/background_sync/OWNERS (right): https://codereview.chromium.org/1960843002/diff/60001/third_party/WebKit/public/platform/modules/background_sync/OWNERS#newcode4 third_party/WebKit/public/platform/modules/background_sync/OWNERS:4: # Changes to Mojo interfaces require a security review ...
4 years, 7 months ago (2016-05-09 19:11:03 UTC) #10
juncai
Noticed that tsepez@ is OOO. Added dcheng@ as the reviewer. dcheng@: I guess moving those ...
4 years, 7 months ago (2016-05-10 02:39:31 UTC) #12
dcheng
I didn't look at the existing type converters very closely: where they previously reviewed by ...
4 years, 7 months ago (2016-05-10 05:06:03 UTC) #13
iclelland
On 2016/05/10 05:06:03, dcheng wrote: > I didn't look at the existing type converters very ...
4 years, 7 months ago (2016-05-10 13:46:21 UTC) #14
juncai
https://codereview.chromium.org/1960843002/diff/80001/content/browser/background_sync/background_sync_registration.h File content/browser/background_sync/background_sync_registration.h (right): https://codereview.chromium.org/1960843002/diff/80001/content/browser/background_sync/background_sync_registration.h#newcode85 content/browser/background_sync/background_sync_registration.h:85: }; On 2016/05/10 05:06:03, dcheng wrote: > Can we ...
4 years, 7 months ago (2016-05-10 20:40:14 UTC) #15
dcheng
mojom lgtm
4 years, 7 months ago (2016-05-10 20:44:40 UTC) #16
juncai
I guess //content/public/common/background_sync.mojom //content/public/common/service_worker_event_status.mojom also need a security review. Added palmer@chromium.org to review them. palmer@, ...
4 years, 7 months ago (2016-05-10 21:20:20 UTC) #18
palmer
LGTM rubberstamp.
4 years, 7 months ago (2016-05-10 22:29:38 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1960843002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1960843002/100001
4 years, 7 months ago (2016-05-10 22:41:17 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-11 00:10:07 UTC) #24
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/30a0e93e8d121381d3674db975ba7ac7838ec7cf Cr-Commit-Position: refs/heads/master@{#392779}
4 years, 7 months ago (2016-05-11 00:11:23 UTC) #26
michaeln
4 years, 7 months ago (2016-05-11 22:30:44 UTC) #28
Message was sent while issue was closed.
https://codereview.chromium.org/1960843002/diff/80001/third_party/WebKit/publ...
File third_party/WebKit/public/BUILD.gn (right):

https://codereview.chromium.org/1960843002/diff/80001/third_party/WebKit/publ...
third_party/WebKit/public/BUILD.gn:186:
"platform/modules/geolocation/geolocation.mojom",
Drive by question?

This has probably already been discussed plenty times over, but...

The practice of putting interface definition files for external services
utilized by webkit/modules into the webkit corner of the source tree seems odd?
Its easy to imagine some of these services being reused in non-webkit contexts.

Why are the interface files defining a service co-resident with the sources that
import the service rather then the sources that export the service?

For interfaces that are highly specific to blink, it would make sense as 
declaration of an interface that an embedder should provide. But for more
generic/reusable services its odd.

Powered by Google App Engine
This is Rietveld 408576698