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 11 void DownloadManagerDelegate::GetNextId(const DownloadIdCallback& callback) { 12 callback.Run(content::DownloadItem::kInvalidId); 13 } 14 15 bool DownloadManagerDelegate::DetermineDownloadTarget( 16 DownloadItem* item, 17 const DownloadTargetCallback& callback) { 18 return false; 19 } 20 21 bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension( 22 const base::FilePath& path) { 23 return false; 24 } 25 26 bool DownloadManagerDelegate::ShouldCompleteDownload( 27 DownloadItem* item, 28 const base::Closure& callback) { 29 return true; 30 } 31 32 bool DownloadManagerDelegate::ShouldOpenDownload( 33 DownloadItem* item, const DownloadOpenDelayedCallback& callback) { 34 return true; 35 } 36 37 bool DownloadManagerDelegate::GenerateFileHash() { 38 return false; 39 } 40 41 std::string 42 DownloadManagerDelegate::ApplicationClientIdForFileScanning() const { 43 return std::string(); 44 } 45 46 DownloadManagerDelegate::~DownloadManagerDelegate() {} 47 48 } // namespace content 49