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

Issue 963683002: Add IDL and initial Blink API for Background Sync (Closed)

Created:
5 years, 9 months ago by iclelland
Modified:
5 years, 9 months ago
CC:
abarth-chromium, blink-reviews, dglazkov+blink, falken, horo+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+serviceworker, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add IDL and initial Blink API for Background Sync This patch adds the interfaces for background sync (https://github.com/slightlyoff/BackgroundSync/blob/master/explainer.md) to the IDL and exposes syncManager on the ServiceWorkerRegistration interface. It includes just enough of the implementation to be able to instantiate SyncRegistration objects and pass them through to the browser code (not included in this patch, except for the header definitions in public/platform/ BUG=449443 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192279

Patch Set 1 #

Patch Set 2 : Update failing layout test #

Total comments: 1

Patch Set 3 : Remembering how ASCII works #

Total comments: 53

Patch Set 4 : Addressing first round style issues #

Total comments: 22

Patch Set 5 : Add 2-way conversion between WebSyncRegistration and SyncRegistrations #

Patch Set 6 : Update for recent IDL changes #

Patch Set 7 : Change attribute name in WebSyncRegistration #

Patch Set 8 : Add remaining IDL attributes #

Patch Set 9 : Addressing review comments #

Patch Set 10 : Rebase against blink/master #

Patch Set 11 : Adding interface tests #

Patch Set 12 : Rebase again. #

Patch Set 13 : Add getRegistration() and getRegistrations() #

Total comments: 2

Patch Set 14 : Add OWNERS for platform/modules/background_sync #

Total comments: 13

Patch Set 15 : Addressing latest review comments #

Patch Set 16 : Pass serviceworkerregistration into browser code #

Patch Set 17 : Rebase! #

Total comments: 6

Patch Set 18 : ...millis suffix; removed unrelated whitespace #

Patch Set 19 : Change millis to Ms; comment on time fields in platform header #

Patch Set 20 : Updating global interface tests #

Patch Set 21 : Add missing serviceWorkerRegistration.syncManager to interface tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+780 lines, -168 lines) Patch
A + LayoutTests/http/tests/background_sync/interfaces.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -11 lines 0 comments Download
A + LayoutTests/http/tests/background_sync/resources/empty_worker.js View 1 2 3 4 5 6 7 8 9 10 0 chunks +-1 lines, --1 lines 0 comments Download
A LayoutTests/http/tests/background_sync/resources/interfaces-worker.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +37 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +17 lines, -0 lines 0 comments Download
A + Source/modules/background_sync/DEPS View 1 chunk +1 line, -1 line 0 comments Download
A Source/modules/background_sync/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
A + Source/modules/background_sync/ServiceWorkerGlobalScopeSync.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -6 lines 0 comments Download
A + Source/modules/background_sync/ServiceWorkerGlobalScopeSync.idl View 1 chunk +3 lines, -3 lines 0 comments Download
A + Source/modules/background_sync/ServiceWorkerRegistrationSync.h View 1 2 3 1 chunk +14 lines, -14 lines 0 comments Download
A + Source/modules/background_sync/ServiceWorkerRegistrationSync.cpp View 1 2 3 1 chunk +18 lines, -18 lines 0 comments Download
A + Source/modules/background_sync/ServiceWorkerRegistrationSync.idl View 1 chunk +4 lines, -3 lines 0 comments Download
A Source/modules/background_sync/SyncCallbacks.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +83 lines, -0 lines 0 comments Download
A Source/modules/background_sync/SyncCallbacks.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +125 lines, -0 lines 0 comments Download
A + Source/modules/background_sync/SyncError.h View 1 2 3 1 chunk +11 lines, -11 lines 0 comments Download
A + Source/modules/background_sync/SyncError.cpp View 1 2 3 1 chunk +9 lines, -9 lines 0 comments Download
A + Source/modules/background_sync/SyncEvent.h View 1 2 3 4 5 6 7 8 2 chunks +19 lines, -19 lines 0 comments Download
A Source/modules/background_sync/SyncEvent.cpp View 1 2 3 4 5 6 7 8 1 chunk +46 lines, -0 lines 0 comments Download
A + Source/modules/background_sync/SyncEvent.idl View 1 chunk +5 lines, -3 lines 0 comments Download
A + Source/modules/background_sync/SyncEventInit.idl View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
A + Source/modules/background_sync/SyncManager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +17 lines, -13 lines 0 comments Download
A + Source/modules/background_sync/SyncManager.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +51 lines, -38 lines 0 comments Download
A Source/modules/background_sync/SyncManager.idl View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +15 lines, -0 lines 0 comments Download
A Source/modules/background_sync/SyncRegistration.h View 1 2 3 4 5 6 7 1 chunk +77 lines, -0 lines 0 comments Download
A Source/modules/background_sync/SyncRegistration.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +90 lines, -0 lines 0 comments Download
A Source/modules/background_sync/SyncRegistration.idl View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
A Source/modules/background_sync/SyncRegistrationOptions.idl View 1 2 3 4 5 6 7 1 chunk +22 lines, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +25 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl View 1 chunk +0 lines, -1 line 0 comments Download
M public/platform/Platform.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -0 lines 0 comments Download
A public/platform/modules/background_sync/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 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 8 9 10 11 12 13 14 15 2 chunks +17 lines, -2 lines 0 comments Download
M public/platform/modules/background_sync/WebSyncRegistration.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +27 lines, -15 lines 0 comments Download

Messages

Total messages: 35 (5 generated)
jkarlin
So exciting! https://codereview.chromium.org/963683002/diff/20001/public/platform/Platform.h File public/platform/Platform.h (right): https://codereview.chromium.org/963683002/diff/20001/public/platform/Platform.h#newcode658 public/platform/Platform.h:658: // navigator.connect -------------------------------------------------- Double vertical space here ...
5 years, 9 months ago (2015-02-27 20:08:14 UTC) #2
jkarlin
+r mvanouwerkerk@ as this is so heavily Push influenced.
5 years, 9 months ago (2015-02-27 20:09:49 UTC) #4
iclelland
https://codereview.chromium.org/963683002/diff/40001/Source/modules/background_sync/OWNERS File Source/modules/background_sync/OWNERS (right): https://codereview.chromium.org/963683002/diff/40001/Source/modules/background_sync/OWNERS#newcode4 Source/modules/background_sync/OWNERS:4: On 2015/02/27 20:08:12, jkarlin wrote: > remove empty line ...
5 years, 9 months ago (2015-03-02 03:51:12 UTC) #5
Michael van Ouwerkerk
https://codereview.chromium.org/963683002/diff/60001/Source/modules/background_sync/OWNERS File Source/modules/background_sync/OWNERS (right): https://codereview.chromium.org/963683002/diff/60001/Source/modules/background_sync/OWNERS#newcode3 Source/modules/background_sync/OWNERS:3: asanka@chrmoium.org nit: alphabetic order https://codereview.chromium.org/963683002/diff/60001/Source/modules/background_sync/ServiceWorkerGlobalScopeSync.idl File Source/modules/background_sync/ServiceWorkerGlobalScopeSync.idl (right): https://codereview.chromium.org/963683002/diff/60001/Source/modules/background_sync/ServiceWorkerGlobalScopeSync.idl#newcode5 ...
5 years, 9 months ago (2015-03-02 14:19:11 UTC) #6
Michael van Ouwerkerk
What is your test plan?
5 years, 9 months ago (2015-03-02 14:19:59 UTC) #7
jkarlin
On 2015/03/02 14:19:59, Michael van Ouwerkerk wrote: > What is your test plan? Same as ...
5 years, 9 months ago (2015-03-03 16:12:51 UTC) #8
Michael van Ouwerkerk
On 2015/03/03 16:12:51, jkarlin wrote: > On 2015/03/02 14:19:59, Michael van Ouwerkerk wrote: > > ...
5 years, 9 months ago (2015-03-03 16:16:47 UTC) #9
iclelland
On 2015/03/03 16:16:47, Michael van Ouwerkerk wrote: > On 2015/03/03 16:12:51, jkarlin wrote: > > ...
5 years, 9 months ago (2015-03-03 16:21:37 UTC) #10
jkarlin
On 2015/03/03 16:16:47, Michael van Ouwerkerk wrote: > On 2015/03/03 16:12:51, jkarlin wrote: > > ...
5 years, 9 months ago (2015-03-03 16:22:55 UTC) #11
iclelland
https://codereview.chromium.org/963683002/diff/60001/Source/modules/background_sync/OWNERS File Source/modules/background_sync/OWNERS (right): https://codereview.chromium.org/963683002/diff/60001/Source/modules/background_sync/OWNERS#newcode3 Source/modules/background_sync/OWNERS:3: asanka@chrmoium.org On 2015/03/02 14:19:11, Michael van Ouwerkerk wrote: > ...
5 years, 9 months ago (2015-03-05 04:32:49 UTC) #12
Michael van Ouwerkerk
lgtm (apologies for the delay)
5 years, 9 months ago (2015-03-10 16:58:59 UTC) #13
iclelland
On 2015/03/10 16:58:59, Michael van Ouwerkerk wrote: > lgtm (apologies for the delay) Thanks, Michael ...
5 years, 9 months ago (2015-03-10 18:49:12 UTC) #14
iclelland
On 2015/03/10 18:49:12, iclelland wrote: > On 2015/03/10 16:58:59, Michael van Ouwerkerk wrote: > > ...
5 years, 9 months ago (2015-03-10 19:06:19 UTC) #15
Michael van Ouwerkerk
still looks good to me https://codereview.chromium.org/963683002/diff/240001/Source/modules/background_sync/SyncManager.cpp File Source/modules/background_sync/SyncManager.cpp (right): https://codereview.chromium.org/963683002/diff/240001/Source/modules/background_sync/SyncManager.cpp#newcode88 Source/modules/background_sync/SyncManager.cpp:88: ScriptPromise SyncManager::getRegistrations(blink::ScriptState* scriptState) here ...
5 years, 9 months ago (2015-03-10 19:29:11 UTC) #16
Michael van Ouwerkerk
On 2015/03/10 19:06:19, iclelland wrote: > On 2015/03/10 18:49:12, iclelland wrote: > > On 2015/03/10 ...
5 years, 9 months ago (2015-03-10 19:30:16 UTC) #17
iclelland
On 2015/03/10 19:30:16, Michael van Ouwerkerk wrote: > On 2015/03/10 19:06:19, iclelland wrote: > > ...
5 years, 9 months ago (2015-03-10 19:36:14 UTC) #18
iclelland
On 2015/03/10 19:36:14, iclelland wrote: > On 2015/03/10 19:30:16, Michael van Ouwerkerk wrote: > > ...
5 years, 9 months ago (2015-03-10 21:12:21 UTC) #20
michaeln
r/s lgtm
5 years, 9 months ago (2015-03-11 20:54:31 UTC) #21
jochen (gone - plz use gerrit)
just from looking at the implementation, it's rather difficult to figure out what the change ...
5 years, 9 months ago (2015-03-13 14:39:03 UTC) #22
jkarlin
lgtm with nit about OWNERS file. Sorry for the flow response, was on vacation. https://codereview.chromium.org/963683002/diff/260001/Source/modules/background_sync/SyncManager.cpp ...
5 years, 9 months ago (2015-03-13 18:51:39 UTC) #23
jkarlin
On 2015/03/13 18:51:39, jkarlin wrote: > lgtm with nit about OWNERS file. Sorry for the ...
5 years, 9 months ago (2015-03-13 18:52:00 UTC) #24
iclelland
On 2015/03/13 18:52:00, jkarlin wrote: > On 2015/03/13 18:51:39, jkarlin wrote: > > lgtm with ...
5 years, 9 months ago (2015-03-14 03:09:53 UTC) #25
jkarlin
https://codereview.chromium.org/963683002/diff/260001/Source/modules/background_sync/SyncManager.cpp File Source/modules/background_sync/SyncManager.cpp (right): https://codereview.chromium.org/963683002/diff/260001/Source/modules/background_sync/SyncManager.cpp#newcode28 Source/modules/background_sync/SyncManager.cpp:28: unsigned long kMinAllowablePeriod = 60000; On 2015/03/13 18:51:39, jkarlin ...
5 years, 9 months ago (2015-03-15 12:43:10 UTC) #26
iclelland
Updated for review comments. Also added one more patch -- The service worker registration object ...
5 years, 9 months ago (2015-03-16 13:09:40 UTC) #27
jochen (gone - plz use gerrit)
lgtm with nits addressed https://codereview.chromium.org/963683002/diff/320001/public/platform/Platform.h File public/platform/Platform.h (right): https://codereview.chromium.org/963683002/diff/320001/public/platform/Platform.h#newcode665 public/platform/Platform.h:665: unrelated https://codereview.chromium.org/963683002/diff/320001/public/platform/modules/background_sync/WebSyncRegistration.h File public/platform/modules/background_sync/WebSyncRegistration.h (right): ...
5 years, 9 months ago (2015-03-17 12:25:35 UTC) #28
iclelland
https://codereview.chromium.org/963683002/diff/320001/public/platform/Platform.h File public/platform/Platform.h (right): https://codereview.chromium.org/963683002/diff/320001/public/platform/Platform.h#newcode665 public/platform/Platform.h:665: On 2015/03/17 12:25:35, jochen (slow) wrote: > unrelated Done. ...
5 years, 9 months ago (2015-03-19 13:13:43 UTC) #29
jochen (gone - plz use gerrit)
On 2015/03/19 at 13:13:43, iclelland wrote: > https://codereview.chromium.org/963683002/diff/320001/public/platform/Platform.h > File public/platform/Platform.h (right): > > https://codereview.chromium.org/963683002/diff/320001/public/platform/Platform.h#newcode665 ...
5 years, 9 months ago (2015-03-19 13:24:24 UTC) #30
iclelland
On 2015/03/19 13:24:24, jochen (slow) wrote: > On 2015/03/19 at 13:13:43, iclelland wrote: > > ...
5 years, 9 months ago (2015-03-19 14:37:14 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/963683002/400001
5 years, 9 months ago (2015-03-20 17:59:24 UTC) #34
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 19:28:08 UTC) #35
Message was sent while issue was closed.
Committed patchset #21 (id:400001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192279

Powered by Google App Engine
This is Rietveld 408576698