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

Side by Side Diff: content/common/service_worker/service_worker_fetch_request_struct_traits.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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_FETCH_REQUEST_STRUCT_TRAITS _H_ 5 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_FETCH_REQUEST_STRUCT_TRAITS _H_
6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_FETCH_REQUEST_STRUCT_TRAITS _H_ 6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_FETCH_REQUEST_STRUCT_TRAITS _H_
7 7
8 #include "base/numerics/safe_conversions.h" 8 #include "base/numerics/safe_conversions.h"
9 #include "content/public/common/referrer.h" 9 #include "content/public/common/referrer.h"
10 #include "third_party/WebKit/public/platform/modules/fetch/fetch_api_request.moj om.h" 10 #include "third_party/WebKit/public/platform/modules/fetch/fetch_api_request.moj om.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 static content::FetchCredentialsMode credentials_mode( 126 static content::FetchCredentialsMode credentials_mode(
127 const content::ServiceWorkerFetchRequest& request) { 127 const content::ServiceWorkerFetchRequest& request) {
128 return request.credentials_mode; 128 return request.credentials_mode;
129 } 129 }
130 130
131 static content::FetchRedirectMode redirect_mode( 131 static content::FetchRedirectMode redirect_mode(
132 const content::ServiceWorkerFetchRequest& request) { 132 const content::ServiceWorkerFetchRequest& request) {
133 return request.redirect_mode; 133 return request.redirect_mode;
134 } 134 }
135 135
136 static const std::string& integrity(
137 const content::ServiceWorkerFetchRequest& request) {
138 return request.integrity;
139 }
140
136 static const std::string& client_id( 141 static const std::string& client_id(
137 const content::ServiceWorkerFetchRequest& request) { 142 const content::ServiceWorkerFetchRequest& request) {
138 return request.client_id; 143 return request.client_id;
139 } 144 }
140 145
141 static bool is_reload(const content::ServiceWorkerFetchRequest& request) { 146 static bool is_reload(const content::ServiceWorkerFetchRequest& request) {
142 return request.is_reload; 147 return request.is_reload;
143 } 148 }
144 149
145 static content::ServiceWorkerFetchType fetch_type( 150 static content::ServiceWorkerFetchType fetch_type(
146 const content::ServiceWorkerFetchRequest& request) { 151 const content::ServiceWorkerFetchRequest& request) {
147 return request.fetch_type; 152 return request.fetch_type;
148 } 153 }
149 154
150 static bool Read(blink::mojom::FetchAPIRequestDataView data, 155 static bool Read(blink::mojom::FetchAPIRequestDataView data,
151 content::ServiceWorkerFetchRequest* out); 156 content::ServiceWorkerFetchRequest* out);
152 }; 157 };
153 158
154 } // namespace mojo 159 } // namespace mojo
155 160
156 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_FETCH_REQUEST_STRUCT_TRA ITS_H_ 161 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_FETCH_REQUEST_STRUCT_TRA ITS_H_
OLDNEW
« no previous file with comments | « content/common/resource_messages.h ('k') | content/common/service_worker/service_worker_fetch_request_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698