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

Unified Diff: content/browser/service_worker/service_worker_url_request_job.cc

Issue 2941883003: [ServiceWorker] Fetch event should return integrity value (Closed)
Patch Set: Rebase Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_url_request_job.cc
diff --git a/content/browser/service_worker/service_worker_url_request_job.cc b/content/browser/service_worker/service_worker_url_request_job.cc
index 5633043301d247e6074a3ddb8da955fd86313b30..49a335a6129ccc19bd41ed763cedc62f842a42e3 100644
--- a/content/browser/service_worker/service_worker_url_request_job.cc
+++ b/content/browser/service_worker/service_worker_url_request_job.cc
@@ -315,6 +315,7 @@ ServiceWorkerURLRequestJob::ServiceWorkerURLRequestJob(
FetchRequestMode request_mode,
FetchCredentialsMode credentials_mode,
FetchRedirectMode redirect_mode,
+ const std::string& integrity,
ResourceType resource_type,
RequestContextType request_context_type,
RequestContextFrameType frame_type,
@@ -334,6 +335,7 @@ ServiceWorkerURLRequestJob::ServiceWorkerURLRequestJob(
request_mode_(request_mode),
credentials_mode_(credentials_mode),
redirect_mode_(redirect_mode),
+ integrity_(integrity),
resource_type_(resource_type),
request_context_type_(request_context_type),
frame_type_(frame_type),
@@ -571,6 +573,7 @@ ServiceWorkerURLRequestJob::CreateFetchRequest() {
request->blob_size = blob_size;
request->credentials_mode = credentials_mode_;
request->redirect_mode = redirect_mode_;
+ request->integrity = integrity_;
request->client_id = client_id_;
const ResourceRequestInfo* info = ResourceRequestInfo::ForRequest(request_);
if (info) {

Powered by Google App Engine
This is Rietveld 408576698