OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_HTTP_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 const HttpUserAgentSettings* http_user_agent_settings); | 56 const HttpUserAgentSettings* http_user_agent_settings); |
57 | 57 |
58 ~URLRequestHttpJob() override; | 58 ~URLRequestHttpJob() override; |
59 | 59 |
60 // Overridden from URLRequestJob: | 60 // Overridden from URLRequestJob: |
61 void SetPriority(RequestPriority priority) override; | 61 void SetPriority(RequestPriority priority) override; |
62 void Start() override; | 62 void Start() override; |
63 void Kill() override; | 63 void Kill() override; |
64 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 64 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
65 std::unique_ptr<SourceStream> SetUpSourceStream() override; | 65 std::unique_ptr<SourceStream> SetUpSourceStream() override; |
| 66 RedirectInfo ComputeRedirectInfo(const GURL& location, |
| 67 int http_status_code) override; |
66 | 68 |
67 RequestPriority priority() const { | 69 RequestPriority priority() const { |
68 return priority_; | 70 return priority_; |
69 } | 71 } |
70 | 72 |
71 private: | 73 private: |
72 enum CompletionCause { | 74 enum CompletionCause { |
73 ABORTED, | 75 ABORTED, |
74 FINISHED | 76 FINISHED |
75 }; | 77 }; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 int64_t total_sent_bytes_from_previous_transactions_; | 262 int64_t total_sent_bytes_from_previous_transactions_; |
261 | 263 |
262 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; | 264 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; |
263 | 265 |
264 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 266 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
265 }; | 267 }; |
266 | 268 |
267 } // namespace net | 269 } // namespace net |
268 | 270 |
269 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 271 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
OLD | NEW |