OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |