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

Issue 424643002: Introducing the WebServiceWorkerCacheStorage (Closed)

Created:
6 years, 4 months ago by gavinp
Modified:
6 years, 4 months ago
CC:
abarth-chromium, alecflett+watch_chromium.org, blink-reviews, dglazkov+blink, falken, horo+watch_chromium.org, jamesr, jsbell+serviceworker_chromium.org, kinuko+serviceworker, michaeln, nhiroki, serviceworker-reviews, tzik
Project:
blink
Visibility:
Public.

Description

Introducing the WebServiceWorkerCacheStorage A new WebServiceWorkerCacheStorage object is introduced for embedders to implement the CacheStorage API. While we have been developing ServiceWorker's CacheStorage API, the underlying API has changed, and that's updated here as well. See https://github.com/slightlyoff/ServiceWorker/issues/372 for a discussion of the changes and motivations, and the spec at https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache-storage is up to date as of writing. R=falken@chromium.org,abarth@chromium.org,jkarlin@chromium.org,jochen@chromium.org BUG=392621 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179676

Patch Set 1 #

Patch Set 2 : with renames #

Patch Set 3 : bit more API changes #

Patch Set 4 : one more variable #

Patch Set 5 : combine with prior CL #

Total comments: 4

Patch Set 6 : rebase to trunk #

Patch Set 7 : rebase and rename back to cachestorage #

Patch Set 8 : one API change #

Patch Set 9 : remediate to falken review #

Total comments: 8

Patch Set 10 : remediate to jochen #

Patch Set 11 : also fix compile #

Patch Set 12 : parameter naming #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -34 lines) Patch
D Source/modules/serviceworkers/CacheStorage.h View 1 2 3 4 5 6 1 chunk +10 lines, -7 lines 0 comments Download
D Source/modules/serviceworkers/CacheStorage.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +114 lines, -13 lines 0 comments Download
D Source/modules/serviceworkers/CacheStorage.idl View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -6 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScope.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeClientImpl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeClientImpl.cpp View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M public/platform/WebCallbacks.h View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
A public/platform/WebServiceWorkerCacheError.h View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download
A public/platform/WebServiceWorkerCacheStorage.h View 1 2 3 4 5 6 7 8 9 1 chunk +40 lines, -0 lines 0 comments Download
M public/web/WebServiceWorkerContextClient.h View 1 2 3 4 5 6 3 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 33 (0 generated)
gavinp
falken, abarth: PTAL. This updates us to the latest revision of the spec. No content ...
6 years, 4 months ago (2014-07-28 06:29:30 UTC) #1
gavinp
(And, hah, that rename detection got a bit funny on WebServiceWorkerFetchStoresError, sowwy about that)
6 years, 4 months ago (2014-07-28 06:30:09 UTC) #2
gavinp
(this CL is downstream of https://codereview.chromium.org/380923002/ , and upstream of https://codereview.chromium.org/379303002/ )
6 years, 4 months ago (2014-07-28 06:31:04 UTC) #3
falken
lgtm to track the spec, though the naming may still be in flux
6 years, 4 months ago (2014-07-29 01:26:38 UTC) #4
gavinp
+jochen (who has more context SW) -abarth (who is still more than welcome to drive ...
6 years, 4 months ago (2014-07-29 02:04:34 UTC) #5
jochen (gone - plz use gerrit)
lgtm
6 years, 4 months ago (2014-07-29 11:44:29 UTC) #6
gavinp
On 2014/07/29 11:44:29, jochen wrote: > lgtm falken: sorry to be repetitive, but could you ...
6 years, 4 months ago (2014-07-30 01:54:02 UTC) #7
falken
lgtm https://codereview.chromium.org/424643002/diff/80001/Source/modules/serviceworkers/FetchStores.cpp File Source/modules/serviceworkers/FetchStores.cpp (right): https://codereview.chromium.org/424643002/diff/80001/Source/modules/serviceworkers/FetchStores.cpp#newcode19 Source/modules/serviceworkers/FetchStores.cpp:19: // TODO: Construct correct DOM error objects rather ...
6 years, 4 months ago (2014-07-30 02:14:09 UTC) #8
gavinp
OK, updated with the rename. jochen: I'm begging you, please review this. The downstream CLs ...
6 years, 4 months ago (2014-08-05 08:09:12 UTC) #9
jochen (gone - plz use gerrit)
lgtm with nits https://codereview.chromium.org/424643002/diff/160001/Source/modules/serviceworkers/CacheStorage.cpp File Source/modules/serviceworkers/CacheStorage.cpp (right): https://codereview.chromium.org/424643002/diff/160001/Source/modules/serviceworkers/CacheStorage.cpp#newcode34 Source/modules/serviceworkers/CacheStorage.cpp:34: public: wtf_make_noncopyable https://codereview.chromium.org/424643002/diff/160001/Source/modules/serviceworkers/CacheStorage.cpp#newcode35 Source/modules/serviceworkers/CacheStorage.cpp:35: CacheStorageCallbacks(PassRefPtr<ScriptPromiseResolver> resolver) ...
6 years, 4 months ago (2014-08-05 08:51:57 UTC) #10
gavinp
Thanks for the review!! https://codereview.chromium.org/424643002/diff/160001/Source/modules/serviceworkers/CacheStorage.cpp File Source/modules/serviceworkers/CacheStorage.cpp (right): https://codereview.chromium.org/424643002/diff/160001/Source/modules/serviceworkers/CacheStorage.cpp#newcode34 Source/modules/serviceworkers/CacheStorage.cpp:34: public: On 2014/08/05 08:51:56, jochen ...
6 years, 4 months ago (2014-08-05 09:09:23 UTC) #11
gavinp
The CQ bit was checked by gavinp@chromium.org
6 years, 4 months ago (2014-08-05 09:09:45 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/424643002/200001
6 years, 4 months ago (2014-08-05 09:10:59 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-05 13:35:03 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-05 14:57:52 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/20942)
6 years, 4 months ago (2014-08-05 14:57:53 UTC) #16
gavinp
The CQ bit was checked by gavinp@chromium.org
6 years, 4 months ago (2014-08-05 23:20:55 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/424643002/200001
6 years, 4 months ago (2014-08-05 23:23:34 UTC) #18
gavinp
The CQ bit was checked by gavinp@chromium.org
6 years, 4 months ago (2014-08-06 02:04:38 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/424643002/220001
6 years, 4 months ago (2014-08-06 02:05:27 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-06 05:19:13 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-06 05:25:58 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/19234)
6 years, 4 months ago (2014-08-06 05:25:59 UTC) #23
gavinp
The CQ bit was checked by gavinp@chromium.org
6 years, 4 months ago (2014-08-06 05:40:31 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/424643002/220001
6 years, 4 months ago (2014-08-06 05:40:56 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-06 05:49:07 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-06 05:56:44 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/19253)
6 years, 4 months ago (2014-08-06 05:56:45 UTC) #28
gavinp
On 2014/08/06 05:56:45, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 4 months ago (2014-08-07 01:50:58 UTC) #29
gavinp
The CQ bit was checked by gavinp@chromium.org
6 years, 4 months ago (2014-08-07 01:51:06 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/424643002/220001
6 years, 4 months ago (2014-08-07 01:51:40 UTC) #31
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-07 02:28:12 UTC) #32
commit-bot: I haz the power
6 years, 4 months ago (2014-08-07 03:22:36 UTC) #33
Message was sent while issue was closed.
Change committed as 179676

Powered by Google App Engine
This is Rietveld 408576698