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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #include "content/browser/loader/resource_dispatcher_host_impl.h" 7 #include "content/browser/loader/resource_dispatcher_host_impl.h"
8 8
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 // Initialize the service worker handler for the request. We don't use 1409 // Initialize the service worker handler for the request. We don't use
1410 // ServiceWorker for synchronous loads to avoid renderer deadlocks. 1410 // ServiceWorker for synchronous loads to avoid renderer deadlocks.
1411 const ServiceWorkerMode service_worker_mode = 1411 const ServiceWorkerMode service_worker_mode =
1412 is_sync_load ? ServiceWorkerMode::NONE 1412 is_sync_load ? ServiceWorkerMode::NONE
1413 : request_data.service_worker_mode; 1413 : request_data.service_worker_mode;
1414 ServiceWorkerRequestHandler::InitializeHandler( 1414 ServiceWorkerRequestHandler::InitializeHandler(
1415 new_request.get(), requester_info->service_worker_context(), 1415 new_request.get(), requester_info->service_worker_context(),
1416 blob_context, child_id, request_data.service_worker_provider_id, 1416 blob_context, child_id, request_data.service_worker_provider_id,
1417 service_worker_mode != ServiceWorkerMode::ALL, 1417 service_worker_mode != ServiceWorkerMode::ALL,
1418 request_data.fetch_request_mode, request_data.fetch_credentials_mode, 1418 request_data.fetch_request_mode, request_data.fetch_credentials_mode,
1419 request_data.fetch_redirect_mode, request_data.resource_type, 1419 request_data.fetch_redirect_mode, request_data.fetch_integrity,
1420 request_data.fetch_request_context_type, request_data.fetch_frame_type, 1420 request_data.resource_type, request_data.fetch_request_context_type,
1421 request_data.request_body); 1421 request_data.fetch_frame_type, request_data.request_body);
1422 1422
1423 ForeignFetchRequestHandler::InitializeHandler( 1423 ForeignFetchRequestHandler::InitializeHandler(
1424 new_request.get(), requester_info->service_worker_context(), 1424 new_request.get(), requester_info->service_worker_context(),
1425 blob_context, child_id, request_data.service_worker_provider_id, 1425 blob_context, child_id, request_data.service_worker_provider_id,
1426 service_worker_mode, request_data.fetch_request_mode, 1426 service_worker_mode, request_data.fetch_request_mode,
1427 request_data.fetch_credentials_mode, request_data.fetch_redirect_mode, 1427 request_data.fetch_credentials_mode, request_data.fetch_redirect_mode,
1428 request_data.resource_type, request_data.fetch_request_context_type, 1428 request_data.fetch_integrity, request_data.resource_type,
1429 request_data.fetch_frame_type, request_data.request_body, 1429 request_data.fetch_request_context_type, request_data.fetch_frame_type,
1430 request_data.initiated_in_secure_context); 1430 request_data.request_body, request_data.initiated_in_secure_context);
1431 1431
1432 // Have the appcache associate its extra info with the request. 1432 // Have the appcache associate its extra info with the request.
1433 AppCacheInterceptor::SetExtraRequestInfo( 1433 AppCacheInterceptor::SetExtraRequestInfo(
1434 new_request.get(), requester_info->appcache_service(), child_id, 1434 new_request.get(), requester_info->appcache_service(), child_id,
1435 request_data.appcache_host_id, request_data.resource_type, 1435 request_data.appcache_host_id, request_data.resource_type,
1436 request_data.should_reset_appcache); 1436 request_data.should_reset_appcache);
1437 handler = CreateResourceHandler( 1437 handler = CreateResourceHandler(
1438 requester_info.get(), new_request.get(), request_data, 1438 requester_info.get(), new_request.get(), request_data,
1439 sync_result_handler, route_id, child_id, resource_context, 1439 sync_result_handler, route_id, child_id, resource_context,
1440 std::move(mojo_request), std::move(url_loader_client)); 1440 std::move(mojo_request), std::move(url_loader_client));
(...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after
2700 &throttles); 2700 &throttles);
2701 if (!throttles.empty()) { 2701 if (!throttles.empty()) {
2702 handler.reset(new ThrottlingResourceHandler(std::move(handler), request, 2702 handler.reset(new ThrottlingResourceHandler(std::move(handler), request,
2703 std::move(throttles))); 2703 std::move(throttles)));
2704 } 2704 }
2705 } 2705 }
2706 return handler; 2706 return handler;
2707 } 2707 }
2708 2708
2709 } // namespace content 2709 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/foreign_fetch_request_handler.h » ('j') | content/child/web_url_request_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698