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

Issue 293483002: Store the service worker script and its imports on first load... really (Closed)

Created:
6 years, 7 months ago by michaeln
Modified:
6 years, 7 months ago
Reviewers:
nhiroki
CC:
chromium-reviews, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+watch, alecflett+watch_chromium.org
Visibility:
Public.

Description

Store the service worker script and its imports on first load, read them on subsequent loads. The list of resource ids is stored with registration data. As registrations are deleted the old resources are also deleted. BUG=364247, 364318 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272418

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : tests #

Total comments: 18

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : fix nix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+752 lines, -326 lines) Patch
M content/browser/service_worker/service_worker_database.h View 1 2 3 4 5 5 chunks +11 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_database.cc View 1 2 3 8 chunks +14 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_database_unittest.cc View 1 2 3 38 chunks +84 lines, -32 lines 0 comments Download
M content/browser/service_worker/service_worker_disk_cache.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_script_cache_map.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_storage.h View 1 2 3 4 5 6 chunks +93 lines, -26 lines 0 comments Download
M content/browser/service_worker/service_worker_storage.cc View 1 2 3 4 5 16 chunks +369 lines, -244 lines 0 comments Download
M content/browser/service_worker/service_worker_storage_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +175 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
michaeln
ptal
6 years, 7 months ago (2014-05-21 01:39:59 UTC) #1
michaeln
it might help to look at the progression from patch set 1 thru 4 to ...
6 years, 7 months ago (2014-05-21 02:13:45 UTC) #2
nhiroki
LGTM! https://codereview.chromium.org/293483002/diff/60001/content/browser/service_worker/service_worker_storage.cc File content/browser/service_worker/service_worker_storage.cc (right): https://codereview.chromium.org/293483002/diff/60001/content/browser/service_worker/service_worker_storage.cc#newcode512 content/browser/service_worker/service_worker_storage.cc:512: scoped_refptr<ServiceWorkerRegistration>()); nit: indent https://codereview.chromium.org/293483002/diff/60001/content/browser/service_worker/service_worker_storage.cc#newcode609 content/browser/service_worker/service_worker_storage.cc:609: registration = new ...
6 years, 7 months ago (2014-05-21 04:01:01 UTC) #3
michaeln
i've been working on some tests
6 years, 7 months ago (2014-05-21 23:42:19 UTC) #4
michaeln
can you also take a look at the tests?
6 years, 7 months ago (2014-05-22 00:32:02 UTC) #5
nhiroki
LGTM2 with some nits. https://codereview.chromium.org/293483002/diff/40002/content/browser/service_worker/service_worker_storage.cc File content/browser/service_worker/service_worker_storage.cc (right): https://codereview.chromium.org/293483002/diff/40002/content/browser/service_worker/service_worker_storage.cc#newcode728 content/browser/service_worker/service_worker_storage.cc:728: OnResourcePurged(id, rv); I see... DoomEntry() ...
6 years, 7 months ago (2014-05-22 01:20:12 UTC) #6
michaeln
thnx, i'll do some more local testing and then click the cq unless something looks ...
6 years, 7 months ago (2014-05-22 02:02:37 UTC) #7
nhiroki
https://codereview.chromium.org/293483002/diff/40002/content/browser/service_worker/service_worker_storage_unittest.cc File content/browser/service_worker/service_worker_storage_unittest.cc (right): https://codereview.chromium.org/293483002/diff/40002/content/browser/service_worker/service_worker_storage_unittest.cc#newcode123 content/browser/service_worker/service_worker_storage_unittest.cc:123: } On 2014/05/22 02:02:37, michaeln wrote: > On 2014/05/22 ...
6 years, 7 months ago (2014-05-22 03:15:33 UTC) #8
michaeln
The CQ bit was checked by michaeln@chromium.org
6 years, 7 months ago (2014-05-23 02:16:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaeln@chromium.org/293483002/130001
6 years, 7 months ago (2014-05-23 02:18:56 UTC) #10
commit-bot: I haz the power
6 years, 7 months ago (2014-05-23 06:59:06 UTC) #11
Message was sent while issue was closed.
Change committed as 272418

Powered by Google App Engine
This is Rietveld 408576698