| 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 26 matching lines...) Expand all Loading... |
| 37 class HttpUserAgentSettings; | 37 class HttpUserAgentSettings; |
| 38 class ProxyInfo; | 38 class ProxyInfo; |
| 39 class SSLPrivateKey; | 39 class SSLPrivateKey; |
| 40 class UploadDataStream; | 40 class UploadDataStream; |
| 41 class URLRequestContext; | 41 class URLRequestContext; |
| 42 | 42 |
| 43 // A URLRequestJob subclass that is built on top of HttpTransaction. It | 43 // A URLRequestJob subclass that is built on top of HttpTransaction. It |
| 44 // provides an implementation for both HTTP and HTTPS. | 44 // provides an implementation for both HTTP and HTTPS. |
| 45 class NET_EXPORT_PRIVATE URLRequestHttpJob : public URLRequestJob { | 45 class NET_EXPORT_PRIVATE URLRequestHttpJob : public URLRequestJob { |
| 46 public: | 46 public: |
| 47 static URLRequestJob* Factory(URLRequest* request, | 47 // Creates a URLRequestHttpJob. Non-test code other than HttpProtocolHandler |
| 48 NetworkDelegate* network_delegate, | 48 // shouldn't use this constructor directly, because HttpProtocolHandler is |
| 49 const std::string& scheme); | 49 // where HSTS redirects happen. |
| 50 | |
| 51 protected: | |
| 52 URLRequestHttpJob(URLRequest* request, | 50 URLRequestHttpJob(URLRequest* request, |
| 53 NetworkDelegate* network_delegate, | 51 NetworkDelegate* network_delegate, |
| 54 const HttpUserAgentSettings* http_user_agent_settings); | 52 const HttpUserAgentSettings* http_user_agent_settings); |
| 55 | 53 |
| 54 protected: |
| 56 ~URLRequestHttpJob() override; | 55 ~URLRequestHttpJob() override; |
| 57 | 56 |
| 58 // Overridden from URLRequestJob: | 57 // Overridden from URLRequestJob: |
| 59 void SetPriority(RequestPriority priority) override; | 58 void SetPriority(RequestPriority priority) override; |
| 60 void Start() override; | 59 void Start() override; |
| 61 void Kill() override; | 60 void Kill() override; |
| 62 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 61 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
| 63 | 62 |
| 64 RequestPriority priority() const { | 63 RequestPriority priority() const { |
| 65 return priority_; | 64 return priority_; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 int64_t total_sent_bytes_from_previous_transactions_; | 270 int64_t total_sent_bytes_from_previous_transactions_; |
| 272 | 271 |
| 273 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; | 272 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; |
| 274 | 273 |
| 275 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 274 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 276 }; | 275 }; |
| 277 | 276 |
| 278 } // namespace net | 277 } // namespace net |
| 279 | 278 |
| 280 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 279 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |