1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "content/public/browser/download_manager_delegate.h" 6 7 #include "content/public/browser/download_item.h" 8 9 namespace content { 10 GetNextId(const DownloadIdCallback & callback)11void DownloadManagerDelegate::GetNextId(const DownloadIdCallback& callback) { 12 callback.Run(content::DownloadItem::kInvalidId); 13 } 14 DetermineDownloadTarget(DownloadItem * item,const DownloadTargetCallback & callback)15bool DownloadManagerDelegate::DetermineDownloadTarget( 16 DownloadItem* item, 17 const DownloadTargetCallback& callback) { 18 return false; 19 } 20 ShouldOpenFileBasedOnExtension(const base::FilePath & path)21bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension( 22 const base::FilePath& path) { 23 return false; 24 } 25 ShouldCompleteDownload(DownloadItem * item,const base::Closure & callback)26bool DownloadManagerDelegate::ShouldCompleteDownload( 27 DownloadItem* item, 28 const base::Closure& callback) { 29 return true; 30 } 31 ShouldOpenDownload(DownloadItem * item,const DownloadOpenDelayedCallback & callback)32bool DownloadManagerDelegate::ShouldOpenDownload( 33 DownloadItem* item, const DownloadOpenDelayedCallback& callback) { 34 return true; 35 } 36 GenerateFileHash()37bool DownloadManagerDelegate::GenerateFileHash() { 38 return false; 39 } 40 41 std::string ApplicationClientIdForFileScanning() const42DownloadManagerDelegate::ApplicationClientIdForFileScanning() const { 43 return std::string(); 44 } 45 ~DownloadManagerDelegate()46DownloadManagerDelegate::~DownloadManagerDelegate() {} 47 48 } // namespace content 49