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

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

Issue 2642683005: reintroduce InterceptDownloadResourceThrottle for some OMA DRM downloads (Closed)
Patch Set: Created 3 years, 11 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..00cea354c24bdbb43025621d163108bd31603b5f 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"
@@ -542,6 +543,11 @@ void ChromeResourceDispatcherHostDelegate::DownloadStarting(
throttles->push_back(base::MakeUnique<DownloadResourceThrottle>(
download_request_limiter_, info->GetWebContentsGetterForRequest(),
request->url(), request->method()));
+#if defined(OS_ANDROID)
+ throttles->push_back(
+ base::MakeUnique<InterceptDownloadResourceThrottle>(
+ request, info->GetWebContentsGetterForRequest()));
+#endif
asanka 2017/01/19 23:59:13 This is the wrong place to add this resource throt
qinmin 2017/01/20 00:06:10 Done.
}
// If this isn't a new request, the standard resource throttles have already
« 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