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 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 return proxy_server_; | 687 return proxy_server_; |
688 } | 688 } |
689 | 689 |
690 protected: | 690 protected: |
691 // Allow the URLRequestJob class to control the is_pending() flag. | 691 // Allow the URLRequestJob class to control the is_pending() flag. |
692 void set_is_pending(bool value) { is_pending_ = value; } | 692 void set_is_pending(bool value) { is_pending_ = value; } |
693 | 693 |
694 // Allow the URLRequestJob class to set our status too | 694 // Allow the URLRequestJob class to set our status too |
695 void set_status(const URLRequestStatus& value) { status_ = value; } | 695 void set_status(const URLRequestStatus& value) { status_ = value; } |
696 | 696 |
697 CookieStore* cookie_store() const { return cookie_store_; } | 697 CookieStore* cookie_store() const { return cookie_store_.get(); } |
698 | 698 |
699 // Allow the URLRequestJob to redirect this request. Returns OK if | 699 // Allow the URLRequestJob to redirect this request. Returns OK if |
700 // successful, otherwise an error code is returned. | 700 // successful, otherwise an error code is returned. |
701 int Redirect(const RedirectInfo& redirect_info); | 701 int Redirect(const RedirectInfo& redirect_info); |
702 | 702 |
703 // Called by URLRequestJob to allow interception when a redirect occurs. | 703 // Called by URLRequestJob to allow interception when a redirect occurs. |
704 void NotifyReceivedRedirect(const RedirectInfo& redirect_info, | 704 void NotifyReceivedRedirect(const RedirectInfo& redirect_info, |
705 bool* defer_redirect); | 705 bool* defer_redirect); |
706 | 706 |
707 // Called by URLRequestHttpJob (note, only HTTP(S) jobs will call this) to | 707 // Called by URLRequestHttpJob (note, only HTTP(S) jobs will call this) to |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 | 890 |
891 // The proxy server used for this request, if any. | 891 // The proxy server used for this request, if any. |
892 HostPortPair proxy_server_; | 892 HostPortPair proxy_server_; |
893 | 893 |
894 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 894 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
895 }; | 895 }; |
896 | 896 |
897 } // namespace net | 897 } // namespace net |
898 | 898 |
899 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 899 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
OLD | NEW |