| 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 <memory> | 10 #include <memory> |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // Fills the authentication info with the server's response. | 173 // Fills the authentication info with the server's response. |
| 174 virtual void GetAuthChallengeInfo( | 174 virtual void GetAuthChallengeInfo( |
| 175 scoped_refptr<AuthChallengeInfo>* auth_info); | 175 scoped_refptr<AuthChallengeInfo>* auth_info); |
| 176 | 176 |
| 177 // Resend the request with authentication credentials. | 177 // Resend the request with authentication credentials. |
| 178 virtual void SetAuth(const AuthCredentials& credentials); | 178 virtual void SetAuth(const AuthCredentials& credentials); |
| 179 | 179 |
| 180 // Display the error page without asking for credentials again. | 180 // Display the error page without asking for credentials again. |
| 181 virtual void CancelAuth(); | 181 virtual void CancelAuth(); |
| 182 | 182 |
| 183 virtual void ContinueWithCertificate(X509Certificate* client_cert, | 183 virtual void ContinueWithCertificate( |
| 184 SSLPrivateKey* client_private_key); | 184 scoped_refptr<X509Certificate> client_cert, |
| 185 scoped_refptr<SSLPrivateKey> client_private_key); |
| 185 | 186 |
| 186 // Continue processing the request ignoring the last error. | 187 // Continue processing the request ignoring the last error. |
| 187 virtual void ContinueDespiteLastError(); | 188 virtual void ContinueDespiteLastError(); |
| 188 | 189 |
| 189 void FollowDeferredRedirect(); | 190 void FollowDeferredRedirect(); |
| 190 | 191 |
| 191 // Returns true if the Job is done producing response data and has called | 192 // Returns true if the Job is done producing response data and has called |
| 192 // NotifyDone on the request. | 193 // NotifyDone on the request. |
| 193 bool is_done() const { return done_; } | 194 bool is_done() const { return done_; } |
| 194 | 195 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 CompletionCallback read_raw_callback_; | 439 CompletionCallback read_raw_callback_; |
| 439 | 440 |
| 440 base::WeakPtrFactory<URLRequestJob> weak_factory_; | 441 base::WeakPtrFactory<URLRequestJob> weak_factory_; |
| 441 | 442 |
| 442 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 443 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
| 443 }; | 444 }; |
| 444 | 445 |
| 445 } // namespace net | 446 } // namespace net |
| 446 | 447 |
| 447 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 448 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| OLD | NEW |