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

Side by Side Diff: chrome/browser/android/download/mock_download_controller_android.h

Issue 1467563002: Use ResourceRequestInfo::GetWebContents in DownloadRequestLimiter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web-contents-callback
Patch Set: Addressed davidben's comments Created 5 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/android/download/mock_download_controller_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_ANDROID_H_ 5 #ifndef CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_ANDROID_H_ 6 #define CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_ANDROID_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "content/public/browser/android/download_controller_android.h" 10 #include "content/public/browser/android/download_controller_android.h"
(...skipping 18 matching lines...) Expand all
29 int request_id) override; 29 int request_id) override;
30 void OnDownloadStarted(content::DownloadItem* download_item) override; 30 void OnDownloadStarted(content::DownloadItem* download_item) override;
31 void StartContextMenuDownload( 31 void StartContextMenuDownload(
32 const content::ContextMenuParams& params, 32 const content::ContextMenuParams& params,
33 content::WebContents* web_contents, 33 content::WebContents* web_contents,
34 bool is_link, const std::string& extra_headers) override; 34 bool is_link, const std::string& extra_headers) override;
35 void DangerousDownloadValidated( 35 void DangerousDownloadValidated(
36 content::WebContents* web_contents, int download_id, 36 content::WebContents* web_contents, int download_id,
37 bool accept) override; 37 bool accept) override;
38 void AcquireFileAccessPermission( 38 void AcquireFileAccessPermission(
39 int render_process_id, 39 content::WebContents* web_contents,
40 int render_view_id,
41 const AcquireFileAccessPermissionCallback& callback) override; 40 const AcquireFileAccessPermissionCallback& callback) override;
42 void SetApproveFileAccessRequestForTesting(bool approve) override; 41 void SetApproveFileAccessRequestForTesting(bool approve) override;
43 42
44 private: 43 private:
45 bool approve_file_access_request_; 44 bool approve_file_access_request_;
46 DISALLOW_COPY_AND_ASSIGN(MockDownloadControllerAndroid); 45 DISALLOW_COPY_AND_ASSIGN(MockDownloadControllerAndroid);
47 }; 46 };
48 47
49 } // namespace android 48 } // namespace android
50 } // namespace chrome 49 } // namespace chrome
51 50
52 51
53 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_ANDROID_H_ 52 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/download/mock_download_controller_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698