| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 // response to an OnReceivedRedirect call. | 588 // response to an OnReceivedRedirect call. |
| 589 void FollowDeferredRedirect(); | 589 void FollowDeferredRedirect(); |
| 590 | 590 |
| 591 // One of the following two methods should be called in response to an | 591 // One of the following two methods should be called in response to an |
| 592 // OnAuthRequired() callback (and only then). | 592 // OnAuthRequired() callback (and only then). |
| 593 // SetAuth will reissue the request with the given credentials. | 593 // SetAuth will reissue the request with the given credentials. |
| 594 // CancelAuth will give up and display the error page. | 594 // CancelAuth will give up and display the error page. |
| 595 void SetAuth(const AuthCredentials& credentials); | 595 void SetAuth(const AuthCredentials& credentials); |
| 596 void CancelAuth(); | 596 void CancelAuth(); |
| 597 | 597 |
| 598 // Check whether the request has authentication credentials. |
| 599 bool HasAuth() const; |
| 600 |
| 598 // This method can be called after the user selects a client certificate to | 601 // This method can be called after the user selects a client certificate to |
| 599 // instruct this URLRequest to continue with the request with the | 602 // instruct this URLRequest to continue with the request with the |
| 600 // certificate. Pass NULL if the user doesn't have a client certificate. | 603 // certificate. Pass NULL if the user doesn't have a client certificate. |
| 601 void ContinueWithCertificate(X509Certificate* client_cert); | 604 void ContinueWithCertificate(X509Certificate* client_cert); |
| 602 | 605 |
| 603 // 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 |
| 604 // 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 |
| 605 // cancel the request instead, call Cancel(). | 608 // cancel the request instead, call Cancel(). |
| 606 void ContinueDespiteLastError(); | 609 void ContinueDespiteLastError(); |
| 607 | 610 |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 LoadTimingInfo load_timing_info_; | 841 LoadTimingInfo load_timing_info_; |
| 839 | 842 |
| 840 scoped_ptr<const base::debug::StackTrace> stack_trace_; | 843 scoped_ptr<const base::debug::StackTrace> stack_trace_; |
| 841 | 844 |
| 842 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 845 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 843 }; | 846 }; |
| 844 | 847 |
| 845 } // namespace net | 848 } // namespace net |
| 846 | 849 |
| 847 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 850 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |