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

Unified Diff: chrome/browser/android/download/download_controller.h

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
Index: chrome/browser/android/download/download_controller.h
diff --git a/chrome/browser/android/download/download_controller.h b/chrome/browser/android/download/download_controller.h
index 428223501ae2c3e608ffad5de3c7552e3272b42e..f044b497e77e14d0b42493678f4aadd3b61dffd1 100644
--- a/chrome/browser/android/download/download_controller.h
+++ b/chrome/browser/android/download/download_controller.h
@@ -44,6 +44,9 @@ class DownloadController : public DownloadControllerBase {
void AcquireFileAccessPermission(
content::WebContents* web_contents,
const AcquireFileAccessPermissionCallback& callback) override;
+ void CreateAndroidDownload(
+ const content::ResourceRequestInfo::WebContentsGetter& wc_getter,
+ const DownloadInfo& info) override;
// UMA histogram enum for download cancellation reasons. Keep this
// in sync with MobileDownloadCancelReason in histograms.xml. This should be
@@ -87,6 +90,14 @@ class DownloadController : public DownloadControllerBase {
base::android::ScopedJavaLocalRef<jobject> GetContentViewCoreFromWebContents(
content::WebContents* web_contents);
+ // Helper methods to start android download on UI thread.
+ void StartAndroidDownload(
+ const content::ResourceRequestInfo::WebContentsGetter& wc_getter,
+ const DownloadInfo& info);
+ void StartAndroidDownloadInternal(
+ const content::ResourceRequestInfo::WebContentsGetter& wc_getter,
+ const DownloadInfo& info, bool allowed);
+
// Creates Java object if it is not created already and returns it.
JavaObject* GetJavaObject();
« no previous file with comments | « chrome/browser/android/download/chrome_download_delegate.cc ('k') | chrome/browser/android/download/download_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698