| 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_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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 // One of the following two methods should be called in response to an | 593 // One of the following two methods should be called in response to an |
| 594 // OnAuthRequired() callback (and only then). | 594 // OnAuthRequired() callback (and only then). |
| 595 // SetAuth will reissue the request with the given credentials. | 595 // SetAuth will reissue the request with the given credentials. |
| 596 // CancelAuth will give up and display the error page. | 596 // CancelAuth will give up and display the error page. |
| 597 void SetAuth(const AuthCredentials& credentials); | 597 void SetAuth(const AuthCredentials& credentials); |
| 598 void CancelAuth(); | 598 void CancelAuth(); |
| 599 | 599 |
| 600 // This method can be called after the user selects a client certificate to | 600 // This method can be called after the user selects a client certificate to |
| 601 // instruct this URLRequest to continue with the request with the | 601 // instruct this URLRequest to continue with the request with the |
| 602 // certificate. Pass NULL if the user doesn't have a client certificate. | 602 // certificate. Pass NULL if the user doesn't have a client certificate. |
| 603 void ContinueWithCertificate(X509Certificate* client_cert, | 603 void ContinueWithCertificate(scoped_refptr<X509Certificate> client_cert, |
| 604 SSLPrivateKey* client_private_key); | 604 scoped_refptr<SSLPrivateKey> client_private_key); |
| 605 | 605 |
| 606 // This method can be called after some error notifications to instruct this | 606 // This method can be called after some error notifications to instruct this |
| 607 // URLRequest to ignore the current error and continue with the request. To | 607 // URLRequest to ignore the current error and continue with the request. To |
| 608 // cancel the request instead, call Cancel(). | 608 // cancel the request instead, call Cancel(). |
| 609 void ContinueDespiteLastError(); | 609 void ContinueDespiteLastError(); |
| 610 | 610 |
| 611 // Used to specify the context (cookie store, cache) for this request. | 611 // Used to specify the context (cookie store, cache) for this request. |
| 612 const URLRequestContext* context() const; | 612 const URLRequestContext* context() const; |
| 613 | 613 |
| 614 const NetLogWithSource& net_log() const { return net_log_; } | 614 const NetLogWithSource& net_log() const { return net_log_; } |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 | 852 |
| 853 // The raw header size of the response. | 853 // The raw header size of the response. |
| 854 int raw_header_size_; | 854 int raw_header_size_; |
| 855 | 855 |
| 856 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 856 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 857 }; | 857 }; |
| 858 | 858 |
| 859 } // namespace net | 859 } // namespace net |
| 860 | 860 |
| 861 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 861 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |