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

Issue 2056983004: [CacheStorage] Give ownership of all CacheStorageCaches to CacheStorage (Closed)

Created:
4 years, 6 months ago by jkarlin
Modified:
4 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jkarlin+watch_chromium.org, nhiroki
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CacheStorage] Give ownership of all CacheStorageCaches to CacheStorage This Cl removes ref counting on CacheStorageCache. Caches are now owned by CacheStorage. CacheStorage hands out handles to the cache to clients. The handles are ref counted and CacheStorage will delete the cache in its own destructor or when the last cache handle is deleted. BUG=617683 Committed: https://crrev.com/fdde54f517cf14382dbeb4217a9e647563a2e671 Cr-Commit-Position: refs/heads/master@{#401305}

Patch Set 1 #

Patch Set 2 : Fix a test #

Patch Set 3 : Cleanup #

Patch Set 4 : Self review #

Total comments: 10

Patch Set 5 : Addressed comments from PS4 #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+578 lines, -289 lines) Patch
M content/browser/cache_storage/cache_storage.h View 1 2 3 4 11 chunks +53 lines, -25 lines 0 comments Download
M content/browser/cache_storage/cache_storage.cc View 1 2 3 4 24 chunks +173 lines, -82 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache.h View 1 2 3 4 5 8 chunks +23 lines, -11 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache.cc View 1 2 3 4 5 7 chunks +46 lines, -29 lines 0 comments Download
A content/browser/cache_storage/cache_storage_cache_handle.h View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
A content/browser/cache_storage/cache_storage_cache_handle.cc View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache_unittest.cc View 1 2 3 4 5 5 chunks +14 lines, -7 lines 0 comments Download
M content/browser/cache_storage/cache_storage_dispatcher_host.h View 1 2 4 chunks +20 lines, -17 lines 0 comments Download
M content/browser/cache_storage/cache_storage_dispatcher_host.cc View 1 2 13 chunks +34 lines, -23 lines 0 comments Download
M content/browser/cache_storage/cache_storage_manager_unittest.cc View 1 2 3 23 chunks +94 lines, -65 lines 0 comments Download
M content/browser/cache_storage/cache_storage_unittest.cc View 1 2 3 3 chunks +18 lines, -11 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 5 2 chunks +8 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 3 chunks +12 lines, -5 lines 0 comments Download
M content/browser/service_worker/service_worker_browsertest.cc View 1 2 3 4 5 2 chunks +12 lines, -7 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (8 generated)
jkarlin
horo: PTAL at everything. Thanks!
4 years, 6 months ago (2016-06-11 01:09:31 UTC) #3
jkarlin
Whoops, that wasn't the right assignment. Let me try again: nhiroki@ PTAL at everything. horo@ ...
4 years, 6 months ago (2016-06-11 01:10:47 UTC) #5
nhiroki
lgtm https://codereview.chromium.org/2056983004/diff/60001/content/browser/cache_storage/cache_storage.h File content/browser/cache_storage/cache_storage.h (right): https://codereview.chromium.org/2056983004/diff/60001/content/browser/cache_storage/cache_storage.h#newcode129 content/browser/cache_storage/cache_storage.h:129: // Return a CacheStorageCacheHandle for the given name ...
4 years, 6 months ago (2016-06-14 05:30:25 UTC) #6
horo
https://codereview.chromium.org/2056983004/diff/60001/content/browser/cache_storage/cache_storage.cc File content/browser/cache_storage/cache_storage.cc (right): https://codereview.chromium.org/2056983004/diff/60001/content/browser/cache_storage/cache_storage.cc#newcode931 content/browser/cache_storage/cache_storage.cc:931: void CacheStorage::AddCacheHandleRef(CacheStorageCache* cache) { Add DCHECK_CURRENTLY_ON(). https://codereview.chromium.org/2056983004/diff/60001/content/browser/cache_storage/cache_storage.cc#newcode941 content/browser/cache_storage/cache_storage.cc:941: void ...
4 years, 6 months ago (2016-06-14 06:31:13 UTC) #7
jkarlin
Thanks. PTAL. jochen@ PTAL at content/browser/render_host/ for owners. https://codereview.chromium.org/2056983004/diff/60001/content/browser/cache_storage/cache_storage.cc File content/browser/cache_storage/cache_storage.cc (right): https://codereview.chromium.org/2056983004/diff/60001/content/browser/cache_storage/cache_storage.cc#newcode931 content/browser/cache_storage/cache_storage.cc:931: void ...
4 years, 6 months ago (2016-06-14 06:41:09 UTC) #9
horo
lgtm
4 years, 6 months ago (2016-06-14 07:27:21 UTC) #10
jkarlin
jochen@ PTAL, thanks!
4 years, 6 months ago (2016-06-15 19:13:59 UTC) #11
jochen (gone - plz use gerrit)
lgtm
4 years, 6 months ago (2016-06-21 07:49:54 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2056983004/100001
4 years, 6 months ago (2016-06-22 16:43:28 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-22 16:49:29 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-06-22 16:52:02 UTC) #19
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/fdde54f517cf14382dbeb4217a9e647563a2e671
Cr-Commit-Position: refs/heads/master@{#401305}

Powered by Google App Engine
This is Rietveld 408576698