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

Issue 1096503002: [Background Sync] Converting Blink code to the MVP API (Closed)

Created:
5 years, 8 months ago by iclelland
Modified:
5 years, 8 months ago
CC:
blink-reviews, dglazkov+blink, jsbell
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[Background Sync] Converting Blink code to the MVP API This commit implements the new API in https://github.com/slightlyoff/BackgroundSync/blob/26e17d82882f4b57641b5e2984c8680b64e7804a/idl.md Key points: The API has been split at the IDL level into [One Shot] Sync and PeriodicSync. Only items identified as MVP are enabled with the BackgroundSync runtime flag. Additional API items are controlled by a flag named BackgroundSyncV2 String "id"s have been changed to "tag"s everywhere. Other options are also changed (See the IDL changes for the complete list) A new internal-only "id" member is now used to track registration identity A new internal-only "periodicity" member is now used to distinguish between one-shot and periodic syncs. BUG=477705 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194551

Patch Set 1 #

Patch Set 2 : Make sure ids are 64 bit; fix formatting anomaly #

Total comments: 28

Patch Set 3 : Rebase #

Patch Set 4 : Addressing review comments #

Patch Set 5 : Remove failing tests (testing functionality not implemented in renderer) #

Patch Set 6 : Fix threading issue (stack-allocated pointers) and interface tests. #

Patch Set 7 : Rebase #

Patch Set 8 : Unregister method requires the sync registration tag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+677 lines, -212 lines) Patch
M LayoutTests/http/tests/background_sync/resources/interfaces-worker.js View 1 2 3 4 5 2 chunks +36 lines, -12 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 3 chunks +18 lines, -9 lines 0 comments Download
M Source/core/events/EventTypeNames.in View 1 chunk +1 line, -0 lines 0 comments Download
A Source/modules/background_sync/PeriodicSyncEvent.h View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
A Source/modules/background_sync/PeriodicSyncEvent.cpp View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
A + Source/modules/background_sync/PeriodicSyncEvent.idl View 1 chunk +3 lines, -3 lines 0 comments Download
A + Source/modules/background_sync/PeriodicSyncEventInit.idl View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
A + Source/modules/background_sync/PeriodicSyncManager.h View 2 chunks +11 lines, -10 lines 0 comments Download
A Source/modules/background_sync/PeriodicSyncManager.cpp View 1 2 3 4 5 1 chunk +134 lines, -0 lines 0 comments Download
A Source/modules/background_sync/PeriodicSyncManager.idl View 1 chunk +16 lines, -0 lines 0 comments Download
A Source/modules/background_sync/PeriodicSyncRegistration.h View 1 2 3 1 chunk +62 lines, -0 lines 0 comments Download
A Source/modules/background_sync/PeriodicSyncRegistration.cpp View 1 2 3 4 5 6 7 1 chunk +92 lines, -0 lines 0 comments Download
A Source/modules/background_sync/PeriodicSyncRegistration.idl View 1 chunk +26 lines, -0 lines 0 comments Download
A + Source/modules/background_sync/PeriodicSyncRegistrationOptions.idl View 1 chunk +5 lines, -3 lines 0 comments Download
M Source/modules/background_sync/ServiceWorkerGlobalScopeSync.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/background_sync/ServiceWorkerGlobalScopeSync.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/background_sync/ServiceWorkerRegistrationSync.h View 3 chunks +6 lines, -2 lines 0 comments Download
M Source/modules/background_sync/ServiceWorkerRegistrationSync.cpp View 2 chunks +17 lines, -3 lines 0 comments Download
M Source/modules/background_sync/ServiceWorkerRegistrationSync.idl View 1 chunk +2 lines, -1 line 0 comments Download
M Source/modules/background_sync/SyncCallbacks.cpp View 1 3 chunks +27 lines, -8 lines 0 comments Download
M Source/modules/background_sync/SyncEventInit.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/background_sync/SyncManager.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/background_sync/SyncManager.cpp View 1 2 3 4 5 5 chunks +22 lines, -27 lines 0 comments Download
M Source/modules/background_sync/SyncManager.idl View 1 chunk +10 lines, -4 lines 0 comments Download
M Source/modules/background_sync/SyncRegistration.h View 1 2 3 1 chunk +6 lines, -35 lines 0 comments Download
M Source/modules/background_sync/SyncRegistration.cpp View 1 2 3 4 5 6 7 4 chunks +11 lines, -32 lines 0 comments Download
M Source/modules/background_sync/SyncRegistration.idl View 1 chunk +1 line, -7 lines 0 comments Download
M Source/modules/background_sync/SyncRegistrationOptions.idl View 1 chunk +2 lines, -15 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 6 5 chunks +16 lines, -0 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M public/platform/modules/background_sync/WebSyncProvider.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M public/platform/modules/background_sync/WebSyncRegistration.h View 1 chunk +42 lines, -34 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
iclelland
I'm sorry about the huge patch; there's a lot of duplicated code in here, and ...
5 years, 8 months ago (2015-04-16 18:21:06 UTC) #2
jkarlin
I think this design is fine. https://codereview.chromium.org/1096503002/diff/20001/LayoutTests/http/tests/background_sync/namespaces.html File LayoutTests/http/tests/background_sync/namespaces.html (right): https://codereview.chromium.org/1096503002/diff/20001/LayoutTests/http/tests/background_sync/namespaces.html#newcode5 LayoutTests/http/tests/background_sync/namespaces.html:5: <script src="../resources/testharness.js"></script> I ...
5 years, 8 months ago (2015-04-17 19:04:49 UTC) #3
jkarlin
+cc'd jsbell for the first comment in namespaces.html
5 years, 8 months ago (2015-04-17 19:07:12 UTC) #4
jsbell
https://codereview.chromium.org/1096503002/diff/20001/LayoutTests/http/tests/background_sync/namespaces.html File LayoutTests/http/tests/background_sync/namespaces.html (right): https://codereview.chromium.org/1096503002/diff/20001/LayoutTests/http/tests/background_sync/namespaces.html#newcode5 LayoutTests/http/tests/background_sync/namespaces.html:5: <script src="../resources/testharness.js"></script> On 2015/04/17 19:04:49, jkarlin wrote: > I ...
5 years, 8 months ago (2015-04-17 19:22:04 UTC) #6
iclelland
https://codereview.chromium.org/1096503002/diff/20001/LayoutTests/http/tests/background_sync/namespaces.html File LayoutTests/http/tests/background_sync/namespaces.html (right): https://codereview.chromium.org/1096503002/diff/20001/LayoutTests/http/tests/background_sync/namespaces.html#newcode5 LayoutTests/http/tests/background_sync/namespaces.html:5: <script src="../resources/testharness.js"></script> On 2015/04/17 19:22:04, jsbell wrote: > On ...
5 years, 8 months ago (2015-04-22 14:05:11 UTC) #7
jkarlin
lgtm
5 years, 8 months ago (2015-04-22 16:46:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1096503002/100001
5 years, 8 months ago (2015-04-24 13:33:00 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/32063)
5 years, 8 months ago (2015-04-24 13:40:29 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1096503002/140001
5 years, 8 months ago (2015-04-25 11:32:54 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/32110)
5 years, 8 months ago (2015-04-25 11:40:52 UTC) #18
iclelland
On 2015/04/25 11:40:52, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 8 months ago (2015-04-26 02:14:20 UTC) #19
jochen (gone - plz use gerrit)
*.in files lgtm
5 years, 8 months ago (2015-04-27 19:27:42 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1096503002/140001
5 years, 8 months ago (2015-04-27 20:24:51 UTC) #22
commit-bot: I haz the power
5 years, 8 months ago (2015-04-27 21:44:34 UTC) #23
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194551

Powered by Google App Engine
This is Rietveld 408576698