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 #ifndef CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ |
6 #define CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ | 6 #define CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "content/public/common/resource_devtools_info.h" | 16 #include "content/public/common/resource_devtools_info.h" |
17 #include "net/base/host_port_pair.h" | 17 #include "net/base/host_port_pair.h" |
18 #include "net/base/load_timing_info.h" | 18 #include "net/base/load_timing_info.h" |
19 #include "net/http/http_response_headers.h" | 19 #include "net/http/http_response_headers.h" |
20 #include "net/http/http_response_info.h" | 20 #include "net/http/http_response_info.h" |
21 #include "net/ssl/signed_certificate_timestamp_and_status.h" | |
21 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerResponseType.h" | 22 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerResponseType.h" |
22 #include "url/gurl.h" | 23 #include "url/gurl.h" |
23 | 24 |
24 namespace content { | 25 namespace content { |
25 | 26 |
26 // Note: when modifying this structure, also update ResourceResponse::DeepCopy | 27 // Note: when modifying this structure, also update ResourceResponse::DeepCopy |
27 // in resource_response.cc. | 28 // in resource_response.cc. |
28 struct ResourceResponseInfo { | 29 struct ResourceResponseInfo { |
29 CONTENT_EXPORT ResourceResponseInfo(); | 30 CONTENT_EXPORT ResourceResponseInfo(); |
30 CONTENT_EXPORT ResourceResponseInfo(const ResourceResponseInfo& other); | 31 CONTENT_EXPORT ResourceResponseInfo(const ResourceResponseInfo& other); |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
138 // True when the response is served from the CacheStorage via the | 139 // True when the response is served from the CacheStorage via the |
139 // ServiceWorker. | 140 // ServiceWorker. |
140 bool is_in_cache_storage = false; | 141 bool is_in_cache_storage = false; |
141 | 142 |
142 // The cache name of the CacheStorage from where the response is served via | 143 // The cache name of the CacheStorage from where the response is served via |
143 // the ServiceWorker. Empty if the response isn't from the CacheStorage. | 144 // the ServiceWorker. Empty if the response isn't from the CacheStorage. |
144 std::string cache_storage_cache_name; | 145 std::string cache_storage_cache_name; |
145 | 146 |
146 // Whether or not the request was for a LoFi version of the resource. | 147 // Whether or not the request was for a LoFi version of the resource. |
147 bool is_using_lofi; | 148 bool is_using_lofi; |
149 | |
150 // List of Signed Certificate Timestamps (SCTs) and their corresponding | |
151 // validation status. | |
estark
2016/05/07 07:12:51
If you change this to only be set when |report_raw
dwaxweiler
2016/05/07 13:09:40
Acknowledged.
| |
152 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps; | |
148 }; | 153 }; |
149 | 154 |
150 } // namespace content | 155 } // namespace content |
151 | 156 |
152 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ | 157 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ |
OLD | NEW |