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

Unified Diff: content/public/browser/android/download_controller_android.h

Issue 13859009: Adding a call to support download initiated context menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressing comments Created 7 years, 8 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 | « content/public/android/java/src/org/chromium/content/browser/DownloadController.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/android/download_controller_android.h
diff --git a/content/public/browser/android/download_controller_android.h b/content/public/browser/android/download_controller_android.h
index b4132052e4c9c9dd217bd8ccb2d0cc410cabb7e4..481babe179a93010167e9c02d20b6bfa004275f7 100644
--- a/content/public/browser/android/download_controller_android.h
+++ b/content/public/browser/android/download_controller_android.h
@@ -6,9 +6,11 @@
#define CONTENT_PUBLIC_BROWSER_ANDROID_DOWNLOAD_CONTROLLER_ANDROID_H_
#include "content/common/content_export.h"
+#include "content/public/common/context_menu_params.h"
namespace content {
class DownloadItem;
+class WebContents;
// Interface to request GET downloads and send notifications for POST
// downloads.
@@ -22,9 +24,16 @@ class CONTENT_EXPORT DownloadControllerAndroid {
virtual void CreateGETDownload(int render_process_id, int render_view_id,
int request_id) = 0;
- // Should be called when a POST download is started. Notifies the embedding
+ // Should be called when a download is started. It can be either a GET
+ // request with authentication or a POST request. Notifies the embedding
// app about the download. Should be called on the UI thread.
- virtual void OnPostDownloadStarted(DownloadItem* download_item) = 0;
+ virtual void OnDownloadStarted(DownloadItem* download_item) = 0;
+
+ // Called when a download is initiated by context menu.
+ virtual void StartContextMenuDownload(
+ const ContextMenuParams& params, WebContents* web_contents,
+ bool is_link) = 0;
+
protected:
virtual ~DownloadControllerAndroid() {};
};
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/DownloadController.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698