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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 // Note that this method has no effect on other (simultaneous or not) requests | 577 // Note that this method has no effect on other (simultaneous or not) requests |
578 // for the same resource. The typical example is a request that results in | 578 // for the same resource. The typical example is a request that results in |
579 // the data being stored to disk (downloaded instead of rendered) so we don't | 579 // the data being stored to disk (downloaded instead of rendered) so we don't |
580 // want to store it twice. | 580 // want to store it twice. |
581 void StopCaching(); | 581 void StopCaching(); |
582 | 582 |
583 // This method may be called to follow a redirect that was deferred in | 583 // This method may be called to follow a redirect that was deferred in |
584 // response to an OnReceivedRedirect call. | 584 // response to an OnReceivedRedirect call. |
585 void FollowDeferredRedirect(); | 585 void FollowDeferredRedirect(); |
586 | 586 |
587 // This method must be called to resume network communications that were | |
588 // deferred in response to an OnBeforeNetworkStart call. | |
589 void ResumeNetworkStart(); | |
590 | |
591 // One of the following two methods should be called in response to an | 587 // One of the following two methods should be called in response to an |
592 // OnAuthRequired() callback (and only then). | 588 // OnAuthRequired() callback (and only then). |
593 // SetAuth will reissue the request with the given credentials. | 589 // SetAuth will reissue the request with the given credentials. |
594 // CancelAuth will give up and display the error page. | 590 // CancelAuth will give up and display the error page. |
595 void SetAuth(const AuthCredentials& credentials); | 591 void SetAuth(const AuthCredentials& credentials); |
596 void CancelAuth(); | 592 void CancelAuth(); |
597 | 593 |
598 // This method can be called after the user selects a client certificate to | 594 // This method can be called after the user selects a client certificate to |
599 // instruct this URLRequest to continue with the request with the | 595 // instruct this URLRequest to continue with the request with the |
600 // certificate. Pass NULL if the user doesn't have a client certificate. | 596 // certificate. Pass NULL if the user doesn't have a client certificate. |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 | 853 |
858 // The raw header size of the response. | 854 // The raw header size of the response. |
859 int raw_header_size_; | 855 int raw_header_size_; |
860 | 856 |
861 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 857 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
862 }; | 858 }; |
863 | 859 |
864 } // namespace net | 860 } // namespace net |
865 | 861 |
866 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 862 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
OLD | NEW |