| 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 22 matching lines...) Expand all Loading... |
| 33 class AuthCredentials; | 33 class AuthCredentials; |
| 34 class CookieOptions; | 34 class CookieOptions; |
| 35 class Filter; | 35 class Filter; |
| 36 class HttpRequestHeaders; | 36 class HttpRequestHeaders; |
| 37 class HttpResponseInfo; | 37 class HttpResponseInfo; |
| 38 class IOBuffer; | 38 class IOBuffer; |
| 39 struct LoadTimingInfo; | 39 struct LoadTimingInfo; |
| 40 class NetworkDelegate; | 40 class NetworkDelegate; |
| 41 class SSLCertRequestInfo; | 41 class SSLCertRequestInfo; |
| 42 class SSLInfo; | 42 class SSLInfo; |
| 43 class SSLPrivateKey; |
| 43 class UploadDataStream; | 44 class UploadDataStream; |
| 44 class URLRequestStatus; | 45 class URLRequestStatus; |
| 45 class X509Certificate; | 46 class X509Certificate; |
| 46 | 47 |
| 47 class NET_EXPORT URLRequestJob | 48 class NET_EXPORT URLRequestJob |
| 48 : public base::RefCounted<URLRequestJob>, | 49 : public base::RefCounted<URLRequestJob>, |
| 49 public base::PowerObserver { | 50 public base::PowerObserver { |
| 50 public: | 51 public: |
| 51 explicit URLRequestJob(URLRequest* request, | 52 explicit URLRequestJob(URLRequest* request, |
| 52 NetworkDelegate* network_delegate); | 53 NetworkDelegate* network_delegate); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // Fills the authentication info with the server's response. | 193 // Fills the authentication info with the server's response. |
| 193 virtual void GetAuthChallengeInfo( | 194 virtual void GetAuthChallengeInfo( |
| 194 scoped_refptr<AuthChallengeInfo>* auth_info); | 195 scoped_refptr<AuthChallengeInfo>* auth_info); |
| 195 | 196 |
| 196 // Resend the request with authentication credentials. | 197 // Resend the request with authentication credentials. |
| 197 virtual void SetAuth(const AuthCredentials& credentials); | 198 virtual void SetAuth(const AuthCredentials& credentials); |
| 198 | 199 |
| 199 // Display the error page without asking for credentials again. | 200 // Display the error page without asking for credentials again. |
| 200 virtual void CancelAuth(); | 201 virtual void CancelAuth(); |
| 201 | 202 |
| 202 virtual void ContinueWithCertificate(X509Certificate* client_cert); | 203 virtual void ContinueWithCertificate(X509Certificate* client_cert, |
| 204 SSLPrivateKey* client_private_key); |
| 203 | 205 |
| 204 // Continue processing the request ignoring the last error. | 206 // Continue processing the request ignoring the last error. |
| 205 virtual void ContinueDespiteLastError(); | 207 virtual void ContinueDespiteLastError(); |
| 206 | 208 |
| 207 // Continue with the network request. | 209 // Continue with the network request. |
| 208 virtual void ResumeNetworkStart(); | 210 virtual void ResumeNetworkStart(); |
| 209 | 211 |
| 210 void FollowDeferredRedirect(); | 212 void FollowDeferredRedirect(); |
| 211 | 213 |
| 212 // Returns true if the Job is done producing response data and has called | 214 // Returns true if the Job is done producing response data and has called |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 int64_t last_notified_total_sent_bytes_; | 477 int64_t last_notified_total_sent_bytes_; |
| 476 | 478 |
| 477 base::WeakPtrFactory<URLRequestJob> weak_factory_; | 479 base::WeakPtrFactory<URLRequestJob> weak_factory_; |
| 478 | 480 |
| 479 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 481 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
| 480 }; | 482 }; |
| 481 | 483 |
| 482 } // namespace net | 484 } // namespace net |
| 483 | 485 |
| 484 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 486 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| OLD | NEW |