diff options
author | nileshagrawal@chromium.org <nileshagrawal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-13 04:51:54 +0000 |
---|---|---|
committer | nileshagrawal@chromium.org <nileshagrawal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-13 04:51:54 +0000 |
commit | c0c1c62e685f099600c6a9f920fc36b0296ff8e4 (patch) | |
tree | 38003bfacbb6681e2e85d0edf251da128eb78fad /chrome/browser/download/download_request_limiter.h | |
parent | eaac1ad09b9829b77562eee9bc0766132b8326af (diff) | |
download | chromium_src-c0c1c62e685f099600c6a9f920fc36b0296ff8e4.zip chromium_src-c0c1c62e685f099600c6a9f920fc36b0296ff8e4.tar.gz chromium_src-c0c1c62e685f099600c6a9f920fc36b0296ff8e4.tar.bz2 |
Use WebContentsDelegate::CanDownload to intercept file downloads on Android.
On Android we need to
- Intercepts GET download requests, collects all information for the downlaod to be executed on the JAVA/app side.
- POST requests are handled normally.
Review URL: http://codereview.chromium.org/9464025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126336 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_request_limiter.h')
-rw-r--r-- | chrome/browser/download/download_request_limiter.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/download/download_request_limiter.h b/chrome/browser/download/download_request_limiter.h index 629f145..457de30 100644 --- a/chrome/browser/download/download_request_limiter.h +++ b/chrome/browser/download/download_request_limiter.h @@ -176,6 +176,7 @@ class DownloadRequestLimiter void CanDownloadOnIOThread(int render_process_host_id, int render_view_id, int request_id, + const std::string& request_method, const Callback& callback); // Invoked when the user presses the mouse, enter key or space bar. This may @@ -218,12 +219,14 @@ class DownloadRequestLimiter void CanDownload(int render_process_host_id, int render_view_id, int request_id, + const std::string& request_method, const Callback& callback); // Does the work of updating the download status on the UI thread and // potentially prompting the user. void CanDownloadImpl(TabContentsWrapper* originating_tab, int request_id, + const std::string& request_method, const Callback& callback); // Invoked on the UI thread. Schedules a call to NotifyCallback on the io |