| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 bool GetRemoteEndpoint(IPEndPoint* endpoint) const override; | 119 bool GetRemoteEndpoint(IPEndPoint* endpoint) const override; |
| 119 bool GetResponseCookies(std::vector<std::string>* cookies) override; | 120 bool GetResponseCookies(std::vector<std::string>* cookies) override; |
| 120 int GetResponseCode() const override; | 121 int GetResponseCode() const override; |
| 121 Filter* SetupFilter() const override; | 122 Filter* SetupFilter() const override; |
| 122 bool CopyFragmentOnRedirect(const GURL& location) const override; | 123 bool CopyFragmentOnRedirect(const GURL& location) const override; |
| 123 bool IsSafeRedirect(const GURL& location) override; | 124 bool IsSafeRedirect(const GURL& location) override; |
| 124 bool NeedsAuth() override; | 125 bool NeedsAuth() override; |
| 125 void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) override; | 126 void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) override; |
| 126 void SetAuth(const AuthCredentials& credentials) override; | 127 void SetAuth(const AuthCredentials& credentials) override; |
| 127 void CancelAuth() override; | 128 void CancelAuth() override; |
| 128 void ContinueWithCertificate(X509Certificate* client_cert) override; | 129 void ContinueWithCertificate(X509Certificate* client_cert, |
| 130 SSLPrivateKey* client_private_key) override; |
| 129 void ContinueDespiteLastError() override; | 131 void ContinueDespiteLastError() override; |
| 130 void ResumeNetworkStart() override; | 132 void ResumeNetworkStart() override; |
| 131 int ReadRawData(IOBuffer* buf, int buf_size) override; | 133 int ReadRawData(IOBuffer* buf, int buf_size) override; |
| 132 void StopCaching() override; | 134 void StopCaching() override; |
| 133 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; | 135 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; |
| 134 int64 GetTotalReceivedBytes() const override; | 136 int64 GetTotalReceivedBytes() const override; |
| 135 int64_t GetTotalSentBytes() const override; | 137 int64_t GetTotalSentBytes() const override; |
| 136 void DoneReading() override; | 138 void DoneReading() override; |
| 137 void DoneReadingRedirectResponse() override; | 139 void DoneReadingRedirectResponse() override; |
| 138 | 140 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 int64_t total_sent_bytes_from_previous_transactions_; | 285 int64_t total_sent_bytes_from_previous_transactions_; |
| 284 | 286 |
| 285 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; | 287 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; |
| 286 | 288 |
| 287 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 289 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 288 }; | 290 }; |
| 289 | 291 |
| 290 } // namespace net | 292 } // namespace net |
| 291 | 293 |
| 292 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 294 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |