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

Side by Side Diff: content/common/service_worker/service_worker_types.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 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_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ 5 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_
6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ 6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 RequestContextType request_context_type; 116 RequestContextType request_context_type;
117 RequestContextFrameType frame_type; 117 RequestContextFrameType frame_type;
118 GURL url; 118 GURL url;
119 std::string method; 119 std::string method;
120 ServiceWorkerHeaderMap headers; 120 ServiceWorkerHeaderMap headers;
121 std::string blob_uuid; 121 std::string blob_uuid;
122 uint64_t blob_size; 122 uint64_t blob_size;
123 Referrer referrer; 123 Referrer referrer;
124 FetchCredentialsMode credentials_mode; 124 FetchCredentialsMode credentials_mode;
125 FetchRedirectMode redirect_mode; 125 FetchRedirectMode redirect_mode;
126 std::string integrity;
126 std::string client_id; 127 std::string client_id;
127 bool is_reload; 128 bool is_reload;
128 ServiceWorkerFetchType fetch_type; 129 ServiceWorkerFetchType fetch_type;
129 }; 130 };
130 131
131 // Represents a response to a fetch. 132 // Represents a response to a fetch.
132 struct CONTENT_EXPORT ServiceWorkerResponse { 133 struct CONTENT_EXPORT ServiceWorkerResponse {
133 ServiceWorkerResponse(); 134 ServiceWorkerResponse();
134 ServiceWorkerResponse( 135 ServiceWorkerResponse(
135 std::unique_ptr<std::vector<GURL>> url_list, 136 std::unique_ptr<std::vector<GURL>> url_list,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 NavigationPreloadState(); 249 NavigationPreloadState();
249 NavigationPreloadState(bool enabled, std::string header); 250 NavigationPreloadState(bool enabled, std::string header);
250 NavigationPreloadState(const NavigationPreloadState& other); 251 NavigationPreloadState(const NavigationPreloadState& other);
251 bool enabled; 252 bool enabled;
252 std::string header; 253 std::string header;
253 }; 254 };
254 255
255 } // namespace content 256 } // namespace content
256 257
257 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ 258 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_
OLDNEW
« no previous file with comments | « content/common/service_worker/service_worker_messages.h ('k') | content/public/common/resource_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698