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