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

Unified Diff: chrome/browser/android/download/download_controller_base.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_base.h
diff --git a/chrome/browser/android/download/download_controller_base.h b/chrome/browser/android/download/download_controller_base.h
index 6a9bf6941db8677b6adae9cf54fe7df3b4c36047..e43f1ed6893b90da2ca729db5792f6c16dd819c6 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 CreateAndroidDownload(
+ const content::ResourceRequestInfo::WebContentsGetter& wc_getter,
+ const DownloadInfo& info) = 0;
+
protected:
~DownloadControllerBase() override {}
static DownloadControllerBase* download_controller_;
« no previous file with comments | « chrome/browser/android/download/download_controller.cc ('k') | chrome/browser/android/download/download_controller_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698