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

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: fix failing tests/bugs 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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 bool must_download) { 803 bool must_download) {
804 std::unique_ptr<ResourceHandler> handler( 804 std::unique_ptr<ResourceHandler> handler(
805 new DownloadResourceHandler(request)); 805 new DownloadResourceHandler(request));
806 if (delegate_) { 806 if (delegate_) {
807 const ResourceRequestInfoImpl* request_info( 807 const ResourceRequestInfoImpl* request_info(
808 ResourceRequestInfoImpl::ForRequest(request)); 808 ResourceRequestInfoImpl::ForRequest(request));
809 809
810 ScopedVector<ResourceThrottle> throttles; 810 ScopedVector<ResourceThrottle> throttles;
811 delegate_->DownloadStarting( 811 delegate_->DownloadStarting(
812 request, request_info->GetContext(), request_info->GetChildID(), 812 request, request_info->GetContext(), request_info->GetChildID(),
813 request_info->GetRouteID(), request_info->GetRequestID(), 813 request_info->GetRouteID(), is_content_initiated, must_download,
814 is_content_initiated, must_download, &throttles); 814 &throttles);
815 if (!throttles.empty()) { 815 if (!throttles.empty()) {
816 handler.reset(new ThrottlingResourceHandler(std::move(handler), request, 816 handler.reset(new ThrottlingResourceHandler(std::move(handler), request,
817 std::move(throttles))); 817 std::move(throttles)));
818 } 818 }
819 } 819 }
820 return handler; 820 return handler;
821 } 821 }
822 822
823 std::unique_ptr<ResourceHandler> 823 std::unique_ptr<ResourceHandler>
824 ResourceDispatcherHostImpl::MaybeInterceptAsStream( 824 ResourceDispatcherHostImpl::MaybeInterceptAsStream(
(...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after
2640 ssl.cert_id = GetCertStore()->StoreCert(ssl_info.cert.get(), child_id); 2640 ssl.cert_id = GetCertStore()->StoreCert(ssl_info.cert.get(), child_id);
2641 response->head.security_info = SerializeSecurityInfo(ssl); 2641 response->head.security_info = SerializeSecurityInfo(ssl);
2642 } 2642 }
2643 2643
2644 CertStore* ResourceDispatcherHostImpl::GetCertStore() { 2644 CertStore* ResourceDispatcherHostImpl::GetCertStore() {
2645 return cert_store_for_testing_ ? cert_store_for_testing_ 2645 return cert_store_for_testing_ ? cert_store_for_testing_
2646 : CertStore::GetInstance(); 2646 : CertStore::GetInstance();
2647 } 2647 }
2648 2648
2649 } // namespace content 2649 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/download_controller_android_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698