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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 // One of the following two methods should be called in response to an | 604 // One of the following two methods should be called in response to an |
605 // OnAuthRequired() callback (and only then). | 605 // OnAuthRequired() callback (and only then). |
606 // SetAuth will reissue the request with the given credentials. | 606 // SetAuth will reissue the request with the given credentials. |
607 // CancelAuth will give up and display the error page. | 607 // CancelAuth will give up and display the error page. |
608 void SetAuth(const AuthCredentials& credentials); | 608 void SetAuth(const AuthCredentials& credentials); |
609 void CancelAuth(); | 609 void CancelAuth(); |
610 | 610 |
611 // This method can be called after the user selects a client certificate to | 611 // This method can be called after the user selects a client certificate to |
612 // instruct this URLRequest to continue with the request with the | 612 // instruct this URLRequest to continue with the request with the |
613 // certificate. Pass NULL if the user doesn't have a client certificate. | 613 // certificate. Pass NULL if the user doesn't have a client certificate. |
614 void ContinueWithCertificate(X509Certificate* client_cert, | 614 void ContinueWithCertificate(scoped_refptr<X509Certificate> client_cert, |
615 SSLPrivateKey* client_private_key); | 615 scoped_refptr<SSLPrivateKey> client_private_key); |
616 | 616 |
617 // This method can be called after some error notifications to instruct this | 617 // This method can be called after some error notifications to instruct this |
618 // URLRequest to ignore the current error and continue with the request. To | 618 // URLRequest to ignore the current error and continue with the request. To |
619 // cancel the request instead, call Cancel(). | 619 // cancel the request instead, call Cancel(). |
620 void ContinueDespiteLastError(); | 620 void ContinueDespiteLastError(); |
621 | 621 |
622 // Used to specify the context (cookie store, cache) for this request. | 622 // Used to specify the context (cookie store, cache) for this request. |
623 const URLRequestContext* context() const; | 623 const URLRequestContext* context() const; |
624 | 624 |
625 const NetLogWithSource& net_log() const { return net_log_; } | 625 const NetLogWithSource& net_log() const { return net_log_; } |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 const NetworkTrafficAnnotationTag traffic_annotation_; | 872 const NetworkTrafficAnnotationTag traffic_annotation_; |
873 | 873 |
874 THREAD_CHECKER(thread_checker_); | 874 THREAD_CHECKER(thread_checker_); |
875 | 875 |
876 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 876 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
877 }; | 877 }; |
878 | 878 |
879 } // namespace net | 879 } // namespace net |
880 | 880 |
881 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 881 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
OLD | NEW |