| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // we were expecting for that host. The delegate should either do the | 180 // we were expecting for that host. The delegate should either do the |
| 181 // safe thing and Cancel() the request or decide to proceed by calling | 181 // safe thing and Cancel() the request or decide to proceed by calling |
| 182 // ContinueDespiteLastError(). cert_error is a net::ERR_* error code | 182 // ContinueDespiteLastError(). cert_error is a net::ERR_* error code |
| 183 // indicating what's wrong with the certificate. | 183 // indicating what's wrong with the certificate. |
| 184 virtual void OnSSLCertificateError(URLRequest* request, | 184 virtual void OnSSLCertificateError(URLRequest* request, |
| 185 int cert_error, | 185 int cert_error, |
| 186 net::X509Certificate* cert) { | 186 net::X509Certificate* cert) { |
| 187 request->Cancel(); | 187 request->Cancel(); |
| 188 } | 188 } |
| 189 | 189 |
| 190 // Called when the server response body contains a client certificate to be |
| 191 // stored locally. This happens in response to the posting of a form that |
| 192 // contains a <keygen> element -- the server fills out the certificate |
| 193 // request and returns the X.509 cert data. |
| 194 virtual void OnClientCertificateGenerated(URLRequest* request, |
| 195 net::X509Certificate* cert) { |
| 196 } |
| 197 |
| 190 // Called when unable to get cookies due to policy. | 198 // Called when unable to get cookies due to policy. |
| 191 virtual void OnGetCookiesBlocked(URLRequest* request) { | 199 virtual void OnGetCookiesBlocked(URLRequest* request) { |
| 192 } | 200 } |
| 193 | 201 |
| 194 // Called when unable to set a cookie due to policy. | 202 // Called when unable to set a cookie due to policy. |
| 195 virtual void OnSetCookieBlocked(URLRequest* request) { | 203 virtual void OnSetCookieBlocked(URLRequest* request) { |
| 196 } | 204 } |
| 197 | 205 |
| 198 // After calling Start(), the delegate will receive an OnResponseStarted | 206 // After calling Start(), the delegate will receive an OnResponseStarted |
| 199 // callback when the request has completed. If an error occurred, the | 207 // callback when the request has completed. If an error occurred, the |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 // this to determine which URLRequest to allocate sockets to first. | 639 // this to determine which URLRequest to allocate sockets to first. |
| 632 net::RequestPriority priority_; | 640 net::RequestPriority priority_; |
| 633 | 641 |
| 634 RequestTracker<URLRequest>::Node request_tracker_node_; | 642 RequestTracker<URLRequest>::Node request_tracker_node_; |
| 635 base::LeakTracker<URLRequest> leak_tracker_; | 643 base::LeakTracker<URLRequest> leak_tracker_; |
| 636 | 644 |
| 637 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 645 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 638 }; | 646 }; |
| 639 | 647 |
| 640 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 648 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |