| 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 #include "content/public/common/resource_response_info.h" | 5 #include "content/public/common/resource_response_info.h" |
| 6 | 6 |
| 7 #include "content/public/common/appcache_info.h" | 7 #include "content/public/common/appcache_info.h" |
| 8 #include "net/http/http_response_headers.h" | 8 #include "net/http/http_response_headers.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 ResourceResponseInfo::ResourceResponseInfo() | 12 ResourceResponseInfo::ResourceResponseInfo() |
| 13 : has_major_certificate_errors(false), | 13 : has_major_certificate_errors(false), |
| 14 content_length(-1), | 14 content_length(-1), |
| 15 encoded_data_length(-1), | 15 encoded_data_length(-1), |
| 16 encoded_body_length(-1), | 16 encoded_body_length(-1), |
| 17 appcache_id(kAppCacheNoCacheId), | 17 appcache_id(kAppCacheNoCacheId), |
| 18 was_fetched_via_spdy(false), | 18 was_fetched_via_spdy(false), |
| 19 was_alpn_negotiated(false), | 19 was_alpn_negotiated(false), |
| 20 was_alternate_protocol_available(false), | 20 was_alternate_protocol_available(false), |
| 21 connection_info(net::HttpResponseInfo::CONNECTION_INFO_UNKNOWN), | 21 connection_info(net::HttpResponseInfo::CONNECTION_INFO_UNKNOWN), |
| 22 was_fetched_via_proxy(false), | |
| 23 was_fetched_via_service_worker(false), | 22 was_fetched_via_service_worker(false), |
| 24 was_fetched_via_foreign_fetch(false), | 23 was_fetched_via_foreign_fetch(false), |
| 25 was_fallback_required_by_service_worker(false), | 24 was_fallback_required_by_service_worker(false), |
| 26 response_type_via_service_worker( | 25 response_type_via_service_worker( |
| 27 blink::WebServiceWorkerResponseTypeDefault), | 26 blink::WebServiceWorkerResponseTypeDefault), |
| 28 is_using_lofi(false), | 27 is_using_lofi(false), |
| 29 effective_connection_type(net::EFFECTIVE_CONNECTION_TYPE_UNKNOWN), | 28 effective_connection_type(net::EFFECTIVE_CONNECTION_TYPE_UNKNOWN), |
| 30 cert_status(0), | 29 cert_status(0), |
| 31 ssl_connection_status(0), | 30 ssl_connection_status(0), |
| 32 ssl_key_exchange_group(0) {} | 31 ssl_key_exchange_group(0) {} |
| 33 | 32 |
| 34 ResourceResponseInfo::ResourceResponseInfo(const ResourceResponseInfo& other) = | 33 ResourceResponseInfo::ResourceResponseInfo(const ResourceResponseInfo& other) = |
| 35 default; | 34 default; |
| 36 | 35 |
| 37 ResourceResponseInfo::~ResourceResponseInfo() { | 36 ResourceResponseInfo::~ResourceResponseInfo() { |
| 38 } | 37 } |
| 39 | 38 |
| 40 } // namespace content | 39 } // namespace content |
| OLD | NEW |