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

Side by Side Diff: chrome/browser/download/mock_download_manager_delegate.h

Issue 7631009: Move download_manager_delegate.h to content. I forgot to move this earlier. (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
« no previous file with comments | « chrome/browser/download/download_manager_delegate.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/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; 15 virtual bool ShouldStartDownload(int32 download_id) OVERRIDE;
16 virtual void ChooseDownloadPath(TabContents* tab_contents, 16 virtual void ChooseDownloadPath(TabContents* tab_contents,
17 const FilePath& suggested_path, 17 const FilePath& suggested_path,
18 void* data) OVERRIDE; 18 void* data) OVERRIDE;
19 virtual TabContents* GetAlternativeTabContentsToNotifyForDownload() OVERRIDE; 19 virtual TabContents* GetAlternativeTabContentsToNotifyForDownload() OVERRIDE;
20 virtual bool ShouldOpenFileBasedOnExtension(const FilePath& path) OVERRIDE; 20 virtual bool ShouldOpenFileBasedOnExtension(const FilePath& path) OVERRIDE;
21 virtual void GetSaveDir(TabContents* tab_contents, 21 virtual void GetSaveDir(TabContents* tab_contents,
22 FilePath* website_save_dir, 22 FilePath* website_save_dir,
23 FilePath* download_save_dir) OVERRIDE; 23 FilePath* download_save_dir) OVERRIDE;
24 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package, 24 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package,
25 const FilePath& suggested_path, 25 const FilePath& suggested_path,
26 bool can_save_as_complete) OVERRIDE; 26 bool can_save_as_complete) 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_delegate.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698