| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 // NPN protocol negotiated with the server. | 112 // NPN protocol negotiated with the server. |
| 113 std::string npn_negotiated_protocol; | 113 std::string npn_negotiated_protocol; |
| 114 | 114 |
| 115 // Remote address of the socket which fetched this resource. | 115 // Remote address of the socket which fetched this resource. |
| 116 net::HostPortPair socket_address; | 116 net::HostPortPair socket_address; |
| 117 | 117 |
| 118 // True if the response was fetched by a ServiceWorker. | 118 // True if the response was fetched by a ServiceWorker. |
| 119 bool was_fetched_via_service_worker; | 119 bool was_fetched_via_service_worker; |
| 120 | 120 |
| 121 // True if the response was fetched by a foreign fetch ServiceWorker; |
| 122 bool was_fetched_via_foreign_fetch; |
| 123 |
| 121 // True when the request whoes mode is |CORS| or |CORS-with-forced-preflight| | 124 // True when the request whoes mode is |CORS| or |CORS-with-forced-preflight| |
| 122 // is sent to a ServiceWorker but FetchEvent.respondWith is not called. So the | 125 // is sent to a ServiceWorker but FetchEvent.respondWith is not called. So the |
| 123 // renderer have to resend the request with skip service worker flag | 126 // renderer have to resend the request with skip service worker flag |
| 124 // considering the CORS preflight logic. | 127 // considering the CORS preflight logic. |
| 125 bool was_fallback_required_by_service_worker; | 128 bool was_fallback_required_by_service_worker; |
| 126 | 129 |
| 127 // The original URL of the response which was fetched by the ServiceWorker. | 130 // The original URL of the response which was fetched by the ServiceWorker. |
| 128 // This may be empty if the response was created inside the ServiceWorker. | 131 // This may be empty if the response was created inside the ServiceWorker. |
| 129 GURL original_url_via_service_worker; | 132 GURL original_url_via_service_worker; |
| 130 | 133 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps; | 165 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps; |
| 163 | 166 |
| 164 // In case this is a CORS response fetched by a ServiceWorker, this is the | 167 // In case this is a CORS response fetched by a ServiceWorker, this is the |
| 165 // set of headers that should be exposed. | 168 // set of headers that should be exposed. |
| 166 std::vector<std::string> cors_exposed_header_names; | 169 std::vector<std::string> cors_exposed_header_names; |
| 167 }; | 170 }; |
| 168 | 171 |
| 169 } // namespace content | 172 } // namespace content |
| 170 | 173 |
| 171 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ | 174 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ |
| OLD | NEW |