Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: content/public/common/resource_request.h

Issue 2941883003: [ServiceWorker] Fetch event should return integrity value (Closed)
Patch Set: Address yhirano's comment #78 Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/common/service_worker/service_worker_types.h ('k') | content/renderer/service_worker/service_worker_context_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698