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.
5 #include "content/public/browser/download_manager_delegate.h"
7 #include "content/public/browser/download_item.h"
11 void DownloadManagerDelegate::GetNextId(const DownloadIdCallback
& callback
) {
12 callback
.Run(content::DownloadItem::kInvalidId
);
15 bool DownloadManagerDelegate::DetermineDownloadTarget(
17 const DownloadTargetCallback
& callback
) {
21 bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension(
22 const base::FilePath
& path
) {
26 bool DownloadManagerDelegate::ShouldCompleteDownload(
28 const base::Closure
& callback
) {
32 bool DownloadManagerDelegate::ShouldOpenDownload(
33 DownloadItem
* item
, const DownloadOpenDelayedCallback
& callback
) {
37 bool DownloadManagerDelegate::GenerateFileHash() {
42 DownloadManagerDelegate::ApplicationClientIdForFileScanning() const {
46 DownloadManagerDelegate::~DownloadManagerDelegate() {}
48 } // namespace content