| 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_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 class AuthCredentials; | 32 class AuthCredentials; |
| 33 class CookieOptions; | 33 class CookieOptions; |
| 34 class Filter; | 34 class Filter; |
| 35 class HttpRequestHeaders; | 35 class HttpRequestHeaders; |
| 36 class HttpResponseInfo; | 36 class HttpResponseInfo; |
| 37 class IOBuffer; | 37 class IOBuffer; |
| 38 struct LoadTimingInfo; | 38 struct LoadTimingInfo; |
| 39 class NetworkDelegate; | 39 class NetworkDelegate; |
| 40 class SSLCertRequestInfo; | 40 class SSLCertRequestInfo; |
| 41 class SSLInfo; | 41 class SSLInfo; |
| 42 class SSLPrivateKey; |
| 42 class UploadDataStream; | 43 class UploadDataStream; |
| 43 class URLRequestStatus; | 44 class URLRequestStatus; |
| 44 class X509Certificate; | 45 class X509Certificate; |
| 45 | 46 |
| 46 class NET_EXPORT URLRequestJob | 47 class NET_EXPORT URLRequestJob |
| 47 : public base::RefCounted<URLRequestJob>, | 48 : public base::RefCounted<URLRequestJob>, |
| 48 public base::PowerObserver { | 49 public base::PowerObserver { |
| 49 public: | 50 public: |
| 50 explicit URLRequestJob(URLRequest* request, | 51 explicit URLRequestJob(URLRequest* request, |
| 51 NetworkDelegate* network_delegate); | 52 NetworkDelegate* network_delegate); |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 // Fills the authentication info with the server's response. | 187 // Fills the authentication info with the server's response. |
| 187 virtual void GetAuthChallengeInfo( | 188 virtual void GetAuthChallengeInfo( |
| 188 scoped_refptr<AuthChallengeInfo>* auth_info); | 189 scoped_refptr<AuthChallengeInfo>* auth_info); |
| 189 | 190 |
| 190 // Resend the request with authentication credentials. | 191 // Resend the request with authentication credentials. |
| 191 virtual void SetAuth(const AuthCredentials& credentials); | 192 virtual void SetAuth(const AuthCredentials& credentials); |
| 192 | 193 |
| 193 // Display the error page without asking for credentials again. | 194 // Display the error page without asking for credentials again. |
| 194 virtual void CancelAuth(); | 195 virtual void CancelAuth(); |
| 195 | 196 |
| 196 virtual void ContinueWithCertificate(X509Certificate* client_cert); | 197 virtual void ContinueWithCertificate(X509Certificate* client_cert, |
| 198 SSLPrivateKey* client_private_key); |
| 197 | 199 |
| 198 // Continue processing the request ignoring the last error. | 200 // Continue processing the request ignoring the last error. |
| 199 virtual void ContinueDespiteLastError(); | 201 virtual void ContinueDespiteLastError(); |
| 200 | 202 |
| 201 // Continue with the network request. | 203 // Continue with the network request. |
| 202 virtual void ResumeNetworkStart(); | 204 virtual void ResumeNetworkStart(); |
| 203 | 205 |
| 204 void FollowDeferredRedirect(); | 206 void FollowDeferredRedirect(); |
| 205 | 207 |
| 206 // Returns true if the Job is done producing response data and has called | 208 // Returns true if the Job is done producing response data and has called |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 int64_t last_notified_total_received_bytes_; | 455 int64_t last_notified_total_received_bytes_; |
| 454 | 456 |
| 455 base::WeakPtrFactory<URLRequestJob> weak_factory_; | 457 base::WeakPtrFactory<URLRequestJob> weak_factory_; |
| 456 | 458 |
| 457 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 459 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
| 458 }; | 460 }; |
| 459 | 461 |
| 460 } // namespace net | 462 } // namespace net |
| 461 | 463 |
| 462 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 464 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| OLD | NEW |