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

Issue 2315253002: [CacheStorage] Sort QueryCache results by time entered into cache (Closed)

Created:
4 years, 3 months ago by jkarlin
Modified:
4 years, 3 months ago
Reviewers:
nhiroki
CC:
chromium-reviews, jam, darin-cc_chromium.org, jkarlin+watch_chromium.org, nhiroki
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CacheStorage] Sort QueryCache results by time entered into cache The spec says that QueryCache should iterate the request/response pairs in insertion order. The implementation backend (SimpleCache) has an unordered iterator. This CL adds an insertion time to each entry (defaulting to response time for pre-existing entries) and sorts QueryCache results before returning. In order to sort the QueryCache results, I had to clean up "QueryCacheResults": 1) Rename QueryCacheResults -> QueryCacheContext 2) Create a QueryCacheResult which contains a matching request, response, data handle, and entry time 3) QueryCache now returns a sorted std::vector<QueryCacheResult> BUG=627821 Committed: https://crrev.com/92afbef3c43ccd4e0817d03a2166a98342a88d84 Cr-Commit-Position: refs/heads/master@{#417279}

Patch Set 1 #

Patch Set 2 : Handle handling #

Patch Set 3 : Verify ordering in layout tests #

Patch Set 4 : Nits #

Patch Set 5 : Rebase #

Total comments: 6

Patch Set 6 : Address comments from PS5 #

Messages

Total messages: 20 (14 generated)
jkarlin
nhiroki@ PTAL, thanks!
4 years, 3 months ago (2016-09-07 18:34:13 UTC) #5
nhiroki
LGTM with minor comments. https://codereview.chromium.org/2315253002/diff/80001/third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/test-helpers.js File third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/test-helpers.js (right): https://codereview.chromium.org/2315253002/diff/80001/third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/test-helpers.js#newcode151 third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/test-helpers.js:151: var p = Promise.resolve(); Is ...
4 years, 3 months ago (2016-09-08 03:54:56 UTC) #12
jkarlin
Thanks! https://codereview.chromium.org/2315253002/diff/80001/third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/test-helpers.js File third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/test-helpers.js (right): https://codereview.chromium.org/2315253002/diff/80001/third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/test-helpers.js#newcode151 third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/test-helpers.js:151: var p = Promise.resolve(); On 2016/09/08 03:54:56, nhiroki ...
4 years, 3 months ago (2016-09-08 12:03:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2315253002/100001
4 years, 3 months ago (2016-09-08 12:03:16 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-08 14:05:56 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 14:07:16 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/92afbef3c43ccd4e0817d03a2166a98342a88d84
Cr-Commit-Position: refs/heads/master@{#417279}

Powered by Google App Engine
This is Rietveld 408576698