| 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> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 // True if the response was fetched by a foreign fetch ServiceWorker; | 110 // True if the response was fetched by a foreign fetch ServiceWorker; |
| 111 bool was_fetched_via_foreign_fetch; | 111 bool was_fetched_via_foreign_fetch; |
| 112 | 112 |
| 113 // True when the request whoes mode is |CORS| or |CORS-with-forced-preflight| | 113 // True when the request whoes mode is |CORS| or |CORS-with-forced-preflight| |
| 114 // is sent to a ServiceWorker but FetchEvent.respondWith is not called. So the | 114 // is sent to a ServiceWorker but FetchEvent.respondWith is not called. So the |
| 115 // renderer have to resend the request with skip service worker flag | 115 // renderer have to resend the request with skip service worker flag |
| 116 // considering the CORS preflight logic. | 116 // considering the CORS preflight logic. |
| 117 bool was_fallback_required_by_service_worker; | 117 bool was_fallback_required_by_service_worker; |
| 118 | 118 |
| 119 // The original URL of the response which was fetched by the ServiceWorker. | 119 // The URL list of the response which was served by the ServiceWorker. See |
| 120 // This may be empty if the response was created inside the ServiceWorker. | 120 // ServiceWorkerResponseInfo::url_list_via_service_worker(). |
| 121 GURL original_url_via_service_worker; | 121 std::vector<GURL> url_list_via_service_worker; |
| 122 | 122 |
| 123 // The type of the response which was fetched by the ServiceWorker. | 123 // The type of the response which was fetched by the ServiceWorker. |
| 124 blink::WebServiceWorkerResponseType response_type_via_service_worker; | 124 blink::WebServiceWorkerResponseType response_type_via_service_worker; |
| 125 | 125 |
| 126 // The time immediately before starting ServiceWorker. If the response is not | 126 // The time immediately before starting ServiceWorker. If the response is not |
| 127 // provided by the ServiceWorker, kept empty. | 127 // provided by the ServiceWorker, kept empty. |
| 128 // TODO(ksakamoto): Move this to net::LoadTimingInfo. | 128 // TODO(ksakamoto): Move this to net::LoadTimingInfo. |
| 129 base::TimeTicks service_worker_start_time; | 129 base::TimeTicks service_worker_start_time; |
| 130 | 130 |
| 131 // The time immediately before dispatching fetch event in ServiceWorker. | 131 // The time immediately before dispatching fetch event in ServiceWorker. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps; | 174 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps; |
| 175 | 175 |
| 176 // In case this is a CORS response fetched by a ServiceWorker, this is the | 176 // In case this is a CORS response fetched by a ServiceWorker, this is the |
| 177 // set of headers that should be exposed. | 177 // set of headers that should be exposed. |
| 178 std::vector<std::string> cors_exposed_header_names; | 178 std::vector<std::string> cors_exposed_header_names; |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 } // namespace content | 181 } // namespace content |
| 182 | 182 |
| 183 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ | 183 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ |
| OLD | NEW |