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

Issue 380923002: Introducing the WebServiceWorkerCacheStorage. (Closed)

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

Description

Introducing the WebServiceWorkerCacheStorage. Carries the CacheStorage API through to the chrome renderer side. For now, just returns cache_ids as raw ints to the JS, for lack of an object representing the Cache. R=jkarlin@chromium.org,falken@chromium.org,michaeln@chromium.org,jochen@chromium.org BUG=392621

Patch Set 1 #

Patch Set 2 : narrower #

Patch Set 3 : closer #

Patch Set 4 : nearly ready #

Patch Set 5 : rebase and absorb vector fix #

Patch Set 6 : builds #

Patch Set 7 : rebase only #

Total comments: 4

Patch Set 8 : api fixes #

Total comments: 6

Patch Set 9 : runs! #

Patch Set 10 : remediate to reviews #

Patch Set 11 : rebase to trunk #

Total comments: 12

Patch Set 12 : split out cache errors #

Patch Set 13 : remediation to michaeln's review #

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

Messages

Total messages: 17 (0 generated)
gavinp
falken: can you take a first look through this? We can add API reviewers after ...
6 years, 5 months ago (2014-07-22 09:03:39 UTC) #1
gavinp
Note: this is downstream of https://codereview.chromium.org/400493005/ , without that patched in you won't link.
6 years, 5 months ago (2014-07-22 09:04:17 UTC) #2
falken
LGTM
6 years, 5 months ago (2014-07-23 04:55:57 UTC) #3
falken
oops forgot comments https://codereview.chromium.org/380923002/diff/120001/public/platform/WebServiceWorkerCacheStorage.h File public/platform/WebServiceWorkerCacheStorage.h (right): https://codereview.chromium.org/380923002/diff/120001/public/platform/WebServiceWorkerCacheStorage.h#newcode13 public/platform/WebServiceWorkerCacheStorage.h:13: #include <vector> Seems <string> and <vector> ...
6 years, 5 months ago (2014-07-23 04:56:11 UTC) #4
jkarlin
https://codereview.chromium.org/380923002/diff/140001/public/platform/WebServiceWorkerCacheStorage.h File public/platform/WebServiceWorkerCacheStorage.h (right): https://codereview.chromium.org/380923002/diff/140001/public/platform/WebServiceWorkerCacheStorage.h#newcode22 public/platform/WebServiceWorkerCacheStorage.h:22: enum ErrorReason { Please add 'CacheStorageErrorNoError' as the first ...
6 years, 5 months ago (2014-07-23 12:03:32 UTC) #5
michaeln
https://codereview.chromium.org/380923002/diff/140001/public/platform/WebServiceWorker.h File public/platform/WebServiceWorker.h (right): https://codereview.chromium.org/380923002/diff/140001/public/platform/WebServiceWorker.h#newcode53 public/platform/WebServiceWorker.h:53: virtual WebServiceWorkerCacheStorage* cacheStorage() { return 0; } this method ...
6 years, 5 months ago (2014-07-23 21:21:08 UTC) #6
jkarlin
https://codereview.chromium.org/380923002/diff/140001/public/platform/WebServiceWorkerCacheStorage.h File public/platform/WebServiceWorkerCacheStorage.h (right): https://codereview.chromium.org/380923002/diff/140001/public/platform/WebServiceWorkerCacheStorage.h#newcode26 public/platform/WebServiceWorkerCacheStorage.h:26: CacheStorageErrorLast = CacheStorageErrorExists Please append CacheStorageErrorStorage to the enum ...
6 years, 5 months ago (2014-07-24 13:20:16 UTC) #7
gavinp
https://codereview.chromium.org/380923002/diff/120001/public/platform/WebServiceWorkerCacheStorage.h File public/platform/WebServiceWorkerCacheStorage.h (right): https://codereview.chromium.org/380923002/diff/120001/public/platform/WebServiceWorkerCacheStorage.h#newcode13 public/platform/WebServiceWorkerCacheStorage.h:13: #include <vector> On 2014/07/23 04:56:10, falken wrote: > Seems ...
6 years, 5 months ago (2014-07-25 07:44:03 UTC) #8
gavinp
+abarth for API review Thanks everyone for your comments. I've remediated and brought this up ...
6 years, 5 months ago (2014-07-25 07:45:00 UTC) #9
michaeln
lgtm, some drive-by-comments below https://codereview.chromium.org/380923002/diff/200001/Source/modules/serviceworkers/CacheStorage.cpp File Source/modules/serviceworkers/CacheStorage.cpp (right): https://codereview.chromium.org/380923002/diff/200001/Source/modules/serviceworkers/CacheStorage.cpp#newcode100 Source/modules/serviceworkers/CacheStorage.cpp:100: PassRefPtr<CacheStorage> CacheStorage::create(blink::WebServiceWorkerCacheStorage* webCacheStorage) shouldn't need ...
6 years, 5 months ago (2014-07-25 20:25:19 UTC) #10
gavinp
Thanks for the review, Michael. Could you look at my re-wording of the comment you ...
6 years, 4 months ago (2014-07-28 02:10:17 UTC) #11
gavinp
Naturally, the spec has evolved in the meantime. To avoid churn on the Chrome/content interface, ...
6 years, 4 months ago (2014-07-28 05:34:59 UTC) #12
michaeln
The code comment was good before and still is after. I really wasn't asking for ...
6 years, 4 months ago (2014-07-28 22:35:26 UTC) #13
gavinp
+jochen as you have more context -abarth (please feel free to drive by!!) Jochen, This ...
6 years, 4 months ago (2014-07-29 02:03:22 UTC) #14
jochen (gone - plz use gerrit)
On 2014/07/29 at 02:03:22, gavinp wrote: > +jochen as you have more context > > ...
6 years, 4 months ago (2014-07-29 11:45:48 UTC) #15
gavinp
On 2014/07/29 11:45:48, jochen wrote: > On 2014/07/29 at 02:03:22, gavinp wrote: > > +jochen ...
6 years, 4 months ago (2014-07-30 01:36:38 UTC) #16
gavinp
6 years, 4 months ago (2014-07-30 01:41:43 UTC) #17
On 2014/07/30 01:36:38, gavinp wrote:
> On 2014/07/29 11:45:48, jochen wrote:
> > On 2014/07/29 at 02:03:22, gavinp wrote:
> > > +jochen as you have more context
> > > 
> > > -abarth (please feel free to drive by!!)
> > > 
> > > Jochen,
> > > 
> > > This introduces public API changes which actually are going to be
> immediately
> > changed by https://codereview.chromium.org/424643002/ , a downstream CL you
> are
> > also on. Is this good practice or should we somehow merge / split apart the
> two
> > components of these CLs?
> > 
> > uh, hum.
> > 
> > yeah, adding an API to immediately rename it sounds like a bad idea.
> > 
> > can you somehow consolidate all those changes?
> 
> Sure. The downstream rename also includes API updates that I didn't want to
put
> in the same CL, but I guess I'll make the monster.

I'm closing this issue in advance of uploading the monster.

Powered by Google App Engine
This is Rietveld 408576698