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