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

Unified Diff: content/public/browser/download_manager_delegate.cc

Issue 10704052: Download filename determination refactor (3/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with r148594 to and resolve conflicts with r148576 Created 8 years, 5 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 | « content/public/browser/download_manager_delegate.h ('k') | content/public/test/mock_download_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/download_manager_delegate.cc
diff --git a/content/public/browser/download_manager_delegate.cc b/content/public/browser/download_manager_delegate.cc
index 3ff11d13eb38ee2e30221b8b0567fe131ec749fc..1896874bad123f937ea7ad6741cbd325617a0098 100644
--- a/content/public/browser/download_manager_delegate.cc
+++ b/content/public/browser/download_manager_delegate.cc
@@ -13,13 +13,10 @@ DownloadId DownloadManagerDelegate::GetNextId() {
return DownloadId::Invalid();
}
-bool DownloadManagerDelegate::ShouldStartDownload(int32 download_id) {
- return true;
-}
-
-FilePath DownloadManagerDelegate::GetIntermediatePath(
- const DownloadItem& item) {
- return item.GetTargetFilePath();
+bool DownloadManagerDelegate::DetermineDownloadTarget(
+ DownloadItem* item,
+ const DownloadTargetCallback& callback) {
+ return false;
}
WebContents* DownloadManagerDelegate::
« no previous file with comments | « content/public/browser/download_manager_delegate.h ('k') | content/public/test/mock_download_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698