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

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

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 #include "chrome/browser/android/download/mock_download_controller.h" 5 #include "chrome/browser/android/download/mock_download_controller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 10
(...skipping 21 matching lines...) Expand all
32 const DownloadControllerBase::AcquireFileAccessPermissionCallback& cb) { 32 const DownloadControllerBase::AcquireFileAccessPermissionCallback& cb) {
33 base::ThreadTaskRunnerHandle::Get()->PostTask( 33 base::ThreadTaskRunnerHandle::Get()->PostTask(
34 FROM_HERE, base::Bind(cb, approve_file_access_request_)); 34 FROM_HERE, base::Bind(cb, approve_file_access_request_));
35 } 35 }
36 36
37 void MockDownloadController::SetApproveFileAccessRequestForTesting( 37 void MockDownloadController::SetApproveFileAccessRequestForTesting(
38 bool approve) { 38 bool approve) {
39 approve_file_access_request_ = approve; 39 approve_file_access_request_ = approve;
40 } 40 }
41 41
42 void MockDownloadController::CreateAndroidDownload(
43 const content::ResourceRequestInfo::WebContentsGetter& wc_getter,
44 const DownloadInfo& info) {}
45
42 } // namespace android 46 } // namespace android
43 } // namespace chrome 47 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698