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

Issue 1230213004: [Background Sync] Sent sync registration details to worker (Closed)

Created:
5 years, 5 months ago by iclelland
Modified:
5 years, 5 months ago
Reviewers:
michaeln, jkarlin
CC:
chromium-reviews, tim+watch_chromium.org, jsbell+serviceworker_chromium.org, mlamouri+watch-content_chromium.org, serviceworker-reviews, zea+watch_chromium.org, tzik, maxbogue+watch_chromium.org, jam, kinuko+serviceworker, nhiroki, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, jkarlin+watch_chromium.org, horo+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, kinuko+watch, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@bgsync-event-mek
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Background Sync] Sent sync registration details to worker This sends the details of a fired sync event from the BackgroundSyncManager down to the running service worker. This is part 2 of a three-part blink-chromium-blink dance: Part 1: https://codereview.chromium.org/1220223003/ Part 2: [This one] Part 3: https://codereview.chromium.org/1231743004/ BUG=482066 Committed: https://crrev.com/022985a303ea89b8aae001e86ea6855c25b1ab11 Cr-Commit-Position: refs/heads/master@{#339882}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Validate safety of static_casts #

Total comments: 6

Patch Set 4 : Use constref rather than pointer for FireOneShotSync #

Total comments: 5

Patch Set 5 : Remove const ref from mojo StructPtr (with rebase) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -19 lines) Patch
M content/browser/background_sync/background_sync_manager.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/background_sync/background_sync_manager.cc View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M content/browser/background_sync/background_sync_manager_unittest.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/background_sync/background_sync_registration.h View 2 chunks +22 lines, -0 lines 0 comments Download
M content/browser/background_sync/background_sync_registration.cc View 1 2 1 chunk +72 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_browsertest.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 3 4 3 chunks +9 lines, -12 lines 0 comments Download
M content/renderer/background_sync/background_sync_client_impl.cc View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_context_client.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 18 (4 generated)
iclelland
jkarlin - PTAL; note this still depends on the Mojo patch at https://codereview.chromium.org/1220943003/, so it's ...
5 years, 5 months ago (2015-07-17 17:51:52 UTC) #2
jkarlin
Seems good, one question https://codereview.chromium.org/1230213004/diff/40001/content/browser/background_sync/background_sync_manager.h File content/browser/background_sync/background_sync_manager.h (right): https://codereview.chromium.org/1230213004/diff/40001/content/browser/background_sync/background_sync_manager.h#newcode123 content/browser/background_sync/background_sync_manager.h:123: BackgroundSyncRegistration* registration, const BackgroundSyncRegistration& registration ...
5 years, 5 months ago (2015-07-17 18:07:22 UTC) #3
iclelland
https://codereview.chromium.org/1230213004/diff/40001/content/browser/background_sync/background_sync_manager.h File content/browser/background_sync/background_sync_manager.h (right): https://codereview.chromium.org/1230213004/diff/40001/content/browser/background_sync/background_sync_manager.h#newcode123 content/browser/background_sync/background_sync_manager.h:123: BackgroundSyncRegistration* registration, On 2015/07/17 18:07:22, jkarlin wrote: > const ...
5 years, 5 months ago (2015-07-17 18:34:25 UTC) #4
iclelland
https://codereview.chromium.org/1230213004/diff/40001/content/browser/background_sync/background_sync_registration.h File content/browser/background_sync/background_sync_registration.h (right): https://codereview.chromium.org/1230213004/diff/40001/content/browser/background_sync/background_sync_registration.h#newcode45 content/browser/background_sync/background_sync_registration.h:45: namespace mojo { On 2015/07/17 18:34:25, iclelland wrote: > ...
5 years, 5 months ago (2015-07-17 18:56:35 UTC) #5
jkarlin
lgtm with a couple of comments https://codereview.chromium.org/1230213004/diff/60001/content/browser/background_sync/background_sync_registration.h File content/browser/background_sync/background_sync_registration.h (right): https://codereview.chromium.org/1230213004/diff/60001/content/browser/background_sync/background_sync_registration.h#newcode52 content/browser/background_sync/background_sync_registration.h:52: const content::SyncRegistrationPtr& input); ...
5 years, 5 months ago (2015-07-17 20:28:10 UTC) #6
jkarlin
https://codereview.chromium.org/1230213004/diff/40001/content/browser/background_sync/background_sync_registration.h File content/browser/background_sync/background_sync_registration.h (right): https://codereview.chromium.org/1230213004/diff/40001/content/browser/background_sync/background_sync_registration.h#newcode45 content/browser/background_sync/background_sync_registration.h:45: namespace mojo { On 2015/07/17 18:56:35, iclelland wrote: > ...
5 years, 5 months ago (2015-07-17 20:29:19 UTC) #7
iclelland
https://codereview.chromium.org/1230213004/diff/60001/content/browser/background_sync/background_sync_registration.h File content/browser/background_sync/background_sync_registration.h (right): https://codereview.chromium.org/1230213004/diff/60001/content/browser/background_sync/background_sync_registration.h#newcode52 content/browser/background_sync/background_sync_registration.h:52: const content::SyncRegistrationPtr& input); On 2015/07/17 20:28:10, jkarlin wrote: > ...
5 years, 5 months ago (2015-07-20 18:40:23 UTC) #8
jkarlin
https://codereview.chromium.org/1230213004/diff/60001/content/renderer/background_sync/background_sync_client_impl.cc File content/renderer/background_sync/background_sync_client_impl.cc (right): https://codereview.chromium.org/1230213004/diff/60001/content/renderer/background_sync/background_sync_client_impl.cc#newcode34 content/renderer/background_sync/background_sync_client_impl.cc:34: mojo::ConvertTo<scoped_ptr<blink::WebSyncRegistration>>(registration); On 2015/07/20 18:40:22, iclelland wrote: > On 2015/07/17 ...
5 years, 5 months ago (2015-07-20 18:46:25 UTC) #9
iclelland
On 2015/07/20 18:46:25, jkarlin wrote: > https://codereview.chromium.org/1230213004/diff/60001/content/renderer/background_sync/background_sync_client_impl.cc > File content/renderer/background_sync/background_sync_client_impl.cc (right): > > https://codereview.chromium.org/1230213004/diff/60001/content/renderer/background_sync/background_sync_client_impl.cc#newcode34 > ...
5 years, 5 months ago (2015-07-20 18:57:02 UTC) #10
iclelland
+r michaeln -- could you PTAL at content/{browser,renderer}/service_worker/* -- thanks!
5 years, 5 months ago (2015-07-21 18:40:58 UTC) #12
michaeln
(mostly r/s) lgtm 2
5 years, 5 months ago (2015-07-21 18:46:16 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230213004/80001
5 years, 5 months ago (2015-07-22 15:48:29 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 5 months ago (2015-07-22 15:54:11 UTC) #17
commit-bot: I haz the power
5 years, 5 months ago (2015-07-22 15:54:48 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/022985a303ea89b8aae001e86ea6855c25b1ab11
Cr-Commit-Position: refs/heads/master@{#339882}

Powered by Google App Engine
This is Rietveld 408576698