| 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/previews_state.h" |
| 16 #include "content/public/common/resource_devtools_info.h" | 17 #include "content/public/common/resource_devtools_info.h" |
| 17 #include "net/base/host_port_pair.h" | 18 #include "net/base/host_port_pair.h" |
| 18 #include "net/base/load_timing_info.h" | 19 #include "net/base/load_timing_info.h" |
| 19 #include "net/cert/signed_certificate_timestamp_and_status.h" | 20 #include "net/cert/signed_certificate_timestamp_and_status.h" |
| 20 #include "net/http/http_response_headers.h" | 21 #include "net/http/http_response_headers.h" |
| 21 #include "net/http/http_response_info.h" | 22 #include "net/http/http_response_info.h" |
| 22 #include "net/nqe/effective_connection_type.h" | 23 #include "net/nqe/effective_connection_type.h" |
| 23 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerResponseType.h" | 24 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerResponseType.h" |
| 24 #include "url/gurl.h" | 25 #include "url/gurl.h" |
| 25 | 26 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 base::TimeTicks service_worker_ready_time; | 135 base::TimeTicks service_worker_ready_time; |
| 135 | 136 |
| 136 // True when the response is served from the CacheStorage via the | 137 // True when the response is served from the CacheStorage via the |
| 137 // ServiceWorker. | 138 // ServiceWorker. |
| 138 bool is_in_cache_storage = false; | 139 bool is_in_cache_storage = false; |
| 139 | 140 |
| 140 // The cache name of the CacheStorage from where the response is served via | 141 // The cache name of the CacheStorage from where the response is served via |
| 141 // the ServiceWorker. Empty if the response isn't from the CacheStorage. | 142 // the ServiceWorker. Empty if the response isn't from the CacheStorage. |
| 142 std::string cache_storage_cache_name; | 143 std::string cache_storage_cache_name; |
| 143 | 144 |
| 144 // Whether or not the request was for a LoFi version of the resource. | 145 // Which Previews version of the resource the request was for. |
| 145 bool is_using_lofi; | 146 PreviewsState previews_state; |
| 146 | 147 |
| 147 // Effective connection type when the resource was fetched. This is populated | 148 // Effective connection type when the resource was fetched. This is populated |
| 148 // only for responses that correspond to main frame requests. | 149 // only for responses that correspond to main frame requests. |
| 149 net::EffectiveConnectionType effective_connection_type; | 150 net::EffectiveConnectionType effective_connection_type; |
| 150 | 151 |
| 151 // DER-encoded X509Certificate certificate chain. Only present if the renderer | 152 // DER-encoded X509Certificate certificate chain. Only present if the renderer |
| 152 // process set report_raw_headers to true. | 153 // process set report_raw_headers to true. |
| 153 std::vector<std::string> certificate; | 154 std::vector<std::string> certificate; |
| 154 | 155 |
| 155 // Bitmask of status info of the SSL certificate. See cert_status_flags.h for | 156 // Bitmask of status info of the SSL certificate. See cert_status_flags.h for |
| (...skipping 18 matching lines...) Expand all Loading... |
| 174 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps; | 175 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps; |
| 175 | 176 |
| 176 // In case this is a CORS response fetched by a ServiceWorker, this is the | 177 // In case this is a CORS response fetched by a ServiceWorker, this is the |
| 177 // set of headers that should be exposed. | 178 // set of headers that should be exposed. |
| 178 std::vector<std::string> cors_exposed_header_names; | 179 std::vector<std::string> cors_exposed_header_names; |
| 179 }; | 180 }; |
| 180 | 181 |
| 181 } // namespace content | 182 } // namespace content |
| 182 | 183 |
| 183 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ | 184 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ |
| OLD | NEW |