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

Issue 12310075: Cache failover to LOAD_PREFERRING_CACHE if network response suggests offline. (Closed)

Created:
7 years, 10 months ago by Randy Smith (Not in Mondays)
Modified:
7 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam, gavinp+disk_chromium.org, gavinp, droger
Visibility:
Public.

Description

Cache failover to LOAD_PREFERRING_CACHE if network response suggests offline. (Controlled by new load flag.) BUG=2204 R=rvargas@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190020

Patch Set 1 #

Patch Set 2 : Checkpoint. #

Patch Set 3 : Removed debug code from diff. #

Patch Set 4 : Test written and runs. #

Patch Set 5 : Removed vestigial reference to new content flag. #

Total comments: 50

Patch Set 6 : Incorporated most comments; responded with questions to a few. #

Total comments: 14

Patch Set 7 : Incorporated comments. #

Patch Set 8 : Moved new flag to nearer other flags in same file. #

Total comments: 2

Patch Set 9 : Removed blank line. #

Patch Set 10 : Merged to revision r187927. #

Patch Set 11 : Fixed net-internals test. #

Total comments: 4

Patch Set 12 : Rebase to r189155. #

Patch Set 13 : Incorporated comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -65 lines) Patch
M chrome/test/data/webui/net_internals/log_view_painter.js View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +17 lines, -15 lines 0 comments Download
M net/base/load_flags_list.h View 1 2 3 4 5 6 7 8 1 chunk +28 lines, -23 lines 0 comments Download
M net/http/http_cache_transaction.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M net/http/http_cache_transaction.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +52 lines, -18 lines 0 comments Download
M net/http/http_cache_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +109 lines, -3 lines 0 comments Download
M net/http/http_response_info.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M net/http/http_response_info.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -0 lines 0 comments Download
M net/http/http_transaction_unittest.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M net/http/http_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +18 lines, -5 lines 0 comments Download
M net/url_request/url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
Randy Smith (Not in Mondays)
Ricardo: PTAL? This should look at least somewhat familiar from https://codereview.chromium.org/12086021/; I've added conditionalized based ...
7 years, 9 months ago (2013-03-04 17:41:31 UTC) #1
Randy Smith (Not in Mondays)
[Sorry, meant to ask this in last post and forgot. ] One specific question: I'm ...
7 years, 9 months ago (2013-03-04 21:01:03 UTC) #2
rvargas (doing something else)
READ_WRITE looks fine. Just READ should not reach the point of receiving a network response, ...
7 years, 9 months ago (2013-03-05 02:58:19 UTC) #3
Randy Smith (Not in Mondays)
I've incorporated most of your comments, and included some questions about the remainder. PTAL? https://codereview.chromium.org/12310075/diff/5007/net/base/load_flags_list.h ...
7 years, 9 months ago (2013-03-05 23:16:14 UTC) #4
rvargas (doing something else)
https://codereview.chromium.org/12310075/diff/5007/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/12310075/diff/5007/net/http/http_cache_transaction.cc#newcode818 net/http/http_cache_transaction.cc:818: mode_ == READ_WRITE && entry_ && !partial_ && result ...
7 years, 9 months ago (2013-03-06 03:11:47 UTC) #5
Randy Smith (Not in Mondays)
PTAL. https://codereview.chromium.org/12310075/diff/5007/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/12310075/diff/5007/net/http/http_cache_transaction.cc#newcode818 net/http/http_cache_transaction.cc:818: mode_ == READ_WRITE && entry_ && !partial_ && ...
7 years, 9 months ago (2013-03-06 22:55:55 UTC) #6
rvargas (doing something else)
LGTM
7 years, 9 months ago (2013-03-06 23:40:47 UTC) #7
rvargas (doing something else)
Actually, I was chatting with Eric and he mentioned that all flag names used by ...
7 years, 9 months ago (2013-03-06 23:47:37 UTC) #8
Randy Smith (Not in Mondays)
On 2013/03/06 23:47:37, rvargas wrote: > Actually, I was chatting with Eric and he mentioned ...
7 years, 9 months ago (2013-03-13 19:15:15 UTC) #9
rvargas (doing something else)
lgtm https://codereview.chromium.org/12310075/diff/42001/net/base/load_flags_list.h File net/base/load_flags_list.h (right): https://codereview.chromium.org/12310075/diff/42001/net/base/load_flags_list.h#newcode122 net/base/load_flags_list.h:122: looks like now there's an extra line (but ...
7 years, 9 months ago (2013-03-13 19:40:15 UTC) #10
Randy Smith (Not in Mondays)
https://codereview.chromium.org/12310075/diff/42001/net/base/load_flags_list.h File net/base/load_flags_list.h (right): https://codereview.chromium.org/12310075/diff/42001/net/base/load_flags_list.h#newcode122 net/base/load_flags_list.h:122: On 2013/03/13 19:40:16, rvargas wrote: > looks like now ...
7 years, 9 months ago (2013-03-13 19:42:52 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/12310075/48001
7 years, 9 months ago (2013-03-13 19:44:54 UTC) #12
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 9 months ago (2013-03-13 22:11:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/12310075/48001
7 years, 9 months ago (2013-03-13 23:12:47 UTC) #14
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 9 months ago (2013-03-13 23:27:50 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/12310075/72001
7 years, 9 months ago (2013-03-14 00:12:39 UTC) #16
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=108616
7 years, 9 months ago (2013-03-14 03:31:29 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/12310075/72001
7 years, 9 months ago (2013-03-14 16:54:27 UTC) #18
Randy Smith (Not in Mondays)
Ricardo: We have a test failure in net-internals, as we thought might happen: http://build.chromium.org/p/tryserver.chromium/builders/win7_aura/builds/19899/steps/browser_tests/logs/netInternalsLogViewPainterPrintAsText . ...
7 years, 9 months ago (2013-03-14 19:19:16 UTC) #19
rvargas (doing something else)
On 2013/03/14 19:19:16, rdsmith wrote: > Ricardo: We have a test failure in net-internals, as ...
7 years, 9 months ago (2013-03-14 19:50:08 UTC) #20
Randy Smith (Not in Mondays)
Ricardo: PTAL?
7 years, 9 months ago (2013-03-20 15:56:06 UTC) #21
rvargas (doing something else)
LGTM after nits. https://codereview.chromium.org/12310075/diff/100001/chrome/test/data/webui/net_internals/log_view_painter.js File chrome/test/data/webui/net_internals/log_view_painter.js (right): https://codereview.chromium.org/12310075/diff/100001/chrome/test/data/webui/net_internals/log_view_painter.js#newcode1042 chrome/test/data/webui/net_internals/log_view_painter.js:1042: 'ENABLE_LOAD_TIMING | MAIN_FRAME | MAYBE_USER_GESTURE | ...
7 years, 9 months ago (2013-03-20 21:00:02 UTC) #22
Randy Smith (Not in Mondays)
Thanks! https://codereview.chromium.org/12310075/diff/100001/chrome/test/data/webui/net_internals/log_view_painter.js File chrome/test/data/webui/net_internals/log_view_painter.js (right): https://codereview.chromium.org/12310075/diff/100001/chrome/test/data/webui/net_internals/log_view_painter.js#newcode1042 chrome/test/data/webui/net_internals/log_view_painter.js:1042: 'ENABLE_LOAD_TIMING | MAIN_FRAME | MAYBE_USER_GESTURE | VERIFY_EV_CERT)\n' + ...
7 years, 9 months ago (2013-03-20 22:13:00 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/12310075/112002
7 years, 9 months ago (2013-03-21 14:25:11 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/12310075/112002
7 years, 9 months ago (2013-03-22 17:11:35 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/12310075/112002
7 years, 9 months ago (2013-03-22 18:09:38 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/12310075/112002
7 years, 9 months ago (2013-03-23 14:40:43 UTC) #27
commit-bot: I haz the power
7 years, 9 months ago (2013-03-23 16:17:29 UTC) #28
Message was sent while issue was closed.
Change committed as 190020

Powered by Google App Engine
This is Rietveld 408576698