Chromium Code Reviews| Index: chrome/browser/android/download/download_controller_base.h |
| diff --git a/chrome/browser/android/download/download_controller_base.h b/chrome/browser/android/download/download_controller_base.h |
| index 6a9bf6941db8677b6adae9cf54fe7df3b4c36047..819c5b8414c32ec3520ed3456bedee3a1712236c 100644 |
| --- a/chrome/browser/android/download/download_controller_base.h |
| +++ b/chrome/browser/android/download/download_controller_base.h |
| @@ -36,16 +36,11 @@ struct DownloadInfo { |
| GURL url; |
| // The original URL before any redirection by the server for this URL. |
| GURL original_url; |
| - int64_t total_bytes; |
| std::string content_disposition; |
| std::string original_mime_type; |
| std::string user_agent; |
| std::string cookie; |
| std::string referer; |
| - bool has_user_gesture; |
| - |
| - content::WebContents* web_contents; |
| - // Default copy constructor is used for passing this struct by value. |
| }; |
| // Interface to request GET downloads and send notifications for POST |
| @@ -83,6 +78,11 @@ class DownloadControllerBase : public content::DownloadItem::Observer { |
| // Called by unit test to approve or disapprove file access request. |
| virtual void SetApproveFileAccessRequestForTesting(bool approve) {} |
| + // Starts a new download request with Android DownloadManager. |
| + virtual void CreateGETDownload( |
|
David Trainor- moved to gerrit
2017/01/24 17:13:35
Who calls this?
qinmin
2017/01/24 17:32:24
InterceptDownloadResourceThrottle calls this to le
|
| + const content::ResourceRequestInfo::WebContentsGetter& wc_getter, |
| + const DownloadInfo& info) = 0; |
| + |
| protected: |
| ~DownloadControllerBase() override {} |
| static DownloadControllerBase* download_controller_; |