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

Unified Diff: chrome/browser/download/mock_download_manager_delegate.h

Issue 7640021: Move some Chrome-specific code paths out of DownloadManager and into the delegate. Getting rid of... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/mock_download_manager_delegate.h
===================================================================
--- chrome/browser/download/mock_download_manager_delegate.h (revision 96577)
+++ chrome/browser/download/mock_download_manager_delegate.h (working copy)
@@ -12,18 +12,18 @@
class MockDownloadManagerDelegate : public DownloadManagerDelegate {
public:
virtual ~MockDownloadManagerDelegate();
+ virtual bool ShouldStartDownload(int32 download_id) OVERRIDE;
+ virtual void ChooseDownloadPath(TabContents* tab_contents,
+ const FilePath& suggested_path,
+ void* data) OVERRIDE;
+ virtual TabContents* GetAlternativeTabContentsToNotifyForDownload() OVERRIDE;
+ virtual bool ShouldOpenFileBasedOnExtension(const FilePath& path) OVERRIDE;
virtual void GetSaveDir(TabContents* tab_contents,
FilePath* website_save_dir,
FilePath* download_save_dir) OVERRIDE;
virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package,
const FilePath& suggested_path,
bool can_save_as_complete) OVERRIDE;
- virtual void ChooseDownloadPath(DownloadManager* download_manager,
- TabContents* tab_contents,
- const FilePath& suggested_path,
- void* data) OVERRIDE;
- virtual TabContents* GetAlternativeTabContentsToNotifyForDownload(
- DownloadManager* download_manager) OVERRIDE;
};
#endif // CHROME_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_DELEGATE_H_
« no previous file with comments | « chrome/browser/download/download_manager_unittest.cc ('k') | chrome/browser/download/mock_download_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698