| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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.h" | 9 #include "base/time.h" |
| 10 #include "net/base/auth.h" | 10 #include "net/base/auth.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 was_fetched_via_spdy(false), | 64 was_fetched_via_spdy(false), |
| 65 was_npn_negotiated(false), | 65 was_npn_negotiated(false), |
| 66 was_alternate_protocol_available(false), | 66 was_alternate_protocol_available(false), |
| 67 was_fetched_via_proxy(false) { | 67 was_fetched_via_proxy(false) { |
| 68 } | 68 } |
| 69 | 69 |
| 70 HttpResponseInfo::HttpResponseInfo(const HttpResponseInfo& rhs) | 70 HttpResponseInfo::HttpResponseInfo(const HttpResponseInfo& rhs) |
| 71 : was_cached(rhs.was_cached), | 71 : was_cached(rhs.was_cached), |
| 72 was_fetched_via_spdy(rhs.was_fetched_via_spdy), | 72 was_fetched_via_spdy(rhs.was_fetched_via_spdy), |
| 73 was_npn_negotiated(rhs.was_npn_negotiated), | 73 was_npn_negotiated(rhs.was_npn_negotiated), |
| 74 was_alternate_protocol_available(rhs.was_alternate_protocol_available), |
| 74 was_fetched_via_proxy(rhs.was_fetched_via_proxy), | 75 was_fetched_via_proxy(rhs.was_fetched_via_proxy), |
| 75 request_time(rhs.request_time), | 76 request_time(rhs.request_time), |
| 76 response_time(rhs.response_time), | 77 response_time(rhs.response_time), |
| 77 auth_challenge(rhs.auth_challenge), | 78 auth_challenge(rhs.auth_challenge), |
| 78 cert_request_info(rhs.cert_request_info), | 79 cert_request_info(rhs.cert_request_info), |
| 79 ssl_info(rhs.ssl_info), | 80 ssl_info(rhs.ssl_info), |
| 80 headers(rhs.headers), | 81 headers(rhs.headers), |
| 81 vary_data(rhs.vary_data), | 82 vary_data(rhs.vary_data), |
| 82 metadata(rhs.metadata) { | 83 metadata(rhs.metadata) { |
| 83 } | 84 } |
| 84 | 85 |
| 85 HttpResponseInfo::~HttpResponseInfo() { | 86 HttpResponseInfo::~HttpResponseInfo() { |
| 86 } | 87 } |
| 87 | 88 |
| 88 HttpResponseInfo& HttpResponseInfo::operator=(const HttpResponseInfo& rhs) { | 89 HttpResponseInfo& HttpResponseInfo::operator=(const HttpResponseInfo& rhs) { |
| 89 was_cached = rhs.was_cached; | 90 was_cached = rhs.was_cached; |
| 90 was_fetched_via_spdy = rhs.was_fetched_via_spdy; | 91 was_fetched_via_spdy = rhs.was_fetched_via_spdy; |
| 91 was_npn_negotiated = rhs.was_npn_negotiated; | 92 was_npn_negotiated = rhs.was_npn_negotiated; |
| 93 was_alternate_protocol_available = rhs.was_alternate_protocol_available; |
| 92 was_fetched_via_proxy = rhs.was_fetched_via_proxy; | 94 was_fetched_via_proxy = rhs.was_fetched_via_proxy; |
| 93 request_time = rhs.request_time; | 95 request_time = rhs.request_time; |
| 94 response_time = rhs.response_time; | 96 response_time = rhs.response_time; |
| 95 auth_challenge = rhs.auth_challenge; | 97 auth_challenge = rhs.auth_challenge; |
| 96 cert_request_info = rhs.cert_request_info; | 98 cert_request_info = rhs.cert_request_info; |
| 97 ssl_info = rhs.ssl_info; | 99 ssl_info = rhs.ssl_info; |
| 98 headers = rhs.headers; | 100 headers = rhs.headers; |
| 99 vary_data = rhs.vary_data; | 101 vary_data = rhs.vary_data; |
| 100 metadata = rhs.metadata; | 102 metadata = rhs.metadata; |
| 101 return *this; | 103 return *this; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 pickle->WriteInt(ssl_info.cert_status); | 217 pickle->WriteInt(ssl_info.cert_status); |
| 216 } | 218 } |
| 217 if (ssl_info.security_bits != -1) | 219 if (ssl_info.security_bits != -1) |
| 218 pickle->WriteInt(ssl_info.security_bits); | 220 pickle->WriteInt(ssl_info.security_bits); |
| 219 | 221 |
| 220 if (vary_data.is_valid()) | 222 if (vary_data.is_valid()) |
| 221 vary_data.Persist(pickle); | 223 vary_data.Persist(pickle); |
| 222 } | 224 } |
| 223 | 225 |
| 224 } // namespace net | 226 } // namespace net |
| OLD | NEW |