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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
641 // the more general response_info() is available, even though it is a subset. | 641 // the more general response_info() is available, even though it is a subset. |
642 const HostPortPair& proxy_server() const { | 642 const HostPortPair& proxy_server() const { |
643 return proxy_server_; | 643 return proxy_server_; |
644 } | 644 } |
645 | 645 |
646 // Gets the connection attempts made in the process of servicing this | 646 // Gets the connection attempts made in the process of servicing this |
647 // URLRequest. Only guaranteed to be valid if called after the request fails | 647 // URLRequest. Only guaranteed to be valid if called after the request fails |
648 // or after the response headers are received. | 648 // or after the response headers are received. |
649 void GetConnectionAttempts(ConnectionAttempts* out) const; | 649 void GetConnectionAttempts(ConnectionAttempts* out) const; |
650 | 650 |
651 // Gets the raw header size of the response. | |
mmenke
2016/09/06 18:55:00
Worth explicitly calling out what this means? (So
allada
2016/09/07 06:01:12
Done.
| |
652 int raw_header_size() const { return raw_header_size_; } | |
653 | |
651 protected: | 654 protected: |
652 // Allow the URLRequestJob class to control the is_pending() flag. | 655 // Allow the URLRequestJob class to control the is_pending() flag. |
653 void set_is_pending(bool value) { is_pending_ = value; } | 656 void set_is_pending(bool value) { is_pending_ = value; } |
654 | 657 |
655 // Allow the URLRequestJob class to set our status too. | 658 // Allow the URLRequestJob class to set our status too. |
656 void set_status(URLRequestStatus status); | 659 void set_status(URLRequestStatus status); |
657 | 660 |
658 // Allow the URLRequestJob to redirect this request. Returns OK if | 661 // Allow the URLRequestJob to redirect this request. Returns OK if |
659 // successful, otherwise an error code is returned. | 662 // successful, otherwise an error code is returned. |
660 int Redirect(const RedirectInfo& redirect_info); | 663 int Redirect(const RedirectInfo& redirect_info); |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
841 | 844 |
842 base::TimeTicks creation_time_; | 845 base::TimeTicks creation_time_; |
843 | 846 |
844 // Timing information for the most recent request. Its start times are | 847 // Timing information for the most recent request. Its start times are |
845 // populated during Start(), and the rest are populated in OnResponseReceived. | 848 // populated during Start(), and the rest are populated in OnResponseReceived. |
846 LoadTimingInfo load_timing_info_; | 849 LoadTimingInfo load_timing_info_; |
847 | 850 |
848 // The proxy server used for this request, if any. | 851 // The proxy server used for this request, if any. |
849 HostPortPair proxy_server_; | 852 HostPortPair proxy_server_; |
850 | 853 |
854 // The raw header size of the response. | |
855 int raw_header_size_; | |
856 | |
851 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 857 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
852 }; | 858 }; |
853 | 859 |
854 } // namespace net | 860 } // namespace net |
855 | 861 |
856 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 862 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
OLD | NEW |