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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/mock_download_manager_delegate.cc
===================================================================
--- chrome/browser/download/mock_download_manager_delegate.cc (revision 96577)
+++ chrome/browser/download/mock_download_manager_delegate.cc (working copy)
@@ -7,6 +7,26 @@
MockDownloadManagerDelegate::~MockDownloadManagerDelegate() {
}
+bool MockDownloadManagerDelegate::ShouldStartDownload(int32 download_id) {
+ return true;
+}
+
+void MockDownloadManagerDelegate::ChooseDownloadPath(
+ TabContents* tab_contents,
+ const FilePath& suggested_path,
+ void* data) {
+}
+
+TabContents* MockDownloadManagerDelegate::
+ GetAlternativeTabContentsToNotifyForDownload() {
+ return NULL;
+}
+
+bool MockDownloadManagerDelegate::ShouldOpenFileBasedOnExtension(
+ const FilePath& path) {
+ return false;
+}
+
void MockDownloadManagerDelegate::GetSaveDir(
TabContents* tab_contents,
FilePath* website_save_dir,
@@ -18,16 +38,3 @@
const FilePath& suggested_path,
bool can_save_as_complete) {
}
-
-void MockDownloadManagerDelegate::ChooseDownloadPath(
- DownloadManager* download_manager,
- TabContents* tab_contents,
- const FilePath& suggested_path,
- void* data) {
-}
-
-TabContents*
- MockDownloadManagerDelegate::GetAlternativeTabContentsToNotifyForDownload(
- DownloadManager* download_manager) {
- return NULL;
-}
« 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