Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(834)

Side by Side Diff: net/url_request/url_request.h

Issue 2334623003: Store net::ProxyServer in HttpResponseInfo object (Closed)
Patch Set: Rebased, fix compile error Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/chromium/quic_network_transaction_unittest.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 #include "net/base/load_timing_info.h" 24 #include "net/base/load_timing_info.h"
25 #include "net/base/net_error_details.h" 25 #include "net/base/net_error_details.h"
26 #include "net/base/net_export.h" 26 #include "net/base/net_export.h"
27 #include "net/base/network_delegate.h" 27 #include "net/base/network_delegate.h"
28 #include "net/base/request_priority.h" 28 #include "net/base/request_priority.h"
29 #include "net/base/upload_progress.h" 29 #include "net/base/upload_progress.h"
30 #include "net/cookies/canonical_cookie.h" 30 #include "net/cookies/canonical_cookie.h"
31 #include "net/http/http_request_headers.h" 31 #include "net/http/http_request_headers.h"
32 #include "net/http/http_response_info.h" 32 #include "net/http/http_response_info.h"
33 #include "net/log/net_log_with_source.h" 33 #include "net/log/net_log_with_source.h"
34 #include "net/proxy/proxy_server.h"
34 #include "net/socket/connection_attempts.h" 35 #include "net/socket/connection_attempts.h"
35 #include "net/url_request/url_request_status.h" 36 #include "net/url_request/url_request_status.h"
36 #include "url/gurl.h" 37 #include "url/gurl.h"
37 #include "url/origin.h" 38 #include "url/origin.h"
38 39
39 namespace base { 40 namespace base {
40 class Value; 41 class Value;
41 42
42 namespace debug { 43 namespace debug {
43 class StackTrace; 44 class StackTrace;
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 625
625 // The number of bytes in the raw response body (before any decompression, 626 // The number of bytes in the raw response body (before any decompression,
626 // etc.). This is only available after the final Read completes. Not available 627 // etc.). This is only available after the final Read completes. Not available
627 // for FTP responses. 628 // for FTP responses.
628 int64_t received_response_content_length() const { 629 int64_t received_response_content_length() const {
629 return received_response_content_length_; 630 return received_response_content_length_;
630 } 631 }
631 632
632 // Available at NetworkDelegate::NotifyHeadersReceived() time, which is before 633 // Available at NetworkDelegate::NotifyHeadersReceived() time, which is before
633 // the more general response_info() is available, even though it is a subset. 634 // the more general response_info() is available, even though it is a subset.
634 const HostPortPair& proxy_server() const { 635 const ProxyServer& proxy_server() const { return proxy_server_; }
635 return proxy_server_;
636 }
637 636
638 // Gets the connection attempts made in the process of servicing this 637 // Gets the connection attempts made in the process of servicing this
639 // URLRequest. Only guaranteed to be valid if called after the request fails 638 // URLRequest. Only guaranteed to be valid if called after the request fails
640 // or after the response headers are received. 639 // or after the response headers are received.
641 void GetConnectionAttempts(ConnectionAttempts* out) const; 640 void GetConnectionAttempts(ConnectionAttempts* out) const;
642 641
643 // Gets the over the wire raw header size of the response after https 642 // Gets the over the wire raw header size of the response after https
644 // encryption, 0 for cached responses. 643 // encryption, 0 for cached responses.
645 int raw_header_size() const { return raw_header_size_; } 644 int raw_header_size() const { return raw_header_size_; }
646 645
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 841
843 int64_t received_response_content_length_; 842 int64_t received_response_content_length_;
844 843
845 base::TimeTicks creation_time_; 844 base::TimeTicks creation_time_;
846 845
847 // Timing information for the most recent request. Its start times are 846 // Timing information for the most recent request. Its start times are
848 // populated during Start(), and the rest are populated in OnResponseReceived. 847 // populated during Start(), and the rest are populated in OnResponseReceived.
849 LoadTimingInfo load_timing_info_; 848 LoadTimingInfo load_timing_info_;
850 849
851 // The proxy server used for this request, if any. 850 // The proxy server used for this request, if any.
852 HostPortPair proxy_server_; 851 ProxyServer proxy_server_;
853 852
854 // The raw header size of the response. 853 // The raw header size of the response.
855 int raw_header_size_; 854 int raw_header_size_;
856 855
857 DISALLOW_COPY_AND_ASSIGN(URLRequest); 856 DISALLOW_COPY_AND_ASSIGN(URLRequest);
858 }; 857 };
859 858
860 } // namespace net 859 } // namespace net
861 860
862 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 861 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_network_transaction_unittest.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698