| 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 CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_DELEGATE_H_ | 6 #define CONTENT_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 "content/browser/download/download_manager_delegate.h" | 10 #include "content/browser/download/download_manager_delegate.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 virtual TabContents* GetAlternativeTabContentsToNotifyForDownload() OVERRIDE; | 22 virtual TabContents* GetAlternativeTabContentsToNotifyForDownload() OVERRIDE; |
| 23 virtual bool ShouldOpenFileBasedOnExtension(const FilePath& path) OVERRIDE; | 23 virtual bool ShouldOpenFileBasedOnExtension(const FilePath& path) OVERRIDE; |
| 24 virtual bool ShouldOpenDownload(DownloadItem* item) OVERRIDE; | 24 virtual bool ShouldOpenDownload(DownloadItem* item) OVERRIDE; |
| 25 virtual bool ShouldCompleteDownload(DownloadItem* item) OVERRIDE; | 25 virtual bool ShouldCompleteDownload(DownloadItem* item) OVERRIDE; |
| 26 virtual bool GenerateFileHash() OVERRIDE; | 26 virtual bool GenerateFileHash() OVERRIDE; |
| 27 virtual void AddItemToPersistentStore(DownloadItem* item) OVERRIDE; | 27 virtual void AddItemToPersistentStore(DownloadItem* item) OVERRIDE; |
| 28 virtual void UpdateItemInPersistentStore(DownloadItem* item) OVERRIDE; | 28 virtual void UpdateItemInPersistentStore(DownloadItem* item) OVERRIDE; |
| 29 virtual void UpdatePathForItemInPersistentStore( | 29 virtual void UpdatePathForItemInPersistentStore( |
| 30 DownloadItem* item, | 30 DownloadItem* item, |
| 31 const FilePath& new_path) OVERRIDE; | 31 const FilePath& new_path) OVERRIDE; |
| 32 virtual void RemoveItemFromPersistentStore(DownloadItem* item) OVERRIDE; | 32 virtual void RemoveItemFromPersistentStore(int64 db_handle) OVERRIDE; |
| 33 virtual void RemoveItemsFromPersistentStoreBetween( | 33 virtual void RemoveItemsFromPersistentStoreBetween( |
| 34 const base::Time remove_begin, | 34 const base::Time remove_begin, |
| 35 const base::Time remove_end) OVERRIDE; | 35 const base::Time remove_end) OVERRIDE; |
| 36 virtual void GetSaveDir(TabContents* tab_contents, | 36 virtual void GetSaveDir(TabContents* tab_contents, |
| 37 FilePath* website_save_dir, | 37 FilePath* website_save_dir, |
| 38 FilePath* download_save_dir) OVERRIDE; | 38 FilePath* download_save_dir) OVERRIDE; |
| 39 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package, | 39 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package, |
| 40 const FilePath& suggested_path, | 40 const FilePath& suggested_path, |
| 41 bool can_save_as_complete) OVERRIDE; | 41 bool can_save_as_complete) OVERRIDE; |
| 42 virtual void DownloadProgressUpdated() OVERRIDE; | 42 virtual void DownloadProgressUpdated() OVERRIDE; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_DELEGATE_H_ | 45 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_DELEGATE_H_ |
| OLD | NEW |