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

Issue 503823002: Creates CacheContext for ServiceWorkerCacheStorage (Closed)

Created:
6 years, 4 months ago by jkarlin
Modified:
6 years, 3 months ago
Reviewers:
falken
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, kinuko+serviceworker, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Creates CacheContext for ServiceWorkerCacheStorage. Creates CacheContext which the CacheStorage uses to keep track of Cache metadata rather than sticking it in the ServiceWorkerCache where it doesn't belong. The CacheContext will be used in a downstream CL to keep reference count information for each cache. This CL also changes the CacheMap from an IDMap to a std::map with our own id counting. This lets us change to int64 from int32 as well as helps the transition to reference counting the caches. Some other upcoming CLs affecting CacheStorage: * Reference count CacheContext so that the deletion of javascript objects can delete the ServiceWorkerCache * Make the callbacks in ServiceWorkerCacheStorage unnamed functions that don't require weak pointers. * Change the CacheID to int64. BUG=392621 Committed: https://crrev.com/098fdfb498f69caee3c83b2f8ee21b085f758731 Cr-Commit-Position: refs/heads/master@{#291906}

Patch Set 1 #

Patch Set 2 : New test and memory fix #

Patch Set 3 : Nits and comments #

Patch Set 4 : Rebase #

Total comments: 14

Patch Set 5 : Rebase #

Patch Set 6 : Addresses comments from PS4 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -83 lines) Patch
M content/browser/service_worker/service_worker_cache.h View 1 2 3 4 2 chunks +0 lines, -9 lines 0 comments Download
M content/browser/service_worker/service_worker_cache.cc View 1 2 3 4 2 chunks +3 lines, -8 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_listener.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage.h View 1 2 3 4 5 7 chunks +21 lines, -8 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage.cc View 1 2 3 4 5 22 chunks +79 lines, -51 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage_manager_unittest.cc View 1 2 3 4 5 4 chunks +13 lines, -5 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_unittest.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jkarlin
jkarlin@chromium.org changed reviewers: + falken@chromium.org
6 years, 4 months ago (2014-08-25 19:00:02 UTC) #1
jkarlin
falken: Please review everything. Thanks!
6 years, 4 months ago (2014-08-25 19:00:02 UTC) #2
falken
lgtm with nits nit: I'd add "Service Worker" somewhere in the first line of the ...
6 years, 4 months ago (2014-08-26 06:31:33 UTC) #3
jkarlin
https://codereview.chromium.org/503823002/diff/60001/content/browser/service_worker/service_worker_cache_storage.cc File content/browser/service_worker/service_worker_cache_storage.cc (right): https://codereview.chromium.org/503823002/diff/60001/content/browser/service_worker/service_worker_cache_storage.cc#newcode27 content/browser/service_worker/service_worker_cache_storage.cc:27: // TODO(jkarlin): Add reference counting. On 2014/08/26 06:31:32, falken ...
6 years, 3 months ago (2014-08-26 12:03:10 UTC) #4
jkarlin
The CQ bit was checked by jkarlin@chromium.org
6 years, 3 months ago (2014-08-26 12:16:13 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jkarlin@chromium.org/503823002/100001
6 years, 3 months ago (2014-08-26 12:17:13 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel_swarming on tryserver.chromium.win ...
6 years, 3 months ago (2014-08-26 14:49:40 UTC) #7
commit-bot: I haz the power
Committed patchset #6 (100001) as 91ae1291b44e34443bec85577b923ba5c40ac40c
6 years, 3 months ago (2014-08-26 15:30:32 UTC) #8
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:42:55 UTC) #9
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/098fdfb498f69caee3c83b2f8ee21b085f758731
Cr-Commit-Position: refs/heads/master@{#291906}

Powered by Google App Engine
This is Rietveld 408576698