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

Side by Side Diff: net/url_request/url_request_redirect_job.h

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, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/url_request/url_request_redirect_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_URL_REQUEST_URL_REQUEST_REDIRECT_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_REDIRECT_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_REDIRECT_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_REDIRECT_JOB_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "net/base/net_export.h" 9 #include "net/base/net_export.h"
10 #include "net/url_request/url_request_job.h" 10 #include "net/url_request/url_request_job.h"
(...skipping 19 matching lines...) Expand all
30 // Constructs a job that redirects to the specified URL. 30 // Constructs a job that redirects to the specified URL.
31 URLRequestRedirectJob(URLRequest* request, 31 URLRequestRedirectJob(URLRequest* request,
32 NetworkDelegate* network_delegate, 32 NetworkDelegate* network_delegate,
33 const GURL& redirect_destination, 33 const GURL& redirect_destination,
34 StatusCode http_status_code); 34 StatusCode http_status_code);
35 35
36 virtual void Start() OVERRIDE; 36 virtual void Start() OVERRIDE;
37 virtual bool IsRedirectResponse(GURL* location, 37 virtual bool IsRedirectResponse(GURL* location,
38 int* http_status_code) OVERRIDE; 38 int* http_status_code) OVERRIDE;
39 39
40 virtual void GetLoadTimingInfo(
41 LoadTimingInfo* load_timing_info) const OVERRIDE;
42
40 private: 43 private:
41 virtual ~URLRequestRedirectJob(); 44 virtual ~URLRequestRedirectJob();
42 45
43 void StartAsync(); 46 void StartAsync();
44 47
45 const GURL redirect_destination_; 48 const GURL redirect_destination_;
46 const int http_status_code_; 49 const int http_status_code_;
50 base::TimeTicks receive_headers_end_;
47 51
48 base::WeakPtrFactory<URLRequestRedirectJob> weak_factory_; 52 base::WeakPtrFactory<URLRequestRedirectJob> weak_factory_;
49 }; 53 };
50 54
51 } // namespace net 55 } // namespace net
52 56
53 #endif // NET_URL_REQUEST_URL_REQUEST_REDIRECT_JOB_H_ 57 #endif // NET_URL_REQUEST_URL_REQUEST_REDIRECT_JOB_H_
OLDNEW
« no previous file with comments | « no previous file | net/url_request/url_request_redirect_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698