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

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

Issue 2642683005: reintroduce InterceptDownloadResourceThrottle for some OMA DRM downloads (Closed)
Patch Set: function name change to avoid findbugs confusion Created 3 years, 10 months 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 16 matching lines...) Expand all
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 AcquireFileAccessPermission( 33 void AcquireFileAccessPermission(
34 content::WebContents* web_contents, 34 content::WebContents* web_contents,
35 const AcquireFileAccessPermissionCallback& callback) override; 35 const AcquireFileAccessPermissionCallback& callback) override;
36 void SetApproveFileAccessRequestForTesting(bool approve) override; 36 void SetApproveFileAccessRequestForTesting(bool approve) override;
37 37 void CreateAndroidDownload(
38 const content::ResourceRequestInfo::WebContentsGetter& wc_getter,
39 const DownloadInfo& info) override;
38 private: 40 private:
39 bool approve_file_access_request_; 41 bool approve_file_access_request_;
40 DISALLOW_COPY_AND_ASSIGN(MockDownloadController); 42 DISALLOW_COPY_AND_ASSIGN(MockDownloadController);
41 }; 43 };
42 44
43 } // namespace android 45 } // namespace android
44 } // namespace chrome 46 } // namespace chrome
45 47
46 48
47 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_H_ 49 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698