| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 void StopCaching(); | 597 void StopCaching(); |
| 598 | 598 |
| 599 // This method may be called to follow a redirect that was deferred in | 599 // This method may be called to follow a redirect that was deferred in |
| 600 // response to an OnReceivedRedirect call. | 600 // response to an OnReceivedRedirect call. |
| 601 void FollowDeferredRedirect(); | 601 void FollowDeferredRedirect(); |
| 602 | 602 |
| 603 // One of the following two methods should be called in response to an | 603 // One of the following two methods should be called in response to an |
| 604 // OnAuthRequired() callback (and only then). | 604 // OnAuthRequired() callback (and only then). |
| 605 // SetAuth will reissue the request with the given credentials. | 605 // SetAuth will reissue the request with the given credentials. |
| 606 // CancelAuth will give up and display the error page. | 606 // CancelAuth will give up and display the error page. |
| 607 void SetAuth(const string16& username, const string16& password); | 607 void SetAuth(const AuthCredentials& credentials); |
| 608 void CancelAuth(); | 608 void CancelAuth(); |
| 609 | 609 |
| 610 // This method can be called after the user selects a client certificate to | 610 // This method can be called after the user selects a client certificate to |
| 611 // instruct this URLRequest to continue with the request with the | 611 // instruct this URLRequest to continue with the request with the |
| 612 // certificate. Pass NULL if the user doesn't have a client certificate. | 612 // certificate. Pass NULL if the user doesn't have a client certificate. |
| 613 void ContinueWithCertificate(X509Certificate* client_cert); | 613 void ContinueWithCertificate(X509Certificate* client_cert); |
| 614 | 614 |
| 615 // This method can be called after some error notifications to instruct this | 615 // This method can be called after some error notifications to instruct this |
| 616 // URLRequest to ignore the current error and continue with the request. To | 616 // URLRequest to ignore the current error and continue with the request. To |
| 617 // cancel the request instead, call Cancel(). | 617 // cancel the request instead, call Cancel(). |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 // the authentication challenge being handled by |NotifyAuthRequired|. | 819 // the authentication challenge being handled by |NotifyAuthRequired|. |
| 820 AuthCredentials auth_credentials_; | 820 AuthCredentials auth_credentials_; |
| 821 scoped_refptr<AuthChallengeInfo> auth_info_; | 821 scoped_refptr<AuthChallengeInfo> auth_info_; |
| 822 | 822 |
| 823 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 823 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 824 }; | 824 }; |
| 825 | 825 |
| 826 } // namespace net | 826 } // namespace net |
| 827 | 827 |
| 828 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 828 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |