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