OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 // Resend the request with authentication credentials. | 164 // Resend the request with authentication credentials. |
165 virtual void SetAuth(const string16& username, | 165 virtual void SetAuth(const string16& username, |
166 const string16& password); | 166 const string16& password); |
167 | 167 |
168 // Display the error page without asking for credentials again. | 168 // Display the error page without asking for credentials again. |
169 virtual void CancelAuth(); | 169 virtual void CancelAuth(); |
170 | 170 |
171 virtual void ContinueWithCertificate(net::X509Certificate* client_cert); | 171 virtual void ContinueWithCertificate(net::X509Certificate* client_cert); |
172 | 172 |
| 173 virtual void ContinueWithTLSLogin(); |
| 174 virtual void CancelTLSLogin(); |
| 175 |
173 // Continue processing the request ignoring the last error. | 176 // Continue processing the request ignoring the last error. |
174 virtual void ContinueDespiteLastError(); | 177 virtual void ContinueDespiteLastError(); |
175 | 178 |
176 void FollowDeferredRedirect(); | 179 void FollowDeferredRedirect(); |
177 | 180 |
178 // Returns true if the Job is done producing response data and has called | 181 // Returns true if the Job is done producing response data and has called |
179 // NotifyDone on the request. | 182 // NotifyDone on the request. |
180 bool is_done() const { return done_; } | 183 bool is_done() const { return done_; } |
181 | 184 |
182 // Returns true if the job is doing performance profiling | 185 // Returns true if the job is doing performance profiling |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 // The count of the number of packets, some of which may not have been timed. | 416 // The count of the number of packets, some of which may not have been timed. |
414 // We're ignoring overflow, as 1430 x 2^31 is a LOT of bytes. | 417 // We're ignoring overflow, as 1430 x 2^31 is a LOT of bytes. |
415 int observed_packet_count_; | 418 int observed_packet_count_; |
416 | 419 |
417 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 420 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
418 }; | 421 }; |
419 | 422 |
420 } // namespace net | 423 } // namespace net |
421 | 424 |
422 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 425 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
OLD | NEW |