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

Side by Side Diff: content/child/web_url_loader_impl.cc

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 #include "content/child/web_url_loader_impl.h" 5 #include "content/child/web_url_loader_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 resource_request->appcache_host_id = request.AppCacheHostID(); 589 resource_request->appcache_host_id = request.AppCacheHostID();
590 resource_request->should_reset_appcache = request.ShouldResetAppCache(); 590 resource_request->should_reset_appcache = request.ShouldResetAppCache();
591 resource_request->service_worker_mode = 591 resource_request->service_worker_mode =
592 GetServiceWorkerModeForWebURLRequest(request); 592 GetServiceWorkerModeForWebURLRequest(request);
593 resource_request->fetch_request_mode = 593 resource_request->fetch_request_mode =
594 GetFetchRequestModeForWebURLRequest(request); 594 GetFetchRequestModeForWebURLRequest(request);
595 resource_request->fetch_credentials_mode = 595 resource_request->fetch_credentials_mode =
596 GetFetchCredentialsModeForWebURLRequest(request); 596 GetFetchCredentialsModeForWebURLRequest(request);
597 resource_request->fetch_redirect_mode = 597 resource_request->fetch_redirect_mode =
598 GetFetchRedirectModeForWebURLRequest(request); 598 GetFetchRedirectModeForWebURLRequest(request);
599 resource_request->fetch_integrity =
600 GetFetchIntegrityForWebURLRequest(request);
599 resource_request->fetch_request_context_type = 601 resource_request->fetch_request_context_type =
600 GetRequestContextTypeForWebURLRequest(request); 602 GetRequestContextTypeForWebURLRequest(request);
601 resource_request->fetch_mixed_content_context_type = 603 resource_request->fetch_mixed_content_context_type =
602 GetMixedContentContextTypeForWebURLRequest(request); 604 GetMixedContentContextTypeForWebURLRequest(request);
603 605
604 resource_request->fetch_frame_type = 606 resource_request->fetch_frame_type =
605 GetRequestContextFrameTypeForWebURLRequest(request); 607 GetRequestContextFrameTypeForWebURLRequest(request);
606 resource_request->request_body = 608 resource_request->request_body =
607 GetRequestBodyForWebURLRequest(request).get(); 609 GetRequestBodyForWebURLRequest(request).get();
608 resource_request->download_to_file = request.DownloadToFile(); 610 resource_request->download_to_file = request.DownloadToFile();
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 void WebURLLoaderImpl::SetDefersLoading(bool value) { 1290 void WebURLLoaderImpl::SetDefersLoading(bool value) {
1289 context_->SetDefersLoading(value); 1291 context_->SetDefersLoading(value);
1290 } 1292 }
1291 1293
1292 void WebURLLoaderImpl::DidChangePriority(WebURLRequest::Priority new_priority, 1294 void WebURLLoaderImpl::DidChangePriority(WebURLRequest::Priority new_priority,
1293 int intra_priority_value) { 1295 int intra_priority_value) {
1294 context_->DidChangePriority(new_priority, intra_priority_value); 1296 context_->DidChangePriority(new_priority, intra_priority_value);
1295 } 1297 }
1296 1298
1297 } // namespace content 1299 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_write_to_cache_job_unittest.cc ('k') | content/child/web_url_request_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698