| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "net/url_request/url_request_throttler_entry_interface.h" | 27 #include "net/url_request/url_request_throttler_entry_interface.h" |
| 28 | 28 |
| 29 namespace net { | 29 namespace net { |
| 30 | 30 |
| 31 class HttpRequestHeaders; | 31 class HttpRequestHeaders; |
| 32 class HttpResponseHeaders; | 32 class HttpResponseHeaders; |
| 33 class HttpResponseInfo; | 33 class HttpResponseInfo; |
| 34 class HttpTransaction; | 34 class HttpTransaction; |
| 35 class HttpUserAgentSettings; | 35 class HttpUserAgentSettings; |
| 36 class ProxyInfo; | 36 class ProxyInfo; |
| 37 class SSLPrivateKey; |
| 37 class UploadDataStream; | 38 class UploadDataStream; |
| 38 class URLRequestContext; | 39 class URLRequestContext; |
| 39 | 40 |
| 40 // A URLRequestJob subclass that is built on top of HttpTransaction. It | 41 // A URLRequestJob subclass that is built on top of HttpTransaction. It |
| 41 // provides an implementation for both HTTP and HTTPS. | 42 // provides an implementation for both HTTP and HTTPS. |
| 42 class NET_EXPORT_PRIVATE URLRequestHttpJob : public URLRequestJob { | 43 class NET_EXPORT_PRIVATE URLRequestHttpJob : public URLRequestJob { |
| 43 public: | 44 public: |
| 44 static URLRequestJob* Factory(URLRequest* request, | 45 static URLRequestJob* Factory(URLRequest* request, |
| 45 NetworkDelegate* network_delegate, | 46 NetworkDelegate* network_delegate, |
| 46 const std::string& scheme); | 47 const std::string& scheme); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 void GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 121 void GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
| 121 bool GetResponseCookies(std::vector<std::string>* cookies) override; | 122 bool GetResponseCookies(std::vector<std::string>* cookies) override; |
| 122 int GetResponseCode() const override; | 123 int GetResponseCode() const override; |
| 123 Filter* SetupFilter() const override; | 124 Filter* SetupFilter() const override; |
| 124 bool CopyFragmentOnRedirect(const GURL& location) const override; | 125 bool CopyFragmentOnRedirect(const GURL& location) const override; |
| 125 bool IsSafeRedirect(const GURL& location) override; | 126 bool IsSafeRedirect(const GURL& location) override; |
| 126 bool NeedsAuth() override; | 127 bool NeedsAuth() override; |
| 127 void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) override; | 128 void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) override; |
| 128 void SetAuth(const AuthCredentials& credentials) override; | 129 void SetAuth(const AuthCredentials& credentials) override; |
| 129 void CancelAuth() override; | 130 void CancelAuth() override; |
| 130 void ContinueWithCertificate(X509Certificate* client_cert) override; | 131 void ContinueWithCertificate(X509Certificate* client_cert, |
| 132 SSLPrivateKey* client_private_key) override; |
| 131 void ContinueDespiteLastError() override; | 133 void ContinueDespiteLastError() override; |
| 132 void ResumeNetworkStart() override; | 134 void ResumeNetworkStart() override; |
| 133 bool ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read) override; | 135 bool ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read) override; |
| 136 |
| 134 void StopCaching() override; | 137 void StopCaching() override; |
| 135 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; | 138 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; |
| 136 int64 GetTotalReceivedBytes() const override; | 139 int64 GetTotalReceivedBytes() const override; |
| 137 int64_t GetTotalSentBytes() const override; | 140 int64_t GetTotalSentBytes() const override; |
| 138 void DoneReading() override; | 141 void DoneReading() override; |
| 139 void DoneReadingRedirectResponse() override; | 142 void DoneReadingRedirectResponse() override; |
| 140 | 143 |
| 141 HostPortPair GetSocketAddress() const override; | 144 HostPortPair GetSocketAddress() const override; |
| 142 void NotifyURLRequestDestroyed() override; | 145 void NotifyURLRequestDestroyed() override; |
| 143 | 146 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 int64_t total_sent_bytes_from_previous_transactions_; | 288 int64_t total_sent_bytes_from_previous_transactions_; |
| 286 | 289 |
| 287 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; | 290 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; |
| 288 | 291 |
| 289 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 292 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 290 }; | 293 }; |
| 291 | 294 |
| 292 } // namespace net | 295 } // namespace net |
| 293 | 296 |
| 294 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 297 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |