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

Issue 2113603003: Exposing CacheEntryStatus (former TransactionPattern) via UrlRequest (Closed)

Created:
4 years, 5 months ago by jamartin
Modified:
4 years, 4 months ago
Reviewers:
jkarlin, gavinp
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, kinuko+cache_chromium.org, twifkak, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Exposing CacheEntryStatus (former TransactionPattern) via UrlRequest This will allow to know how the UrlRequest affected the cache. Currently, it was possible to retrieve: cache used = was_cached && !network_accessed cache validated = was_cached && network_accessed not used/updated/cantconditionalize = !was_cached This change allows to tell apart the not used/updated/cantconditionalize sub-categories. This change has the added benefit that HttpCacheTransaction::RecordHistograms could be refactorized out of that class and moved to upper layers. BUG=615434 Committed: https://crrev.com/19ff6f1bd9d1ea24e3104d0cbec6352640545d8c Cr-Commit-Position: refs/heads/master@{#407971}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Added tests to http_cache_unittest.cc #

Patch Set 3 : A bit of cleanup and more doc #

Total comments: 11

Patch Set 4 : Second batch of comments and question about auth #

Patch Set 5 : gclient sync #

Patch Set 6 : Test 401 before and after Read #

Total comments: 8

Patch Set 7 : Auth requests have various CacheEntryStatus #

Patch Set 8 : Removed DCHECK message #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -84 lines) Patch
M net/http/http_cache_transaction.h View 1 2 3 4 5 6 3 chunks +17 lines, -21 lines 0 comments Download
M net/http/http_cache_transaction.cc View 1 2 3 4 5 6 7 35 chunks +99 lines, -63 lines 0 comments Download
M net/http/http_cache_unittest.cc View 1 2 3 4 5 6 4 chunks +92 lines, -0 lines 0 comments Download
M net/http/http_response_info.h View 1 2 3 4 2 chunks +31 lines, -0 lines 0 comments Download
M net/http/http_response_info.cc View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (22 generated)
jkarlin
drive by: Thanks for writing this. This CL needs tests to verify that the pattern ...
4 years, 5 months ago (2016-06-30 19:01:13 UTC) #2
jamartin
Thanks for the review. PTAL. Please pay attention to the unit tests. I've added assertions ...
4 years, 5 months ago (2016-07-04 17:12:27 UTC) #6
jkarlin
Thanks for writing the tests. Looking good. https://codereview.chromium.org/2113603003/diff/40001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/2113603003/diff/40001/net/http/http_cache_transaction.cc#newcode2749 net/http/http_cache_transaction.cc:2749: auth_response_.cache_entry_status = ...
4 years, 5 months ago (2016-07-06 17:09:41 UTC) #7
jkarlin
+gavinp@ as a reviewer as he wrote the cache pattern enum in the first place.
4 years, 5 months ago (2016-07-06 17:37:33 UTC) #9
jamartin
PTAL. I need your help with the 401 test, though. https://codereview.chromium.org/2113603003/diff/40001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/2113603003/diff/40001/net/http/http_cache_transaction.cc#newcode2749 ...
4 years, 5 months ago (2016-07-07 21:36:39 UTC) #10
jamartin
Waiting on gainp@. jkarlin@ and mmenke@ are on holidays, so I hope they'll catch up ...
4 years, 5 months ago (2016-07-08 14:59:59 UTC) #11
jamartin
On 2016/07/08 14:59:59, jamartin wrote: > Waiting on gainp@. > > jkarlin@ and mmenke@ are ...
4 years, 5 months ago (2016-07-08 15:00:36 UTC) #12
mmenke
Going to defer to Josh / Gavin on this one - I really don't know ...
4 years, 5 months ago (2016-07-12 16:19:07 UTC) #13
jamartin
OK, then we'll wait for Gavin. Thanks for checking in Matt.
4 years, 5 months ago (2016-07-12 17:03:55 UTC) #15
jamartin
@gavinp: Friendly ping :-)
4 years, 5 months ago (2016-07-18 16:31:41 UTC) #16
jkarlin
https://codereview.chromium.org/2113603003/diff/40001/net/http/http_cache_unittest.cc File net/http/http_cache_unittest.cc (right): https://codereview.chromium.org/2113603003/diff/40001/net/http/http_cache_unittest.cc#newcode8096 net/http/http_cache_unittest.cc:8096: On 2016/07/07 21:36:38, jamartin wrote: > On 2016/07/06 17:09:41, ...
4 years, 5 months ago (2016-07-18 17:24:46 UTC) #17
jamartin
PTAL. https://codereview.chromium.org/2113603003/diff/40001/net/http/http_cache_unittest.cc File net/http/http_cache_unittest.cc (right): https://codereview.chromium.org/2113603003/diff/40001/net/http/http_cache_unittest.cc#newcode8096 net/http/http_cache_unittest.cc:8096: On 2016/07/18 17:24:46, jkarlin wrote: > On 2016/07/07 ...
4 years, 5 months ago (2016-07-19 16:02:46 UTC) #20
jkarlin
lgtm with changes but I'm not an owner. gavinp@ PTAL. https://codereview.chromium.org/2113603003/diff/40001/net/http/http_cache_unittest.cc File net/http/http_cache_unittest.cc (right): https://codereview.chromium.org/2113603003/diff/40001/net/http/http_cache_unittest.cc#newcode8096 ...
4 years, 5 months ago (2016-07-21 17:25:55 UTC) #23
jamartin
@gavinp: PTAL. https://codereview.chromium.org/2113603003/diff/40001/net/http/http_cache_unittest.cc File net/http/http_cache_unittest.cc (right): https://codereview.chromium.org/2113603003/diff/40001/net/http/http_cache_unittest.cc#newcode8096 net/http/http_cache_unittest.cc:8096: On 2016/07/21 17:25:54, jkarlin wrote: > On ...
4 years, 5 months ago (2016-07-25 13:39:16 UTC) #26
gavinp
lgtm https://codereview.chromium.org/2113603003/diff/100001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/2113603003/diff/100001/net/http/http_cache_transaction.cc#newcode2751 net/http/http_cache_transaction.cc:2751: << "Cannot call UpdateCacheEntryStatus with ENTRY_UNDEFINED."; I think ...
4 years, 4 months ago (2016-07-26 17:54:20 UTC) #29
jamartin
Thanks for the review. I'll submit once the latest run for git cl try finishes. ...
4 years, 4 months ago (2016-07-26 19:58:32 UTC) #30
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/2113603003/140001
4 years, 4 months ago (2016-07-26 23:33:29 UTC) #37
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-07-26 23:37:58 UTC) #39
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 23:41:38 UTC) #41
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/19ff6f1bd9d1ea24e3104d0cbec6352640545d8c
Cr-Commit-Position: refs/heads/master@{#407971}

Powered by Google App Engine
This is Rietveld 408576698