OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/download/mock_download_manager_delegate.h" | 5 #include "chrome/browser/download/mock_download_manager_delegate.h" |
6 | 6 |
7 MockDownloadManagerDelegate::~MockDownloadManagerDelegate() { | 7 MockDownloadManagerDelegate::~MockDownloadManagerDelegate() { |
8 } | 8 } |
9 | 9 |
| 10 bool MockDownloadManagerDelegate::ShouldStartDownload(int32 download_id) { |
| 11 return true; |
| 12 } |
| 13 |
| 14 void MockDownloadManagerDelegate::ChooseDownloadPath( |
| 15 TabContents* tab_contents, |
| 16 const FilePath& suggested_path, |
| 17 void* data) { |
| 18 } |
| 19 |
| 20 TabContents* MockDownloadManagerDelegate:: |
| 21 GetAlternativeTabContentsToNotifyForDownload() { |
| 22 return NULL; |
| 23 } |
| 24 |
| 25 bool MockDownloadManagerDelegate::ShouldOpenFileBasedOnExtension( |
| 26 const FilePath& path) { |
| 27 return false; |
| 28 } |
| 29 |
10 void MockDownloadManagerDelegate::GetSaveDir( | 30 void MockDownloadManagerDelegate::GetSaveDir( |
11 TabContents* tab_contents, | 31 TabContents* tab_contents, |
12 FilePath* website_save_dir, | 32 FilePath* website_save_dir, |
13 FilePath* download_save_dir) { | 33 FilePath* download_save_dir) { |
14 } | 34 } |
15 | 35 |
16 void MockDownloadManagerDelegate::ChooseSavePath( | 36 void MockDownloadManagerDelegate::ChooseSavePath( |
17 const base::WeakPtr<SavePackage>& save_package, | 37 const base::WeakPtr<SavePackage>& save_package, |
18 const FilePath& suggested_path, | 38 const FilePath& suggested_path, |
19 bool can_save_as_complete) { | 39 bool can_save_as_complete) { |
20 } | 40 } |
21 | |
22 void MockDownloadManagerDelegate::ChooseDownloadPath( | |
23 DownloadManager* download_manager, | |
24 TabContents* tab_contents, | |
25 const FilePath& suggested_path, | |
26 void* data) { | |
27 } | |
28 | |
29 TabContents* | |
30 MockDownloadManagerDelegate::GetAlternativeTabContentsToNotifyForDownload( | |
31 DownloadManager* download_manager) { | |
32 return NULL; | |
33 } | |
OLD | NEW |