Chromium Code Reviews| 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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 583 // Note that this method has no effect on other (simultaneous or not) requests | 583 // Note that this method has no effect on other (simultaneous or not) requests |
| 584 // for the same resource. The typical example is a request that results in | 584 // for the same resource. The typical example is a request that results in |
| 585 // the data being stored to disk (downloaded instead of rendered) so we don't | 585 // the data being stored to disk (downloaded instead of rendered) so we don't |
| 586 // want to store it twice. | 586 // want to store it twice. |
| 587 void StopCaching(); | 587 void StopCaching(); |
| 588 | 588 |
| 589 // This method may be called to follow a redirect that was deferred in | 589 // This method may be called to follow a redirect that was deferred in |
| 590 // response to an OnReceivedRedirect call. | 590 // response to an OnReceivedRedirect call. |
| 591 void FollowDeferredRedirect(); | 591 void FollowDeferredRedirect(); |
| 592 | 592 |
| 593 // Returns the URL of a redirect that has been previously deferred. | |
| 594 const GURL& GetDeferredRedirectUrl(); | |
|
jam
2017/01/09 21:15:46
nit: i believe these net changes aren't needed any
carlosk
2017/01/10 19:13:11
Yes, I spun this off, changed it there and forgot
| |
| 595 | |
| 593 // One of the following two methods should be called in response to an | 596 // One of the following two methods should be called in response to an |
| 594 // OnAuthRequired() callback (and only then). | 597 // OnAuthRequired() callback (and only then). |
| 595 // SetAuth will reissue the request with the given credentials. | 598 // SetAuth will reissue the request with the given credentials. |
| 596 // CancelAuth will give up and display the error page. | 599 // CancelAuth will give up and display the error page. |
| 597 void SetAuth(const AuthCredentials& credentials); | 600 void SetAuth(const AuthCredentials& credentials); |
| 598 void CancelAuth(); | 601 void CancelAuth(); |
| 599 | 602 |
| 600 // This method can be called after the user selects a client certificate to | 603 // This method can be called after the user selects a client certificate to |
| 601 // instruct this URLRequest to continue with the request with the | 604 // instruct this URLRequest to continue with the request with the |
| 602 // certificate. Pass NULL if the user doesn't have a client certificate. | 605 // certificate. Pass NULL if the user doesn't have a client certificate. |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 852 | 855 |
| 853 // The raw header size of the response. | 856 // The raw header size of the response. |
| 854 int raw_header_size_; | 857 int raw_header_size_; |
| 855 | 858 |
| 856 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 859 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 857 }; | 860 }; |
| 858 | 861 |
| 859 } // namespace net | 862 } // namespace net |
| 860 | 863 |
| 861 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 864 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |