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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 | 659 |
660 // NOTE(willchan): This is just temporary for debugging | 660 // NOTE(willchan): This is just temporary for debugging |
661 // http://crbug.com/90971. | 661 // http://crbug.com/90971. |
662 // Allows to setting debug info into the URLRequest. | 662 // Allows to setting debug info into the URLRequest. |
663 void set_stack_trace(const base::debug::StackTrace& stack_trace); | 663 void set_stack_trace(const base::debug::StackTrace& stack_trace); |
664 const base::debug::StackTrace* stack_trace() const; | 664 const base::debug::StackTrace* stack_trace() const; |
665 | 665 |
666 void set_received_response_content_length(int64 received_content_length) { | 666 void set_received_response_content_length(int64 received_content_length) { |
667 received_response_content_length_ = received_content_length; | 667 received_response_content_length_ = received_content_length; |
668 } | 668 } |
669 int64 received_response_content_length() { | 669 int64 received_response_content_length() const { |
670 return received_response_content_length_; | 670 return received_response_content_length_; |
671 } | 671 } |
672 | 672 |
673 // Available at NetworkDelegate::NotifyHeadersReceived() time, which is before | 673 // Available at NetworkDelegate::NotifyHeadersReceived() time, which is before |
674 // the more general response_info() is available, even though it is a subset. | 674 // the more general response_info() is available, even though it is a subset. |
675 const HostPortPair& proxy_server() const { | 675 const HostPortPair& proxy_server() const { |
676 return proxy_server_; | 676 return proxy_server_; |
677 } | 677 } |
678 | 678 |
679 protected: | 679 protected: |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
891 | 891 |
892 // The proxy server used for this request, if any. | 892 // The proxy server used for this request, if any. |
893 HostPortPair proxy_server_; | 893 HostPortPair proxy_server_; |
894 | 894 |
895 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 895 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
896 }; | 896 }; |
897 | 897 |
898 } // namespace net | 898 } // namespace net |
899 | 899 |
900 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 900 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
OLD | NEW |