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

Unified Diff: chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc

Issue 2642683005: reintroduce InterceptDownloadResourceThrottle for some OMA DRM downloads (Closed)
Patch Set: function name change to avoid findbugs confusion Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/download/mock_download_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
diff --git a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
index 154f28f0fc415a463a836944ad95249484fa5bc8..32a26c597bd0daf7ca4d9d52c11e6e9c9085a7fb 100644
--- a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
+++ b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
@@ -106,6 +106,7 @@
#endif
#if defined(OS_ANDROID)
+#include "chrome/browser/android/download/intercept_download_resource_throttle.h"
#include "chrome/browser/android/offline_pages/downloads/resource_throttle.h"
#include "chrome/browser/loader/data_reduction_proxy_resource_throttle_android.h"
#include "components/navigation_interception/intercept_navigation_delegate.h"
@@ -552,6 +553,9 @@ void ChromeResourceDispatcherHostDelegate::DownloadStarting(
content::RESOURCE_TYPE_MAIN_FRAME,
throttles);
#if defined(OS_ANDROID)
+ throttles->push_back(
+ base::MakeUnique<InterceptDownloadResourceThrottle>(
+ request, info->GetWebContentsGetterForRequest()));
// On Android, forward text/html downloads to OfflinePages backend.
throttles->push_back(
base::MakeUnique<offline_pages::downloads::ResourceThrottle>(request));
« no previous file with comments | « chrome/browser/android/download/mock_download_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698