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

Issue 14625012: net: Return LoadTiming information in the case of a cache hit (Closed)

Created:
7 years, 7 months ago by mmenke
Modified:
7 years, 7 months ago
Reviewers:
eroman, gavinp
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

net: Return LoadTiming information in the case of a cache hit. If the request went over the wire before headers were returned, return information about the last over the wire request. Otherwise, set send times to be when the cache entry was opened, and receive_header_start to be when the headers were read. BUG=239842 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200356

Patch Set 1 : #

Patch Set 2 : Fix tests, add tests #

Total comments: 1

Patch Set 3 : Be paranoid #

Patch Set 4 : Make browser tests no longer depend on request_start being set #

Patch Set 5 : Small fix #

Total comments: 8

Patch Set 6 : Response to Gavin's comments #

Patch Set 7 : Remove a couple linebreaks I accidentally added #

Patch Set 8 : Missed a couple spots #

Total comments: 4

Patch Set 9 : Response to eroman. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+432 lines, -133 lines) Patch
chrome/browser/net/load_timing_browsertest.cc View 1 2 3 4 11 chunks +27 lines, -29 lines 0 comments Download
net/http/http_cache_transaction.h View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -0 lines 0 comments Download
net/http/http_cache_transaction.cc View 1 2 3 4 5 6 7 8 chunks +34 lines, -8 lines 0 comments Download
net/http/http_cache_unittest.cc View 1 2 3 4 5 6 29 chunks +237 lines, -53 lines 0 comments Download
net/http/http_network_transaction.h View 1 chunk +0 lines, -3 lines 0 comments Download
net/http/http_network_transaction.cc View 3 chunks +0 lines, -4 lines 0 comments Download
net/http/http_network_transaction_spdy2_unittest.cc View 1 4 chunks +9 lines, -9 lines 0 comments Download
net/http/http_network_transaction_spdy3_unittest.cc View 1 4 chunks +9 lines, -9 lines 0 comments Download
net/http/http_transaction.h View 1 chunk +4 lines, -2 lines 0 comments Download
net/http/http_transaction_unittest.h View 2 chunks +6 lines, -0 lines 0 comments Download
net/http/http_transaction_unittest.cc View 5 chunks +26 lines, -3 lines 0 comments Download
net/url_request/url_request.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
net/url_request/url_request_http_job.h View 1 chunk +3 lines, -0 lines 0 comments Download
net/url_request/url_request_http_job.cc View 7 chunks +13 lines, -2 lines 0 comments Download
net/url_request/url_request_unittest.cc View 8 chunks +43 lines, -11 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
mmenke
May have gone a bit overboard on the tests, since just have to modify 4 ...
7 years, 7 months ago (2013-05-10 18:32:26 UTC) #1
mmenke
Forgot to include this: gavin: Please focus on http_cache_* eric: Please focus on everything else.
7 years, 7 months ago (2013-05-10 19:51:20 UTC) #2
gavinp
Looks good. I'm pleased to see we'll distinguish between send_start and request_start. https://chromiumcodereview.appspot.com/14625012/diff/29006/net/http/http_cache_transaction.h File net/http/http_cache_transaction.h ...
7 years, 7 months ago (2013-05-10 20:23:03 UTC) #3
mmenke
Thanks for the feedback! https://chromiumcodereview.appspot.com/14625012/diff/29006/net/http/http_cache_transaction.h File net/http/http_cache_transaction.h (right): https://chromiumcodereview.appspot.com/14625012/diff/29006/net/http/http_cache_transaction.h#newcode16 net/http/http_cache_transaction.h:16: #include "net/base/request_priority.h" On 2013/05/10 20:23:03, ...
7 years, 7 months ago (2013-05-10 20:44:00 UTC) #4
mmenke
eroman: Ping! gavin: Ping! Talked with Chris, and his suggestion was to merge this (Since ...
7 years, 7 months ago (2013-05-14 14:33:12 UTC) #5
gavinp
lgtm!
7 years, 7 months ago (2013-05-14 14:36:05 UTC) #6
eroman
lgtm the load timing stuff is surprisingly subtle. glad you are looking through it all ...
7 years, 7 months ago (2013-05-15 01:11:49 UTC) #7
mmenke
https://codereview.chromium.org/14625012/diff/43003/chrome/browser/net/load_timing_browsertest.cc File chrome/browser/net/load_timing_browsertest.cc (right): https://codereview.chromium.org/14625012/diff/43003/chrome/browser/net/load_timing_browsertest.cc#newcode504 chrome/browser/net/load_timing_browsertest.cc:504: load_timing_deltas.dns_start = RelativeTime(-1000300); On 2013/05/15 01:11:50, eroman wrote: > ...
7 years, 7 months ago (2013-05-15 01:52:38 UTC) #8
mmenke
On 2013/05/15 01:11:49, eroman wrote: > lgtm > > the load timing stuff is surprisingly ...
7 years, 7 months ago (2013-05-15 02:05:33 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/14625012/73001
7 years, 7 months ago (2013-05-15 16:30:35 UTC) #10
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=149104
7 years, 7 months ago (2013-05-15 18:30:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/14625012/73001
7 years, 7 months ago (2013-05-15 18:34:12 UTC) #12
commit-bot: I haz the power
7 years, 7 months ago (2013-05-15 21:33:27 UTC) #13
Message was sent while issue was closed.
Change committed as 200356

Powered by Google App Engine
This is Rietveld 408576698