Chromium Code Reviews| 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..4ad2c59f442761d5c9c6203febcb2743614be859 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. |
| @@ -25,6 +27,12 @@ class CONTENT_EXPORT DownloadControllerAndroid { |
| // Should be called when a POST download is started. Notifies the embedding |
| // app about the download. Should be called on the UI thread. |
| virtual void OnPostDownloadStarted(DownloadItem* download_item) = 0; |
|
nilesh
2013/04/12 16:44:14
Also rename this to OnDownloadStarted. With this a
nilesh
2013/04/12 16:50:07
actually you can add a note in the comment and a T
qinmin
2013/04/15 18:56:51
Done.
qinmin
2013/04/15 18:56:51
Fixed naming in all the related classes, and also
|
| + |
| + // Called when a download is initiated by context menu. |
| + virtual void StartContextMenuDownload( |
| + const ContextMenuParams& params, WebContents* web_contents, |
| + bool is_link) = 0; |
|
nilesh
2013/04/12 16:27:45
looking at the caller, is_link can be decided base
qinmin
2013/04/15 18:56:51
we still need this. We need to know whether "save
|
| + |
| protected: |
| virtual ~DownloadControllerAndroid() {}; |
| }; |