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

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

Issue 2014803002: Move DownloadControllerAndroid from content/ to chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed deprecated cookie apis Created 4 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 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 bool must_download) { 840 bool must_download) {
841 std::unique_ptr<ResourceHandler> handler( 841 std::unique_ptr<ResourceHandler> handler(
842 new DownloadResourceHandler(request)); 842 new DownloadResourceHandler(request));
843 if (delegate_) { 843 if (delegate_) {
844 const ResourceRequestInfoImpl* request_info( 844 const ResourceRequestInfoImpl* request_info(
845 ResourceRequestInfoImpl::ForRequest(request)); 845 ResourceRequestInfoImpl::ForRequest(request));
846 846
847 ScopedVector<ResourceThrottle> throttles; 847 ScopedVector<ResourceThrottle> throttles;
848 delegate_->DownloadStarting( 848 delegate_->DownloadStarting(
849 request, request_info->GetContext(), request_info->GetChildID(), 849 request, request_info->GetContext(), request_info->GetChildID(),
850 request_info->GetRouteID(), request_info->GetRequestID(), 850 request_info->GetRouteID(), is_content_initiated, must_download,
851 is_content_initiated, must_download, &throttles); 851 &throttles);
852 if (!throttles.empty()) { 852 if (!throttles.empty()) {
853 handler.reset(new ThrottlingResourceHandler(std::move(handler), request, 853 handler.reset(new ThrottlingResourceHandler(std::move(handler), request,
854 std::move(throttles))); 854 std::move(throttles)));
855 } 855 }
856 } 856 }
857 return handler; 857 return handler;
858 } 858 }
859 859
860 std::unique_ptr<ResourceHandler> 860 std::unique_ptr<ResourceHandler>
861 ResourceDispatcherHostImpl::MaybeInterceptAsStream( 861 ResourceDispatcherHostImpl::MaybeInterceptAsStream(
(...skipping 1831 matching lines...) Expand 10 before | Expand all | Expand 10 after
2693 ssl.cert_id = GetCertStore()->StoreCert(ssl_info.cert.get(), child_id); 2693 ssl.cert_id = GetCertStore()->StoreCert(ssl_info.cert.get(), child_id);
2694 response->head.security_info = SerializeSecurityInfo(ssl); 2694 response->head.security_info = SerializeSecurityInfo(ssl);
2695 } 2695 }
2696 2696
2697 CertStore* ResourceDispatcherHostImpl::GetCertStore() { 2697 CertStore* ResourceDispatcherHostImpl::GetCertStore() {
2698 return cert_store_for_testing_ ? cert_store_for_testing_ 2698 return cert_store_for_testing_ ? cert_store_for_testing_
2699 : CertStore::GetInstance(); 2699 : CertStore::GetInstance();
2700 } 2700 }
2701 2701
2702 } // namespace content 2702 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698