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

Issue 379303002: Content blink::WebServiceWorkerCacheStorage implementation. (Closed)

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

Description

Content blink::WebServiceWorkerCacheStorage implementation. This new object is implemented in content in both the renderer and browser side. The CacheStorage API methods now pass in to the browser process in the UI thread, where all API calls are failed as not implemented. R=jkarlin@chromium.org,falken@chromium.org,jochen@chromium.org,jschuh@chromium.org BUG=392621 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288413

Patch Set 1 #

Patch Set 2 : closer #

Patch Set 3 : more dispatching #

Patch Set 4 : compiles, crashes on any use #

Patch Set 5 : fix build, still crashes #

Patch Set 6 : crash on response #

Patch Set 7 : rebase #

Patch Set 8 : better style #

Patch Set 9 : meets presubmit! #

Total comments: 1

Patch Set 10 : narrower #

Patch Set 11 : self review for style #

Total comments: 10

Patch Set 12 : more style fixes #

Patch Set 13 : remediate to falken review #

Patch Set 14 : upstream API changes... #

Total comments: 4

Patch Set 15 : rebase to trunk #

Patch Set 16 : rebase and rename #

Total comments: 8

Patch Set 17 : remediation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+522 lines, -10 lines) Patch
M content/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
A content/browser/service_worker/service_worker_cache_listener.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +44 lines, -0 lines 0 comments Download
A content/browser/service_worker/service_worker_cache_listener.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +84 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +60 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.h View 1 14 15 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 14 15 1 chunk +5 lines, -0 lines 0 comments Download
A content/renderer/service_worker/service_worker_cache_storage_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +85 lines, -0 lines 0 comments Download
A content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +207 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +14 lines, -5 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 14 15 4 chunks +12 lines, -5 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
gavinp
It turns out it's an #include violation for the blink header to be included on ...
6 years, 5 months ago (2014-07-25 08:00:01 UTC) #1
gavinp
falken, jochen, jkarlin, I think this is ready for review now. Please take a look. ...
6 years, 4 months ago (2014-07-28 02:46:09 UTC) #2
gavinp
+jschuh for security review of IPC.
6 years, 4 months ago (2014-07-28 04:00:16 UTC) #3
falken
lgtm https://codereview.chromium.org/379303002/diff/190001/content/browser/service_worker/service_worker_cache_listener.cc File content/browser/service_worker/service_worker_cache_listener.cc (right): https://codereview.chromium.org/379303002/diff/190001/content/browser/service_worker/service_worker_cache_listener.cc#newcode47 content/browser/service_worker/service_worker_cache_listener.cc:47: nit: extra newline https://codereview.chromium.org/379303002/diff/190001/content/renderer/service_worker/embedded_worker_context_client.cc File content/renderer/service_worker/embedded_worker_context_client.cc (right): https://codereview.chromium.org/379303002/diff/190001/content/renderer/service_worker/embedded_worker_context_client.cc#newcode127 ...
6 years, 4 months ago (2014-07-28 04:48:59 UTC) #4
gavinp
Thanks falken https://codereview.chromium.org/379303002/diff/190001/content/browser/service_worker/service_worker_cache_listener.cc File content/browser/service_worker/service_worker_cache_listener.cc (right): https://codereview.chromium.org/379303002/diff/190001/content/browser/service_worker/service_worker_cache_listener.cc#newcode47 content/browser/service_worker/service_worker_cache_listener.cc:47: On 2014/07/28 04:48:58, falken wrote: > nit: ...
6 years, 4 months ago (2014-07-28 04:55:27 UTC) #5
gavinp
This CL is now downstream of https://codereview.chromium.org/424643002/ , the rename for API conformance with spec ...
6 years, 4 months ago (2014-07-28 07:22:59 UTC) #6
jochen (gone - plz use gerrit)
it would be nice to have unit tests for the listener. It currently doesn't do ...
6 years, 4 months ago (2014-07-28 08:53:08 UTC) #7
jochen (gone - plz use gerrit)
https://codereview.chromium.org/379303002/diff/250001/content/browser/service_worker/service_worker_stores_listener.h File content/browser/service_worker/service_worker_stores_listener.h (right): https://codereview.chromium.org/379303002/diff/250001/content/browser/service_worker/service_worker_stores_listener.h#newcode40 content/browser/service_worker/service_worker_stores_listener.h:40: }; disallow copy/assign https://codereview.chromium.org/379303002/diff/250001/content/renderer/service_worker/service_worker_fetch_stores_dispatcher.h File content/renderer/service_worker/service_worker_fetch_stores_dispatcher.h (right): https://codereview.chromium.org/379303002/diff/250001/content/renderer/service_worker/service_worker_fetch_stores_dispatcher.h#newcode27 content/renderer/service_worker/service_worker_fetch_stores_dispatcher.h:27: ...
6 years, 4 months ago (2014-07-28 11:15:51 UTC) #8
michaeln
lgtm2, great to see the cache coming alive!
6 years, 4 months ago (2014-07-28 22:43:31 UTC) #9
jschuh
This is just stubs, so rubberstamp lgtm for IPC security. But, you'll need a security ...
6 years, 4 months ago (2014-07-29 19:43:23 UTC) #10
jochen (gone - plz use gerrit)
do you want another review for this as well?
6 years, 4 months ago (2014-08-05 08:58:46 UTC) #11
gavinp
On 2014/08/05 08:58:46, jochen wrote: > do you want another review for this as well? ...
6 years, 4 months ago (2014-08-05 09:06:47 UTC) #12
jochen (gone - plz use gerrit)
https://codereview.chromium.org/379303002/diff/290001/content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc File content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc (right): https://codereview.chromium.org/379303002/diff/290001/content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc#newcode18 content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc:18: ServiceWorkerCacheStorageDispatcher::~ServiceWorkerCacheStorageDispatcher() { } what happens with callbacks that still ...
6 years, 4 months ago (2014-08-05 09:16:42 UTC) #13
gavinp
Thanks for the review jochen. PTAL, how's this now? https://codereview.chromium.org/379303002/diff/290001/content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc File content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc (right): https://codereview.chromium.org/379303002/diff/290001/content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc#newcode18 content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc:18: ...
6 years, 4 months ago (2014-08-05 23:51:07 UTC) #14
jochen (gone - plz use gerrit)
lgtm given that either falken or dominicc are happy with this
6 years, 4 months ago (2014-08-06 15:41:45 UTC) #15
falken
On 2014/08/06 15:41:45, jochen (slow - soon OOO) wrote: > lgtm given that either falken ...
6 years, 4 months ago (2014-08-07 03:33:31 UTC) #16
gavinp
The CQ bit was checked by gavinp@chromium.org
6 years, 4 months ago (2014-08-08 17:12:30 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/379303002/310001
6 years, 4 months ago (2014-08-08 17:14:45 UTC) #18
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 19:25:00 UTC) #19
Message was sent while issue was closed.
Change committed as 288413

Powered by Google App Engine
This is Rietveld 408576698