| OLD | NEW |
| 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/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 ~MockDownloadControllerAndroid() override; | 26 ~MockDownloadControllerAndroid() override; |
| 27 | 27 |
| 28 // DownloadControllerAndroid implementation. | 28 // DownloadControllerAndroid implementation. |
| 29 void CreateGETDownload(int render_process_id, int render_view_id, | 29 void CreateGETDownload(int render_process_id, int render_view_id, |
| 30 int request_id) override; | 30 int request_id) override; |
| 31 void OnDownloadStarted(content::DownloadItem* download_item) override; | 31 void OnDownloadStarted(content::DownloadItem* download_item) override; |
| 32 void StartContextMenuDownload( | 32 void StartContextMenuDownload( |
| 33 const content::ContextMenuParams& params, | 33 const content::ContextMenuParams& params, |
| 34 content::WebContents* web_contents, | 34 content::WebContents* web_contents, |
| 35 bool is_link, const std::string& extra_headers) override; | 35 bool is_link, const std::string& extra_headers) override; |
| 36 void DangerousDownloadValidated( | 36 void DangerousDownloadValidated(content::WebContents* web_contents, |
| 37 content::WebContents* web_contents, int download_id, | 37 const std::string& download_guid, |
| 38 bool accept) override; | 38 bool accept) override; |
| 39 void AcquireFileAccessPermission( | 39 void AcquireFileAccessPermission( |
| 40 content::WebContents* web_contents, | 40 content::WebContents* web_contents, |
| 41 const AcquireFileAccessPermissionCallback& callback) override; | 41 const AcquireFileAccessPermissionCallback& callback) override; |
| 42 void SetApproveFileAccessRequestForTesting(bool approve) override; | 42 void SetApproveFileAccessRequestForTesting(bool approve) override; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 bool approve_file_access_request_; | 45 bool approve_file_access_request_; |
| 46 DISALLOW_COPY_AND_ASSIGN(MockDownloadControllerAndroid); | 46 DISALLOW_COPY_AND_ASSIGN(MockDownloadControllerAndroid); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace android | 49 } // namespace android |
| 50 } // namespace chrome | 50 } // namespace chrome |
| 51 | 51 |
| 52 | 52 |
| 53 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_ANDROID_H_ | 53 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_ANDROID_H_ |
| OLD | NEW |