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 #include "net/http/http_response_info.h" | 5 #include "net/http/http_response_info.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/pickle.h" | 8 #include "base/pickle.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "net/base/auth.h" | 10 #include "net/base/auth.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 99 |
100 HttpResponseInfo::HttpResponseInfo() | 100 HttpResponseInfo::HttpResponseInfo() |
101 : was_cached(false), | 101 : was_cached(false), |
102 server_data_unavailable(false), | 102 server_data_unavailable(false), |
103 network_accessed(false), | 103 network_accessed(false), |
104 was_fetched_via_spdy(false), | 104 was_fetched_via_spdy(false), |
105 was_npn_negotiated(false), | 105 was_npn_negotiated(false), |
106 was_fetched_via_proxy(false), | 106 was_fetched_via_proxy(false), |
107 did_use_http_auth(false), | 107 did_use_http_auth(false), |
108 unused_since_prefetch(false), | 108 unused_since_prefetch(false), |
109 connection_info(CONNECTION_INFO_UNKNOWN) { | 109 async_revalidation_required(false), |
110 } | 110 connection_info(CONNECTION_INFO_UNKNOWN) {} |
111 | 111 |
112 HttpResponseInfo::HttpResponseInfo(const HttpResponseInfo& rhs) | 112 HttpResponseInfo::HttpResponseInfo(const HttpResponseInfo& rhs) |
113 : was_cached(rhs.was_cached), | 113 : was_cached(rhs.was_cached), |
114 server_data_unavailable(rhs.server_data_unavailable), | 114 server_data_unavailable(rhs.server_data_unavailable), |
115 network_accessed(rhs.network_accessed), | 115 network_accessed(rhs.network_accessed), |
116 was_fetched_via_spdy(rhs.was_fetched_via_spdy), | 116 was_fetched_via_spdy(rhs.was_fetched_via_spdy), |
117 was_npn_negotiated(rhs.was_npn_negotiated), | 117 was_npn_negotiated(rhs.was_npn_negotiated), |
118 was_fetched_via_proxy(rhs.was_fetched_via_proxy), | 118 was_fetched_via_proxy(rhs.was_fetched_via_proxy), |
119 proxy_server(rhs.proxy_server), | 119 proxy_server(rhs.proxy_server), |
120 did_use_http_auth(rhs.did_use_http_auth), | 120 did_use_http_auth(rhs.did_use_http_auth), |
121 unused_since_prefetch(rhs.unused_since_prefetch), | 121 unused_since_prefetch(rhs.unused_since_prefetch), |
| 122 async_revalidation_required(rhs.async_revalidation_required), |
122 socket_address(rhs.socket_address), | 123 socket_address(rhs.socket_address), |
123 npn_negotiated_protocol(rhs.npn_negotiated_protocol), | 124 npn_negotiated_protocol(rhs.npn_negotiated_protocol), |
124 connection_info(rhs.connection_info), | 125 connection_info(rhs.connection_info), |
125 request_time(rhs.request_time), | 126 request_time(rhs.request_time), |
126 response_time(rhs.response_time), | 127 response_time(rhs.response_time), |
127 auth_challenge(rhs.auth_challenge), | 128 auth_challenge(rhs.auth_challenge), |
128 cert_request_info(rhs.cert_request_info), | 129 cert_request_info(rhs.cert_request_info), |
129 ssl_info(rhs.ssl_info), | 130 ssl_info(rhs.ssl_info), |
130 headers(rhs.headers), | 131 headers(rhs.headers), |
131 vary_data(rhs.vary_data), | 132 vary_data(rhs.vary_data), |
132 metadata(rhs.metadata) { | 133 metadata(rhs.metadata) {} |
133 } | |
134 | 134 |
135 HttpResponseInfo::~HttpResponseInfo() { | 135 HttpResponseInfo::~HttpResponseInfo() { |
136 } | 136 } |
137 | 137 |
138 HttpResponseInfo& HttpResponseInfo::operator=(const HttpResponseInfo& rhs) { | 138 HttpResponseInfo& HttpResponseInfo::operator=(const HttpResponseInfo& rhs) { |
139 was_cached = rhs.was_cached; | 139 was_cached = rhs.was_cached; |
140 server_data_unavailable = rhs.server_data_unavailable; | 140 server_data_unavailable = rhs.server_data_unavailable; |
141 network_accessed = rhs.network_accessed; | 141 network_accessed = rhs.network_accessed; |
142 was_fetched_via_spdy = rhs.was_fetched_via_spdy; | 142 was_fetched_via_spdy = rhs.was_fetched_via_spdy; |
143 proxy_server = rhs.proxy_server; | 143 proxy_server = rhs.proxy_server; |
144 was_npn_negotiated = rhs.was_npn_negotiated; | 144 was_npn_negotiated = rhs.was_npn_negotiated; |
145 was_fetched_via_proxy = rhs.was_fetched_via_proxy; | 145 was_fetched_via_proxy = rhs.was_fetched_via_proxy; |
146 did_use_http_auth = rhs.did_use_http_auth; | 146 did_use_http_auth = rhs.did_use_http_auth; |
147 unused_since_prefetch = rhs.unused_since_prefetch; | 147 unused_since_prefetch = rhs.unused_since_prefetch; |
| 148 async_revalidation_required = rhs.async_revalidation_required; |
148 socket_address = rhs.socket_address; | 149 socket_address = rhs.socket_address; |
149 npn_negotiated_protocol = rhs.npn_negotiated_protocol; | 150 npn_negotiated_protocol = rhs.npn_negotiated_protocol; |
150 connection_info = rhs.connection_info; | 151 connection_info = rhs.connection_info; |
151 request_time = rhs.request_time; | 152 request_time = rhs.request_time; |
152 response_time = rhs.response_time; | 153 response_time = rhs.response_time; |
153 auth_challenge = rhs.auth_challenge; | 154 auth_challenge = rhs.auth_challenge; |
154 cert_request_info = rhs.cert_request_info; | 155 cert_request_info = rhs.cert_request_info; |
155 ssl_info = rhs.ssl_info; | 156 ssl_info = rhs.ssl_info; |
156 headers = rhs.headers; | 157 headers = rhs.headers; |
157 vary_data = rhs.vary_data; | 158 vary_data = rhs.vary_data; |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 case CONNECTION_INFO_QUIC1_SPDY3: | 420 case CONNECTION_INFO_QUIC1_SPDY3: |
420 return "quic/1+spdy/3"; | 421 return "quic/1+spdy/3"; |
421 case NUM_OF_CONNECTION_INFOS: | 422 case NUM_OF_CONNECTION_INFOS: |
422 break; | 423 break; |
423 } | 424 } |
424 NOTREACHED(); | 425 NOTREACHED(); |
425 return ""; | 426 return ""; |
426 } | 427 } |
427 | 428 |
428 } // namespace net | 429 } // namespace net |
OLD | NEW |