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

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

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 #include "chrome/browser/download/mock_download_manager_delegate.h" 5 #include "chrome/browser/download/mock_download_manager_delegate.h"
6 6
7 MockDownloadManagerDelegate::~MockDownloadManagerDelegate() { 7 MockDownloadManagerDelegate::~MockDownloadManagerDelegate() {
8 } 8 }
9 9
10 bool MockDownloadManagerDelegate::ShouldStartDownload(int32 download_id) {
11 return true;
12 }
13
14 void MockDownloadManagerDelegate::ChooseDownloadPath(
15 TabContents* tab_contents,
16 const FilePath& suggested_path,
17 void* data) {
18 }
19
20 TabContents* MockDownloadManagerDelegate::
21 GetAlternativeTabContentsToNotifyForDownload() {
22 return NULL;
23 }
24
25 bool MockDownloadManagerDelegate::ShouldOpenFileBasedOnExtension(
26 const FilePath& path) {
27 return false;
28 }
29
10 void MockDownloadManagerDelegate::GetSaveDir( 30 void MockDownloadManagerDelegate::GetSaveDir(
11 TabContents* tab_contents, 31 TabContents* tab_contents,
12 FilePath* website_save_dir, 32 FilePath* website_save_dir,
13 FilePath* download_save_dir) { 33 FilePath* download_save_dir) {
14 } 34 }
15 35
16 void MockDownloadManagerDelegate::ChooseSavePath( 36 void MockDownloadManagerDelegate::ChooseSavePath(
17 const base::WeakPtr<SavePackage>& save_package, 37 const base::WeakPtr<SavePackage>& save_package,
18 const FilePath& suggested_path, 38 const FilePath& suggested_path,
19 bool can_save_as_complete) { 39 bool can_save_as_complete) {
20 } 40 }
21
22 void MockDownloadManagerDelegate::ChooseDownloadPath(
23 DownloadManager* download_manager,
24 TabContents* tab_contents,
25 const FilePath& suggested_path,
26 void* data) {
27 }
28
29 TabContents*
30 MockDownloadManagerDelegate::GetAlternativeTabContentsToNotifyForDownload(
31 DownloadManager* download_manager) {
32 return NULL;
33 }
OLDNEW
« no previous file with comments | « chrome/browser/download/mock_download_manager_delegate.h ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698