| OLD | NEW |
| 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 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1522 is_sync_load ? SkipServiceWorker::ALL : request_data.skip_service_worker; | 1522 is_sync_load ? SkipServiceWorker::ALL : request_data.skip_service_worker; |
| 1523 ServiceWorkerRequestHandler::InitializeHandler( | 1523 ServiceWorkerRequestHandler::InitializeHandler( |
| 1524 new_request.get(), filter_->service_worker_context(), blob_context, | 1524 new_request.get(), filter_->service_worker_context(), blob_context, |
| 1525 child_id, request_data.service_worker_provider_id, | 1525 child_id, request_data.service_worker_provider_id, |
| 1526 should_skip_service_worker != SkipServiceWorker::NONE, | 1526 should_skip_service_worker != SkipServiceWorker::NONE, |
| 1527 request_data.fetch_request_mode, request_data.fetch_credentials_mode, | 1527 request_data.fetch_request_mode, request_data.fetch_credentials_mode, |
| 1528 request_data.fetch_redirect_mode, request_data.resource_type, | 1528 request_data.fetch_redirect_mode, request_data.resource_type, |
| 1529 request_data.fetch_request_context_type, request_data.fetch_frame_type, | 1529 request_data.fetch_request_context_type, request_data.fetch_frame_type, |
| 1530 request_data.request_body); | 1530 request_data.request_body); |
| 1531 | 1531 |
| 1532 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 1532 ForeignFetchRequestHandler::InitializeHandler( |
| 1533 switches::kEnableExperimentalWebPlatformFeatures)) { | 1533 new_request.get(), filter_->service_worker_context(), blob_context, |
| 1534 ForeignFetchRequestHandler::InitializeHandler( | 1534 child_id, request_data.service_worker_provider_id, |
| 1535 new_request.get(), filter_->service_worker_context(), blob_context, | 1535 should_skip_service_worker, request_data.fetch_request_mode, |
| 1536 child_id, request_data.service_worker_provider_id, | 1536 request_data.fetch_credentials_mode, request_data.fetch_redirect_mode, |
| 1537 should_skip_service_worker, request_data.fetch_request_mode, | 1537 request_data.resource_type, request_data.fetch_request_context_type, |
| 1538 request_data.fetch_credentials_mode, request_data.fetch_redirect_mode, | 1538 request_data.fetch_frame_type, request_data.request_body, |
| 1539 request_data.resource_type, request_data.fetch_request_context_type, | 1539 request_data.initiated_in_secure_context); |
| 1540 request_data.fetch_frame_type, request_data.request_body, | |
| 1541 request_data.initiated_in_secure_context); | |
| 1542 } | |
| 1543 | 1540 |
| 1544 // Have the appcache associate its extra info with the request. | 1541 // Have the appcache associate its extra info with the request. |
| 1545 AppCacheInterceptor::SetExtraRequestInfo( | 1542 AppCacheInterceptor::SetExtraRequestInfo( |
| 1546 new_request.get(), filter_->appcache_service(), child_id, | 1543 new_request.get(), filter_->appcache_service(), child_id, |
| 1547 request_data.appcache_host_id, request_data.resource_type, | 1544 request_data.appcache_host_id, request_data.resource_type, |
| 1548 request_data.should_reset_appcache); | 1545 request_data.should_reset_appcache); |
| 1549 | 1546 |
| 1550 std::unique_ptr<ResourceHandler> handler(CreateResourceHandler( | 1547 std::unique_ptr<ResourceHandler> handler(CreateResourceHandler( |
| 1551 new_request.get(), request_data, sync_result, route_id, process_type, | 1548 new_request.get(), request_data, sync_result, route_id, process_type, |
| 1552 child_id, resource_context)); | 1549 child_id, resource_context)); |
| (...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2599 ssl.cert_id = GetCertStore()->StoreCert(ssl_info.cert.get(), child_id); | 2596 ssl.cert_id = GetCertStore()->StoreCert(ssl_info.cert.get(), child_id); |
| 2600 response->head.security_info = SerializeSecurityInfo(ssl); | 2597 response->head.security_info = SerializeSecurityInfo(ssl); |
| 2601 } | 2598 } |
| 2602 | 2599 |
| 2603 CertStore* ResourceDispatcherHostImpl::GetCertStore() { | 2600 CertStore* ResourceDispatcherHostImpl::GetCertStore() { |
| 2604 return cert_store_for_testing_ ? cert_store_for_testing_ | 2601 return cert_store_for_testing_ ? cert_store_for_testing_ |
| 2605 : CertStore::GetInstance(); | 2602 : CertStore::GetInstance(); |
| 2606 } | 2603 } |
| 2607 | 2604 |
| 2608 } // namespace content | 2605 } // namespace content |
| OLD | NEW |