download_manager_delegate.cc revision 2a99a7e74a7f215066514fe81d2bfa6639d9eddd
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_id.h" 8#include "content/public/browser/download_item.h" 9 10namespace content { 11 12DownloadId DownloadManagerDelegate::GetNextId() { 13 return DownloadId::Invalid(); 14} 15 16bool DownloadManagerDelegate::DetermineDownloadTarget( 17 DownloadItem* item, 18 const DownloadTargetCallback& callback) { 19 return false; 20} 21 22bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension( 23 const base::FilePath& path) { 24 return false; 25} 26 27bool DownloadManagerDelegate::ShouldCompleteDownload( 28 DownloadItem* item, 29 const base::Closure& callback) { 30 return true; 31} 32 33bool DownloadManagerDelegate::ShouldOpenDownload( 34 DownloadItem* item, const DownloadOpenDelayedCallback& callback) { 35 return true; 36} 37 38bool DownloadManagerDelegate::GenerateFileHash() { 39 return false; 40} 41 42DownloadManagerDelegate::~DownloadManagerDelegate() {} 43 44} // namespace content 45