| 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 #ifndef CHROME_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_DELEGATE_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/download/download_manager_delegate.h" | 10 #include "chrome/browser/download/download_manager_delegate.h" |
| 11 | 11 |
| 12 class MockDownloadManagerDelegate : public DownloadManagerDelegate { | 12 class MockDownloadManagerDelegate : public DownloadManagerDelegate { |
| 13 public: | 13 public: |
| 14 virtual ~MockDownloadManagerDelegate(); | 14 virtual ~MockDownloadManagerDelegate(); |
| 15 virtual bool ShouldStartDownload(int32 download_id) OVERRIDE; |
| 16 virtual void ChooseDownloadPath(TabContents* tab_contents, |
| 17 const FilePath& suggested_path, |
| 18 void* data) OVERRIDE; |
| 19 virtual TabContents* GetAlternativeTabContentsToNotifyForDownload() OVERRIDE; |
| 20 virtual bool ShouldOpenFileBasedOnExtension(const FilePath& path) OVERRIDE; |
| 15 virtual void GetSaveDir(TabContents* tab_contents, | 21 virtual void GetSaveDir(TabContents* tab_contents, |
| 16 FilePath* website_save_dir, | 22 FilePath* website_save_dir, |
| 17 FilePath* download_save_dir) OVERRIDE; | 23 FilePath* download_save_dir) OVERRIDE; |
| 18 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package, | 24 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package, |
| 19 const FilePath& suggested_path, | 25 const FilePath& suggested_path, |
| 20 bool can_save_as_complete) OVERRIDE; | 26 bool can_save_as_complete) OVERRIDE; |
| 21 virtual void ChooseDownloadPath(DownloadManager* download_manager, | |
| 22 TabContents* tab_contents, | |
| 23 const FilePath& suggested_path, | |
| 24 void* data) OVERRIDE; | |
| 25 virtual TabContents* GetAlternativeTabContentsToNotifyForDownload( | |
| 26 DownloadManager* download_manager) OVERRIDE; | |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 #endif // CHROME_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_DELEGATE_H_ | 29 #endif // CHROME_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_DELEGATE_H_ |
| OLD | NEW |