| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_REQUEST_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_RESOURCE_REQUEST_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_RESOURCE_REQUEST_H_ | 6 #define CONTENT_PUBLIC_COMMON_RESOURCE_REQUEST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 // The request mode passed to the ServiceWorker. | 108 // The request mode passed to the ServiceWorker. |
| 109 FetchRequestMode fetch_request_mode = FETCH_REQUEST_MODE_SAME_ORIGIN; | 109 FetchRequestMode fetch_request_mode = FETCH_REQUEST_MODE_SAME_ORIGIN; |
| 110 | 110 |
| 111 // The credentials mode passed to the ServiceWorker. | 111 // The credentials mode passed to the ServiceWorker. |
| 112 FetchCredentialsMode fetch_credentials_mode = FETCH_CREDENTIALS_MODE_OMIT; | 112 FetchCredentialsMode fetch_credentials_mode = FETCH_CREDENTIALS_MODE_OMIT; |
| 113 | 113 |
| 114 // The redirect mode used in Fetch API. | 114 // The redirect mode used in Fetch API. |
| 115 FetchRedirectMode fetch_redirect_mode = FetchRedirectMode::FOLLOW_MODE; | 115 FetchRedirectMode fetch_redirect_mode = FetchRedirectMode::FOLLOW_MODE; |
| 116 | 116 |
| 117 // The integrity used in Fetch API. |
| 118 std::string fetch_integrity; |
| 119 |
| 117 // The request context passed to the ServiceWorker. | 120 // The request context passed to the ServiceWorker. |
| 118 RequestContextType fetch_request_context_type = | 121 RequestContextType fetch_request_context_type = |
| 119 REQUEST_CONTEXT_TYPE_UNSPECIFIED; | 122 REQUEST_CONTEXT_TYPE_UNSPECIFIED; |
| 120 | 123 |
| 121 // The mixed content context type to be used for mixed content checks. | 124 // The mixed content context type to be used for mixed content checks. |
| 122 blink::WebMixedContentContextType fetch_mixed_content_context_type = | 125 blink::WebMixedContentContextType fetch_mixed_content_context_type = |
| 123 blink::WebMixedContentContextType::kBlockable; | 126 blink::WebMixedContentContextType::kBlockable; |
| 124 | 127 |
| 125 // The frame type passed to the ServiceWorker. | 128 // The frame type passed to the ServiceWorker. |
| 126 RequestContextFrameType fetch_frame_type = | 129 RequestContextFrameType fetch_frame_type = |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 bool initiated_in_secure_context = false; | 196 bool initiated_in_secure_context = false; |
| 194 | 197 |
| 195 // The response should be downloaded and stored in the network cache, but not | 198 // The response should be downloaded and stored in the network cache, but not |
| 196 // sent back to the renderer. | 199 // sent back to the renderer. |
| 197 bool download_to_network_cache_only = false; | 200 bool download_to_network_cache_only = false; |
| 198 }; | 201 }; |
| 199 | 202 |
| 200 } // namespace content | 203 } // namespace content |
| 201 | 204 |
| 202 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_REQUEST_H_ | 205 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_REQUEST_H_ |
| OLD | NEW |