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

Unified Diff: net/url_request/url_request_redirect_job.cc

Issue 16901013: Expose receive header end time for URLRequestRedirectJob (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Patch for landing Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_request_redirect_job.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_redirect_job.cc
diff --git a/net/url_request/url_request_redirect_job.cc b/net/url_request/url_request_redirect_job.cc
index a4b0dfba82748f8965279d1880ced30d23d6e2c0..67ff30d0f0f219e26580dda03017a55e2953a272 100644
--- a/net/url_request/url_request_redirect_job.cc
+++ b/net/url_request/url_request_redirect_job.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/message_loop.h"
+#include "net/base/load_timing_info.h"
namespace net {
@@ -36,7 +37,17 @@ bool URLRequestRedirectJob::IsRedirectResponse(GURL* location,
URLRequestRedirectJob::~URLRequestRedirectJob() {}
void URLRequestRedirectJob::StartAsync() {
+ receive_headers_end_ = base::TimeTicks::Now();
NotifyHeadersComplete();
}
+void URLRequestRedirectJob::GetLoadTimingInfo(
+ LoadTimingInfo* load_timing_info) const {
+ // Set send_start and send_end to receive_headers_end_ to keep consistent
+ // with network cache behavior.
+ load_timing_info->send_start = receive_headers_end_;
+ load_timing_info->send_end = receive_headers_end_;
+ load_timing_info->receive_headers_end = receive_headers_end_;
+}
+
} // namespace net
« no previous file with comments | « net/url_request/url_request_redirect_job.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698