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

Issue 2745243002: Implement a Mojo service for Background Fetch (Closed)

Created:
3 years, 9 months ago by Peter Beverloo
Modified:
3 years, 9 months ago
CC:
chromium-reviews, awdf+watch_chromium.org, Aaron Boodman, Peter Beverloo, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, blink-reviews, dglazkov+blink, darin (slow to review), harkness+watch_chromium.org, blink-reviews-api_chromium.org, qsr+mojo_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement a Mojo service for Background Fetch This CL lands the Mojo service that we intend to use for Background Fetch. Everything but the fetch() event has been hooked up from the renderer side, and will be received by a strongly binded service implementation in the browser process. The fetch() function will be implemented separately, as it will require some plumbing to support the appropriate types for requests. BUG=692534, 692535 Review-Url: https://codereview.chromium.org/2745243002 Cr-Commit-Position: refs/heads/master@{#457490} Committed: https://chromium.googlesource.com/chromium/src/+/3226ce85f3ba466797db44fe134abb8b898d2452

Patch Set 1 : Implement a Mojo service for Background Fetch #

Total comments: 22

Patch Set 2 : Implement a Mojo service for Background Fetch #

Patch Set 3 : Implement a Mojo service for Background Fetch #

Total comments: 20

Patch Set 4 : Implement a Mojo service for Background Fetch #

Patch Set 5 : add missing underscores #

Patch Set 6 : rebase + comments v2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+538 lines, -20 lines) Patch
M content/browser/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A content/browser/background_fetch/DEPS View 1 1 chunk +3 lines, -0 lines 0 comments Download
A content/browser/background_fetch/background_fetch_service_impl.h View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
A content/browser/background_fetch/background_fetch_service_impl.cc View 1 2 3 4 1 chunk +84 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/storage_partition_impl.h View 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 3 chunks +10 lines, -0 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.h View 1 2 3 1 chunk +81 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp View 1 2 3 1 chunk +123 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.h View 1 2 3 4 5 3 chunks +14 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp View 1 2 3 4 5 5 chunks +42 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BackgroundFetchRegistration.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.h View 4 chunks +17 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.cpp View 1 2 3 4 5 4 chunks +38 lines, -6 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/public/platform/modules/background_fetch/OWNERS View 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/WebKit/public/platform/modules/background_fetch/background_fetch.mojom View 1 1 chunk +48 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (25 generated)
Peter Beverloo
+harkness for everything +haraken for Mojo integration in Blink. The BackgroundFetchBridge exists so that we ...
3 years, 9 months ago (2017-03-13 19:42:05 UTC) #6
Tom Sepez
LGTM, please cc me on the iterations ...
3 years, 9 months ago (2017-03-13 21:43:19 UTC) #9
haraken
I might want to have dcheng@ take a look at the Mojo integration part. https://codereview.chromium.org/2745243002/diff/40001/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp ...
3 years, 9 months ago (2017-03-14 09:13:14 UTC) #11
harkness
https://codereview.chromium.org/2745243002/diff/40001/content/browser/background_fetch/background_fetch_service_impl.h File content/browser/background_fetch/background_fetch_service_impl.h (right): https://codereview.chromium.org/2745243002/diff/40001/content/browser/background_fetch/background_fetch_service_impl.h#newcode20 content/browser/background_fetch/background_fetch_service_impl.h:20: // and callers from Blink, which implements the Background ...
3 years, 9 months ago (2017-03-14 11:55:48 UTC) #12
Peter Beverloo
Tom: Certainly! Daniel: Mind having a look too? Would love your thoughts on how to ...
3 years, 9 months ago (2017-03-14 15:17:22 UTC) #15
harkness
https://codereview.chromium.org/2745243002/diff/40001/third_party/WebKit/public/platform/modules/background_fetch/background_fetch.mojom File third_party/WebKit/public/platform/modules/background_fetch/background_fetch.mojom (right): https://codereview.chromium.org/2745243002/diff/40001/third_party/WebKit/public/platform/modules/background_fetch/background_fetch.mojom#newcode9 third_party/WebKit/public/platform/modules/background_fetch/background_fetch.mojom:9: DUPLICATED_TAG On 2017/03/14 15:17:21, Peter Beverloo wrote: > On ...
3 years, 9 months ago (2017-03-14 17:17:29 UTC) #18
Peter Beverloo
https://codereview.chromium.org/2745243002/diff/40001/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp File third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp (right): https://codereview.chromium.org/2745243002/diff/40001/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp#newcode29 third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp:29: icon.setType(iconPtr->type); On 2017/03/14 09:13:13, haraken wrote: > > Can ...
3 years, 9 months ago (2017-03-14 17:28:15 UTC) #19
harkness
lgtm % not resolving on DUPLICATED_TAG. https://codereview.chromium.org/2745243002/diff/80001/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp File third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp (right): https://codereview.chromium.org/2745243002/diff/80001/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp#newcode79 third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp:79: resolver->resolve(registration); Now that ...
3 years, 9 months ago (2017-03-14 18:19:36 UTC) #22
haraken
LGTM if dcheng@ is happy.
3 years, 9 months ago (2017-03-14 20:04:02 UTC) #25
Peter Beverloo
+avi for //content/browser/{r,s} +dcheng, mind taking a look?
3 years, 9 months ago (2017-03-15 17:24:30 UTC) #27
Avi (use Gerrit)
I don't know how mojo dependencies work, but if that's ok lgtm
3 years, 9 months ago (2017-03-15 17:31:07 UTC) #28
dcheng
LGTM, sorry for the review delay. The Blink mojo integration seems fine, given the level ...
3 years, 9 months ago (2017-03-16 07:14:08 UTC) #29
Peter Beverloo
Thanks! Avi: DEPS to Mojo services implemented in //content/browser/ are fine indeed. https://codereview.chromium.org/2745243002/diff/80001/content/browser/background_fetch/background_fetch_service_impl.h File content/browser/background_fetch/background_fetch_service_impl.h ...
3 years, 9 months ago (2017-03-16 15:32:56 UTC) #30
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/2745243002/120001
3 years, 9 months ago (2017-03-16 15:33:37 UTC) #34
Peter Beverloo
https://codereview.chromium.org/2745243002/diff/80001/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp File third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp (right): https://codereview.chromium.org/2745243002/diff/80001/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp#newcode79 third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp:79: resolver->resolve(registration); On 2017/03/14 18:19:35, harkness wrote: > Now that ...
3 years, 9 months ago (2017-03-16 16:26:55 UTC) #36
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/2745243002/140001
3 years, 9 months ago (2017-03-16 16:28:00 UTC) #39
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 18:07:14 UTC) #42
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/3226ce85f3ba466797db44fe134a...

Powered by Google App Engine
This is Rietveld 408576698