| 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, int http_status_code) o
verride; |
| 66 | 67 |
| 67 RequestPriority priority() const { | 68 RequestPriority priority() const { |
| 68 return priority_; | 69 return priority_; |
| 69 } | 70 } |
| 70 | 71 |
| 71 private: | 72 private: |
| 72 enum CompletionCause { | 73 enum CompletionCause { |
| 73 ABORTED, | 74 ABORTED, |
| 74 FINISHED | 75 FINISHED |
| 75 }; | 76 }; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 int64_t total_sent_bytes_from_previous_transactions_; | 261 int64_t total_sent_bytes_from_previous_transactions_; |
| 261 | 262 |
| 262 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; | 263 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; |
| 263 | 264 |
| 264 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 265 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 265 }; | 266 }; |
| 266 | 267 |
| 267 } // namespace net | 268 } // namespace net |
| 268 | 269 |
| 269 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 270 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |