Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / public / browser / download_manager_delegate.cc
blob9351ce227112181992a2f2d9e20d72921e5e4bba
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"
9 namespace content {
11 void DownloadManagerDelegate::GetNextId(const DownloadIdCallback& callback) {
12 callback.Run(content::DownloadItem::kInvalidId);
15 bool DownloadManagerDelegate::DetermineDownloadTarget(
16 DownloadItem* item,
17 const DownloadTargetCallback& callback) {
18 return false;
21 bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension(
22 const base::FilePath& path) {
23 return false;
26 bool DownloadManagerDelegate::ShouldCompleteDownload(
27 DownloadItem* item,
28 const base::Closure& callback) {
29 return true;
32 bool DownloadManagerDelegate::ShouldOpenDownload(
33 DownloadItem* item, const DownloadOpenDelayedCallback& callback) {
34 return true;
37 bool DownloadManagerDelegate::GenerateFileHash() {
38 return false;
41 std::string
42 DownloadManagerDelegate::ApplicationClientIdForFileScanning() const {
43 return std::string();
46 DownloadManagerDelegate::~DownloadManagerDelegate() {}
48 } // namespace content