| 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 905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 if (!IsResourceTypeFrame(info->GetResourceType())) | 916 if (!IsResourceTypeFrame(info->GetResourceType())) |
| 917 return false; | 917 return false; |
| 918 | 918 |
| 919 const net::URLRequestJobFactory* job_factory = | 919 const net::URLRequestJobFactory* job_factory = |
| 920 info->GetContext()->GetRequestContext()->job_factory(); | 920 info->GetContext()->GetRequestContext()->job_factory(); |
| 921 if (job_factory->IsHandledURL(url)) | 921 if (job_factory->IsHandledURL(url)) |
| 922 return false; | 922 return false; |
| 923 | 923 |
| 924 return delegate_->HandleExternalProtocol( | 924 return delegate_->HandleExternalProtocol( |
| 925 url, info->GetChildID(), info->GetWebContentsGetterForRequest(), | 925 url, info->GetChildID(), info->GetWebContentsGetterForRequest(), |
| 926 info->IsMainFrame(), info->GetPageTransition(), info->HasUserGesture()); | 926 info->IsMainFrame(), info->GetPageTransition(), info->HasUserGesture(), |
| 927 info->GetContext()); |
| 927 } | 928 } |
| 928 | 929 |
| 929 void ResourceDispatcherHostImpl::DidStartRequest(ResourceLoader* loader) { | 930 void ResourceDispatcherHostImpl::DidStartRequest(ResourceLoader* loader) { |
| 930 // Make sure we have the load state monitor running. | 931 // Make sure we have the load state monitor running. |
| 931 if (!update_load_states_timer_->IsRunning() && | 932 if (!update_load_states_timer_->IsRunning() && |
| 932 scheduler_->HasLoadingClients()) { | 933 scheduler_->HasLoadingClients()) { |
| 933 update_load_states_timer_->Start( | 934 update_load_states_timer_->Start( |
| 934 FROM_HERE, TimeDelta::FromMilliseconds(kUpdateLoadStatesIntervalMsec), | 935 FROM_HERE, TimeDelta::FromMilliseconds(kUpdateLoadStatesIntervalMsec), |
| 935 this, &ResourceDispatcherHostImpl::UpdateLoadInfo); | 936 this, &ResourceDispatcherHostImpl::UpdateLoadInfo); |
| 936 } | 937 } |
| (...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2689 ssl.cert_id = GetCertStore()->StoreCert(ssl_info.cert.get(), child_id); | 2690 ssl.cert_id = GetCertStore()->StoreCert(ssl_info.cert.get(), child_id); |
| 2690 response->head.security_info = SerializeSecurityInfo(ssl); | 2691 response->head.security_info = SerializeSecurityInfo(ssl); |
| 2691 } | 2692 } |
| 2692 | 2693 |
| 2693 CertStore* ResourceDispatcherHostImpl::GetCertStore() { | 2694 CertStore* ResourceDispatcherHostImpl::GetCertStore() { |
| 2694 return cert_store_for_testing_ ? cert_store_for_testing_ | 2695 return cert_store_for_testing_ ? cert_store_for_testing_ |
| 2695 : CertStore::GetInstance(); | 2696 : CertStore::GetInstance(); |
| 2696 } | 2697 } |
| 2697 | 2698 |
| 2698 } // namespace content | 2699 } // namespace content |
| OLD | NEW |