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

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: Add unit test 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..2b2e90d4766aefd3581902927bae72d33f696bbb 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,13 @@ 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 {
+ load_timing_info->receive_headers_end = receive_headers_end_;
mmenke 2013/06/24 13:58:19 Hmm... Would it be more consistent with the spec
+}
+
} // 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