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

Issue 545533002: Move ServiceWorkerCache backend creation to a lazy init function. (Closed)

Created:
6 years, 3 months ago by jkarlin
Modified:
6 years, 3 months ago
Reviewers:
michaeln, michaeln1
CC:
chromium-reviews, 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@no_pointers_keys
Project:
chromium
Visibility:
Public.

Description

Move ServiceWorkerCache backend creation to a lazy init function. Previously the ServiceWorkerCacheStorage called ServiceWorkerCache::CreateBackend on Get() and Create(). Now the ServiceWorkerCache does it itself lazily. This is simpler for the ServiceWorkerCache's caller and should improve performance as backends are created only when needed. This makes the downstream refcounting CL simpler. Related CLs: 1. https://crrev.com/542703002: Change ownership of the parameters to ServiceWorkerCache:: Put and Match. * 2. https://crrev.com/545533002: Move ServiceWorkerCache backend creation to a lazy init function. 3. https://crrev.com/548533002: Make ServiceWorkerCacheStorage::CacheLoader::LoadCache synchronous 4. https://crrev.com/549493002: Expose ServiceWorkerCache objects to ServiceWorkerCacheStorageManager clients. BUG=392621 Committed: https://crrev.com/655e378c7d9d07b3937967c428fd51353e154d53 Cr-Commit-Position: refs/heads/master@{#294372}

Patch Set 1 #

Patch Set 2 : Nits #

Total comments: 2

Patch Set 3 : Rebase #

Patch Set 4 : Hold onto blob data handle #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -120 lines) Patch
M content/browser/service_worker/service_worker_cache.h View 1 2 3 4 chunks +16 lines, -8 lines 0 comments Download
M content/browser/service_worker/service_worker_cache.cc View 1 2 3 4 7 chunks +133 lines, -63 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage.cc View 1 2 3 4 3 chunks +3 lines, -33 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_unittest.cc View 1 2 3 4 3 chunks +1 line, -11 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
jkarlin
Please take a look at everything, thanks!
6 years, 3 months ago (2014-09-05 16:09:17 UTC) #2
michaeln1
lgtm, nice cleanup! https://codereview.chromium.org/545533002/diff/20001/content/browser/service_worker/service_worker_cache_unittest.cc File content/browser/service_worker/service_worker_cache_unittest.cc (right): https://codereview.chromium.org/545533002/diff/20001/content/browser/service_worker/service_worker_cache_unittest.cc#newcode282 content/browser/service_worker/service_worker_cache_unittest.cc:282: // The BlobHandle needs to be ...
6 years, 3 months ago (2014-09-05 23:28:49 UTC) #4
jkarlin
https://codereview.chromium.org/545533002/diff/20001/content/browser/service_worker/service_worker_cache_unittest.cc File content/browser/service_worker/service_worker_cache_unittest.cc (right): https://codereview.chromium.org/545533002/diff/20001/content/browser/service_worker/service_worker_cache_unittest.cc#newcode282 content/browser/service_worker/service_worker_cache_unittest.cc:282: // The BlobHandle needs to be held onto by ...
6 years, 3 months ago (2014-09-09 19:14:34 UTC) #5
michaeln1
still lgtm!
6 years, 3 months ago (2014-09-09 22:01:00 UTC) #6
michaeln
and lgtm 2
6 years, 3 months ago (2014-09-11 00:47:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/545533002/80001
6 years, 3 months ago (2014-09-11 10:56:51 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 80ca9bd1135de341767369934d59435a45086ff6
6 years, 3 months ago (2014-09-11 11:55:12 UTC) #10
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 11:57:47 UTC) #11
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/655e378c7d9d07b3937967c428fd51353e154d53
Cr-Commit-Position: refs/heads/master@{#294372}

Powered by Google App Engine
This is Rietveld 408576698