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

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

Issue 2496983003: Use native implementation of dangerous download infobar (Closed)
Patch Set: Created 4 years, 1 month 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
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_H_ 5 #ifndef CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_H_
6 #define CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_H_ 6 #define CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_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 12 matching lines...) Expand all
23 public: 23 public:
24 MockDownloadController(); 24 MockDownloadController();
25 ~MockDownloadController() override; 25 ~MockDownloadController() override;
26 26
27 // DownloadControllerBase implementation. 27 // DownloadControllerBase implementation.
28 void OnDownloadStarted(content::DownloadItem* download_item) override; 28 void OnDownloadStarted(content::DownloadItem* download_item) override;
29 void StartContextMenuDownload( 29 void StartContextMenuDownload(
30 const content::ContextMenuParams& params, 30 const content::ContextMenuParams& params,
31 content::WebContents* web_contents, 31 content::WebContents* web_contents,
32 bool is_link, const std::string& extra_headers) override; 32 bool is_link, const std::string& extra_headers) override;
33 void DangerousDownloadValidated(content::WebContents* web_contents,
34 const std::string& download_guid,
35 bool accept) override;
36 void AcquireFileAccessPermission( 33 void AcquireFileAccessPermission(
37 content::WebContents* web_contents, 34 content::WebContents* web_contents,
38 const AcquireFileAccessPermissionCallback& callback) override; 35 const AcquireFileAccessPermissionCallback& callback) override;
39 void SetApproveFileAccessRequestForTesting(bool approve) override; 36 void SetApproveFileAccessRequestForTesting(bool approve) override;
40 37
41 private: 38 private:
42 bool approve_file_access_request_; 39 bool approve_file_access_request_;
43 DISALLOW_COPY_AND_ASSIGN(MockDownloadController); 40 DISALLOW_COPY_AND_ASSIGN(MockDownloadController);
44 }; 41 };
45 42
46 } // namespace android 43 } // namespace android
47 } // namespace chrome 44 } // namespace chrome
48 45
49 46
50 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_H_ 47 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698