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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 // Fills the authentication info with the server's response. | 192 // Fills the authentication info with the server's response. |
192 virtual void GetAuthChallengeInfo( | 193 virtual void GetAuthChallengeInfo( |
193 scoped_refptr<AuthChallengeInfo>* auth_info); | 194 scoped_refptr<AuthChallengeInfo>* auth_info); |
194 | 195 |
195 // Resend the request with authentication credentials. | 196 // Resend the request with authentication credentials. |
196 virtual void SetAuth(const AuthCredentials& credentials); | 197 virtual void SetAuth(const AuthCredentials& credentials); |
197 | 198 |
198 // Display the error page without asking for credentials again. | 199 // Display the error page without asking for credentials again. |
199 virtual void CancelAuth(); | 200 virtual void CancelAuth(); |
200 | 201 |
201 virtual void ContinueWithCertificate(X509Certificate* client_cert); | 202 virtual void ContinueWithCertificate(X509Certificate* client_cert, |
| 203 SSLPrivateKey* client_private_key); |
202 | 204 |
203 // Continue processing the request ignoring the last error. | 205 // Continue processing the request ignoring the last error. |
204 virtual void ContinueDespiteLastError(); | 206 virtual void ContinueDespiteLastError(); |
205 | 207 |
206 // Continue with the network request. | 208 // Continue with the network request. |
207 virtual void ResumeNetworkStart(); | 209 virtual void ResumeNetworkStart(); |
208 | 210 |
209 void FollowDeferredRedirect(); | 211 void FollowDeferredRedirect(); |
210 | 212 |
211 // Returns true if the Job is done producing response data and has called | 213 // Returns true if the Job is done producing response data and has called |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 int64_t last_notified_total_sent_bytes_; | 464 int64_t last_notified_total_sent_bytes_; |
463 | 465 |
464 base::WeakPtrFactory<URLRequestJob> weak_factory_; | 466 base::WeakPtrFactory<URLRequestJob> weak_factory_; |
465 | 467 |
466 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 468 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
467 }; | 469 }; |
468 | 470 |
469 } // namespace net | 471 } // namespace net |
470 | 472 |
471 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 473 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
OLD | NEW |