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

Issue 1248003004: CacheStorage: Implement Cache.matchAll() (Closed)

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

Description

CacheStorage: Implement Cache.matchAll() This CL implements Cache.matchAll(). When an optional request is omitted, CacheStorageCache iterates all responses in this cache and returns them. When the optional request is given, the backend runs an existing implementation for Cache.match(). Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache-matchall (1) Blink: https://codereview.chromium.org/1268463003/ (2) Chromium: THIS PATCH (3) Blink: https://codereview.chromium.org/1262773003/ BUG=428363 Committed: https://crrev.com/43e720b11886c21e531607e8152e30a23d6eaac9 Cr-Commit-Position: refs/heads/master@{#342359}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : incorporate review comments #

Patch Set 3 : fix wrong conditional branch #

Total comments: 14

Patch Set 4 : incorporate review comments #

Total comments: 4

Patch Set 5 : rebase #

Patch Set 6 : replace ScopedVector<BlobDataHandle> with scoped_ptr<std::vector<BlobDataHandle>> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+556 lines, -153 lines) Patch
M content/browser/cache_storage/cache_storage_cache.h View 1 2 3 4 5 8 chunks +45 lines, -1 line 0 comments Download
M content/browser/cache_storage/cache_storage_cache.cc View 1 2 3 4 5 8 chunks +263 lines, -93 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache_unittest.cc View 1 2 3 4 5 5 chunks +162 lines, -46 lines 0 comments Download
M content/browser/cache_storage/cache_storage_dispatcher_host.h View 1 2 3 4 5 2 chunks +16 lines, -3 lines 0 comments Download
M content/browser/cache_storage/cache_storage_dispatcher_host.cc View 1 2 3 4 5 4 chunks +70 lines, -10 lines 0 comments Download

Messages

Total messages: 26 (14 generated)
nhiroki
Hi jkarlin@, can you review this?
5 years, 4 months ago (2015-08-04 10:33:39 UTC) #8
jkarlin
This looks good. Just a couple places we could reduce code duplication. https://codereview.chromium.org/1248003004/diff/120001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc ...
5 years, 4 months ago (2015-08-04 13:25:07 UTC) #9
nhiroki
Thank you for reviewing. Updated. Can you take another look? https://codereview.chromium.org/1248003004/diff/120001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (right): https://codereview.chromium.org/1248003004/diff/120001/content/browser/cache_storage/cache_storage_cache.cc#newcode624 ...
5 years, 4 months ago (2015-08-05 08:03:04 UTC) #11
jkarlin
Almost there. https://codereview.chromium.org/1248003004/diff/180001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (right): https://codereview.chromium.org/1248003004/diff/180001/content/browser/cache_storage/cache_storage_cache.cc#newcode179 content/browser/cache_storage/cache_storage_cache.cc:179: void PopulateServiceWorkerResponse(const CacheMetadata& metadata, Perhaps rename to ...
5 years, 4 months ago (2015-08-05 12:09:05 UTC) #12
nhiroki
Thank you for your comments! Updated. https://codereview.chromium.org/1248003004/diff/180001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (right): https://codereview.chromium.org/1248003004/diff/180001/content/browser/cache_storage/cache_storage_cache.cc#newcode179 content/browser/cache_storage/cache_storage_cache.cc:179: void PopulateServiceWorkerResponse(const CacheMetadata& ...
5 years, 4 months ago (2015-08-06 03:36:53 UTC) #14
jkarlin
lgtm with changes https://codereview.chromium.org/1248003004/diff/220001/content/browser/cache_storage/cache_storage_cache.h File content/browser/cache_storage/cache_storage_cache.h (right): https://codereview.chromium.org/1248003004/diff/220001/content/browser/cache_storage/cache_storage_cache.h#newcode54 content/browser/cache_storage/cache_storage_cache.h:54: ScopedVector<storage::BlobDataHandle>)>; Likewise, please make this a ...
5 years, 4 months ago (2015-08-06 15:11:13 UTC) #15
nhiroki
Thank you! https://codereview.chromium.org/1248003004/diff/220001/content/browser/cache_storage/cache_storage_cache.h File content/browser/cache_storage/cache_storage_cache.h (right): https://codereview.chromium.org/1248003004/diff/220001/content/browser/cache_storage/cache_storage_cache.h#newcode54 content/browser/cache_storage/cache_storage_cache.h:54: ScopedVector<storage::BlobDataHandle>)>; On 2015/08/06 15:11:13, jkarlin wrote: > ...
5 years, 4 months ago (2015-08-07 13:12:16 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1248003004/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1248003004/280001
5 years, 4 months ago (2015-08-07 13:12:47 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/96462)
5 years, 4 months ago (2015-08-07 14:33:54 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1248003004/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1248003004/280001
5 years, 4 months ago (2015-08-07 14:35:26 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:280001)
5 years, 4 months ago (2015-08-07 15:39:19 UTC) #25
commit-bot: I haz the power
5 years, 4 months ago (2015-08-07 15:40:07 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/43e720b11886c21e531607e8152e30a23d6eaac9
Cr-Commit-Position: refs/heads/master@{#342359}

Powered by Google App Engine
This is Rietveld 408576698