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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 int64_t GetExpectedContentSize() const; | 615 int64_t GetExpectedContentSize() const; |
616 | 616 |
617 // Returns the priority level for this request. | 617 // Returns the priority level for this request. |
618 RequestPriority priority() const { return priority_; } | 618 RequestPriority priority() const { return priority_; } |
619 | 619 |
620 // Sets the priority level for this request and any related | 620 // Sets the priority level for this request and any related |
621 // jobs. Must not change the priority to anything other than | 621 // jobs. Must not change the priority to anything other than |
622 // MAXIMUM_PRIORITY if the IGNORE_LIMITS load flag is set. | 622 // MAXIMUM_PRIORITY if the IGNORE_LIMITS load flag is set. |
623 void SetPriority(RequestPriority priority); | 623 void SetPriority(RequestPriority priority); |
624 | 624 |
625 // Returns true iff this request would be internally redirected to HTTPS | |
626 // due to HSTS. If so, |redirect_url| is rewritten to the new HTTPS URL. | |
627 bool GetHSTSRedirect(GURL* redirect_url) const; | |
628 | |
629 void set_received_response_content_length(int64_t received_content_length) { | 625 void set_received_response_content_length(int64_t received_content_length) { |
630 received_response_content_length_ = received_content_length; | 626 received_response_content_length_ = received_content_length; |
631 } | 627 } |
632 | 628 |
633 // The number of bytes in the raw response body (before any decompression, | 629 // The number of bytes in the raw response body (before any decompression, |
634 // etc.). This is only available after the final Read completes. Not available | 630 // etc.). This is only available after the final Read completes. Not available |
635 // for FTP responses. | 631 // for FTP responses. |
636 int64_t received_response_content_length() const { | 632 int64_t received_response_content_length() const { |
637 return received_response_content_length_; | 633 return received_response_content_length_; |
638 } | 634 } |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 | 850 |
855 // The proxy server used for this request, if any. | 851 // The proxy server used for this request, if any. |
856 HostPortPair proxy_server_; | 852 HostPortPair proxy_server_; |
857 | 853 |
858 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 854 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
859 }; | 855 }; |
860 | 856 |
861 } // namespace net | 857 } // namespace net |
862 | 858 |
863 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 859 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
OLD | NEW |