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 : content_length(-1), | 13 : content_length(-1), |
14 encoded_data_length(-1), | 14 encoded_data_length(-1), |
15 appcache_id(kAppCacheNoCacheId), | 15 appcache_id(kAppCacheNoCacheId), |
16 was_fetched_via_spdy(false), | 16 was_fetched_via_spdy(false), |
17 was_npn_negotiated(false), | 17 was_npn_negotiated(false), |
18 was_alternate_protocol_available(false), | 18 was_alternate_protocol_available(false), |
19 connection_info(net::HttpResponseInfo::CONNECTION_INFO_UNKNOWN), | 19 connection_info(net::HttpResponseInfo::CONNECTION_INFO_UNKNOWN), |
20 was_fetched_via_proxy(false), | 20 was_fetched_via_proxy(false), |
21 was_fetched_via_service_worker(false) { | 21 was_fetched_via_service_worker(false), |
| 22 was_fallback_required_by_service_worker(false) { |
22 } | 23 } |
23 | 24 |
24 ResourceResponseInfo::~ResourceResponseInfo() { | 25 ResourceResponseInfo::~ResourceResponseInfo() { |
25 } | 26 } |
26 | 27 |
27 } // namespace content | 28 } // namespace content |
OLD | NEW |