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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW
« 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