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. This |
120 // This may be empty if the response was created inside the ServiceWorker. | 120 // is empty if the response was created inside the ServiceWorker or if the |
121 GURL original_url_via_service_worker; | 121 // response was not served by a service worker |
falken
2016/12/05 01:22:33
Oops, can we just say "See ServiceWorkerResponseIn
horo
2016/12/05 03:39:49
Done.
| |
122 std::vector<GURL> url_list_via_service_worker; | |
122 | 123 |
123 // The type of the response which was fetched by the ServiceWorker. | 124 // The type of the response which was fetched by the ServiceWorker. |
124 blink::WebServiceWorkerResponseType response_type_via_service_worker; | 125 blink::WebServiceWorkerResponseType response_type_via_service_worker; |
125 | 126 |
126 // The time immediately before starting ServiceWorker. If the response is not | 127 // The time immediately before starting ServiceWorker. If the response is not |
127 // provided by the ServiceWorker, kept empty. | 128 // provided by the ServiceWorker, kept empty. |
128 // TODO(ksakamoto): Move this to net::LoadTimingInfo. | 129 // TODO(ksakamoto): Move this to net::LoadTimingInfo. |
129 base::TimeTicks service_worker_start_time; | 130 base::TimeTicks service_worker_start_time; |
130 | 131 |
131 // The time immediately before dispatching fetch event in ServiceWorker. | 132 // 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; | 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 |