OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_ | 5 #ifndef CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_ |
6 #define CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_ | 6 #define CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 // The proxy server used if this request was loaded via an explicit proxy | 38 // The proxy server used if this request was loaded via an explicit proxy |
39 // (HTTP, SOCKS, etc). | 39 // (HTTP, SOCKS, etc). |
40 net::HostPortPair proxy_server() const { | 40 net::HostPortPair proxy_server() const { |
41 return proxy_server_; | 41 return proxy_server_; |
42 } | 42 } |
43 void set_proxy_server(net::HostPortPair proxy_server) { | 43 void set_proxy_server(net::HostPortPair proxy_server) { |
44 proxy_server_ = proxy_server; | 44 proxy_server_ = proxy_server; |
45 } | 45 } |
46 | 46 |
| 47 // Flag whether this request was loaded in low fidelity. |
| 48 bool was_fetched_lo_fi() const { |
| 49 return was_fetched_lo_fi_; |
| 50 } |
| 51 void set_was_fetched_lo_fi(bool was_fetched_lo_fi) { |
| 52 was_fetched_lo_fi_ = was_fetched_lo_fi; |
| 53 } |
| 54 |
47 /// Flag whether this request was loaded via the SPDY protocol or not. | 55 /// Flag whether this request was loaded via the SPDY protocol or not. |
48 // SPDY is an experimental web protocol, see http://dev.chromium.org/spdy | 56 // SPDY is an experimental web protocol, see http://dev.chromium.org/spdy |
49 bool was_fetched_via_spdy() const { | 57 bool was_fetched_via_spdy() const { |
50 return was_fetched_via_spdy_; | 58 return was_fetched_via_spdy_; |
51 } | 59 } |
52 void set_was_fetched_via_spdy(bool was_fetched_via_spdy) { | 60 void set_was_fetched_via_spdy(bool was_fetched_via_spdy) { |
53 was_fetched_via_spdy_ = was_fetched_via_spdy; | 61 was_fetched_via_spdy_ = was_fetched_via_spdy; |
54 } | 62 } |
55 | 63 |
56 // Information about the type of connection used to fetch this response. | 64 // Information about the type of connection used to fetch this response. |
(...skipping 27 matching lines...) Expand all Loading... |
84 | 92 |
85 bool is_ftp_directory_listing() const { return is_ftp_directory_listing_; } | 93 bool is_ftp_directory_listing() const { return is_ftp_directory_listing_; } |
86 void set_is_ftp_directory_listing(bool is_ftp_directory_listing) { | 94 void set_is_ftp_directory_listing(bool is_ftp_directory_listing) { |
87 is_ftp_directory_listing_ = is_ftp_directory_listing; | 95 is_ftp_directory_listing_ = is_ftp_directory_listing; |
88 } | 96 } |
89 | 97 |
90 private: | 98 private: |
91 std::string npn_negotiated_protocol_; | 99 std::string npn_negotiated_protocol_; |
92 bool is_ftp_directory_listing_; | 100 bool is_ftp_directory_listing_; |
93 bool was_fetched_via_proxy_; | 101 bool was_fetched_via_proxy_; |
| 102 bool was_fetched_lo_fi_; |
94 net::HostPortPair proxy_server_; | 103 net::HostPortPair proxy_server_; |
95 bool was_fetched_via_spdy_; | 104 bool was_fetched_via_spdy_; |
96 bool was_npn_negotiated_; | 105 bool was_npn_negotiated_; |
97 net::HttpResponseInfo::ConnectionInfo connection_info_; | 106 net::HttpResponseInfo::ConnectionInfo connection_info_; |
98 bool was_alternate_protocol_available_; | 107 bool was_alternate_protocol_available_; |
99 | 108 |
100 DISALLOW_COPY_AND_ASSIGN(WebURLResponseExtraDataImpl); | 109 DISALLOW_COPY_AND_ASSIGN(WebURLResponseExtraDataImpl); |
101 }; | 110 }; |
102 | 111 |
103 } // namespace content | 112 } // namespace content |
104 | 113 |
105 #endif // CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_ | 114 #endif // CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_ |
OLD | NEW |