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