summaryrefslogtreecommitdiffstats
path: root/content/public/browser
diff options
context:
space:
mode:
authorqinmin <qinmin@chromium.org>2015-07-21 18:08:32 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-22 01:09:02 +0000
commit58ad68abb6710ce2e9381132b26c70845d777c12 (patch)
tree2106f80eb0ddab663ef25beac4fb43f8d646cda3 /content/public/browser
parente8eb3a8423c7f0a44033b66c98ffa16eaa65aac5 (diff)
downloadchromium_src-58ad68abb6710ce2e9381132b26c70845d777c12.zip
chromium_src-58ad68abb6710ce2e9381132b26c70845d777c12.tar.gz
chromium_src-58ad68abb6710ce2e9381132b26c70845d777c12.tar.bz2
move file access permission logic to DownloadResourceThrottle
As previously discussed, DownloadResouceThrottle is the best place to handle file access requests. This CL moves that logic from DownloadTargetDeterminer to DownloadResourceThrottle. Unit test is also added for DownloadResourceThrottle. BUG=501606 Review URL: https://codereview.chromium.org/1229933010 Cr-Commit-Position: refs/heads/master@{#339808}
Diffstat (limited to 'content/public/browser')
-rw-r--r--content/public/browser/android/download_controller_android.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/public/browser/android/download_controller_android.h b/content/public/browser/android/download_controller_android.h
index 859a8a0..915d602 100644
--- a/content/public/browser/android/download_controller_android.h
+++ b/content/public/browser/android/download_controller_android.h
@@ -50,7 +50,8 @@ class CONTENT_EXPORT DownloadControllerAndroid {
// Called to prompt the user for file access permission. When finished,
// |callback| will be executed.
virtual void AcquireFileAccessPermission(
- WebContents* web_contents,
+ int render_process_id,
+ int render_view_id,
const AcquireFileAccessPermissionCallback& callback) = 0;
// Called by unit test to approve or disapprove file access request.