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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 2116503004: Make Foreign Fetch an origin trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 (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 1526 matching lines...) Expand 10 before | Expand all | Expand 10 after
1537 is_sync_load ? SkipServiceWorker::ALL : request_data.skip_service_worker; 1537 is_sync_load ? SkipServiceWorker::ALL : request_data.skip_service_worker;
1538 ServiceWorkerRequestHandler::InitializeHandler( 1538 ServiceWorkerRequestHandler::InitializeHandler(
1539 new_request.get(), filter_->service_worker_context(), blob_context, 1539 new_request.get(), filter_->service_worker_context(), blob_context,
1540 child_id, request_data.service_worker_provider_id, 1540 child_id, request_data.service_worker_provider_id,
1541 should_skip_service_worker != SkipServiceWorker::NONE, 1541 should_skip_service_worker != SkipServiceWorker::NONE,
1542 request_data.fetch_request_mode, request_data.fetch_credentials_mode, 1542 request_data.fetch_request_mode, request_data.fetch_credentials_mode,
1543 request_data.fetch_redirect_mode, request_data.resource_type, 1543 request_data.fetch_redirect_mode, request_data.resource_type,
1544 request_data.fetch_request_context_type, request_data.fetch_frame_type, 1544 request_data.fetch_request_context_type, request_data.fetch_frame_type,
1545 request_data.request_body); 1545 request_data.request_body);
1546 1546
1547 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 1547 ForeignFetchRequestHandler::InitializeHandler(
1548 switches::kEnableExperimentalWebPlatformFeatures)) { 1548 new_request.get(), filter_->service_worker_context(), blob_context,
1549 ForeignFetchRequestHandler::InitializeHandler( 1549 child_id, request_data.service_worker_provider_id,
1550 new_request.get(), filter_->service_worker_context(), blob_context, 1550 should_skip_service_worker, request_data.fetch_request_mode,
1551 child_id, request_data.service_worker_provider_id, 1551 request_data.fetch_credentials_mode, request_data.fetch_redirect_mode,
1552 should_skip_service_worker, request_data.fetch_request_mode, 1552 request_data.resource_type, request_data.fetch_request_context_type,
1553 request_data.fetch_credentials_mode, request_data.fetch_redirect_mode, 1553 request_data.fetch_frame_type, request_data.request_body,
1554 request_data.resource_type, request_data.fetch_request_context_type, 1554 request_data.initiated_in_secure_context);
1555 request_data.fetch_frame_type, request_data.request_body,
1556 request_data.initiated_in_secure_context);
1557 }
1558 1555
1559 // Have the appcache associate its extra info with the request. 1556 // Have the appcache associate its extra info with the request.
1560 AppCacheInterceptor::SetExtraRequestInfo( 1557 AppCacheInterceptor::SetExtraRequestInfo(
1561 new_request.get(), filter_->appcache_service(), child_id, 1558 new_request.get(), filter_->appcache_service(), child_id,
1562 request_data.appcache_host_id, request_data.resource_type, 1559 request_data.appcache_host_id, request_data.resource_type,
1563 request_data.should_reset_appcache); 1560 request_data.should_reset_appcache);
1564 1561
1565 std::unique_ptr<ResourceHandler> handler(CreateResourceHandler( 1562 std::unique_ptr<ResourceHandler> handler(CreateResourceHandler(
1566 new_request.get(), request_data, sync_result, route_id, process_type, 1563 new_request.get(), request_data, sync_result, route_id, process_type,
1567 child_id, resource_context)); 1564 child_id, resource_context));
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
2596 ssl.cert_id = GetCertStore()->StoreCert(ssl_info.cert.get(), child_id); 2593 ssl.cert_id = GetCertStore()->StoreCert(ssl_info.cert.get(), child_id);
2597 response->head.security_info = SerializeSecurityInfo(ssl); 2594 response->head.security_info = SerializeSecurityInfo(ssl);
2598 } 2595 }
2599 2596
2600 CertStore* ResourceDispatcherHostImpl::GetCertStore() { 2597 CertStore* ResourceDispatcherHostImpl::GetCertStore() {
2601 return cert_store_for_testing_ ? cert_store_for_testing_ 2598 return cert_store_for_testing_ ? cert_store_for_testing_
2602 : CertStore::GetInstance(); 2599 : CertStore::GetInstance();
2603 } 2600 }
2604 2601
2605 } // namespace content 2602 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698