| 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();
|
|
|
|
|