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

Issue 932643002: Introduce AppCacheResponseMetadataWriter to support metadata caching. (Closed)

Created:
5 years, 10 months ago by horo
Modified:
5 years, 10 months ago
Reviewers:
michaeln
CC:
chromium-reviews, darin-cc_chromium.org, jam, serviceworker-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce AppCacheResponseMetadataWriter to support metadata caching. We are implementing V8 code caching for ServiceWorker script. V8 code caching for the normal script resources which are loaded with <script> tag was implemented. (crbug.com/399580) The code cache is stored in HttpCache as a metadata of the original script. But ServiceWorker's script is stored not in HttpCache but in ServiceWorkerStorage. To support V8 code caching for ServiceWorker script, we have to implement metadata caching mechanism in ServiceWorkerStorage. ServiceWorkerStorage are using AppCache's storage backend. So this cl introduces metadata caching mechanism in AppCache's storage backend. To store the metadata we are using "stream 2" of the DiskCache entry. This is the same way HttpCache uses in HttpCache::Transaction::WriteMetadata(). TEST=content_unittestes --gtest_filter=AppCacheResponseTest.* BUG=449895 Committed: https://crrev.com/a95000738bc5cfee057bf235c071923c923a1e0f Cr-Commit-Position: refs/heads/master@{#316772}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : incorporated michaeln's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -51 lines) Patch
M content/browser/appcache/appcache_response.h View 1 4 chunks +47 lines, -3 lines 0 comments Download
M content/browser/appcache/appcache_response.cc View 1 8 chunks +102 lines, -48 lines 0 comments Download
M content/browser/appcache/appcache_response_unittest.cc View 5 chunks +102 lines, -0 lines 0 comments Download
M content/browser/appcache/appcache_storage.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/appcache/appcache_storage_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/appcache/appcache_storage_impl.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/appcache/mock_appcache_storage.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/appcache/mock_appcache_storage.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
horo
vogelheim@ Could you please review this?
5 years, 10 months ago (2015-02-16 18:19:14 UTC) #3
horo
michaeln@ Could you please review this?
5 years, 10 months ago (2015-02-17 08:18:35 UTC) #5
vogelheim
On 2015/02/16 18:19:14, horo wrote: > vogelheim@ > Could you please review this? I'd love ...
5 years, 10 months ago (2015-02-17 10:36:07 UTC) #6
michaeln
On 2015/02/17 08:18:35, horo wrote: > michaeln@ > Could you please review this? yup, looking...
5 years, 10 months ago (2015-02-18 01:32:25 UTC) #8
michaeln
https://codereview.chromium.org/932643002/diff/20001/content/browser/appcache/appcache_response.cc File content/browser/appcache/appcache_response.cc (right): https://codereview.chromium.org/932643002/diff/20001/content/browser/appcache/appcache_response.cc#newcode476 content/browser/appcache/appcache_response.cc:476: void AppCacheResponseMetadataWriter::OpenEntry() { It'd be nice to hoist this ...
5 years, 10 months ago (2015-02-18 02:18:59 UTC) #9
horo
Thank you! https://codereview.chromium.org/932643002/diff/20001/content/browser/appcache/appcache_response.cc File content/browser/appcache/appcache_response.cc (right): https://codereview.chromium.org/932643002/diff/20001/content/browser/appcache/appcache_response.cc#newcode476 content/browser/appcache/appcache_response.cc:476: void AppCacheResponseMetadataWriter::OpenEntry() { On 2015/02/18 02:18:59, michaeln ...
5 years, 10 months ago (2015-02-18 03:33:44 UTC) #10
michaeln
lgtm, thnx
5 years, 10 months ago (2015-02-18 03:48:55 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/932643002/40001
5 years, 10 months ago (2015-02-18 04:09:22 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 10 months ago (2015-02-18 05:08:21 UTC) #14
commit-bot: I haz the power
5 years, 10 months ago (2015-02-18 05:09:12 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a95000738bc5cfee057bf235c071923c923a1e0f
Cr-Commit-Position: refs/heads/master@{#316772}

Powered by Google App Engine
This is Rietveld 408576698