OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/public/browser/download_manager_delegate.h" | 5 #include "content/public/browser/download_manager_delegate.h" |
6 | 6 |
7 #include "content/public/browser/download_id.h" | 7 #include "content/public/browser/download_id.h" |
8 #include "content/public/browser/download_item.h" | 8 #include "content/public/browser/download_item.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 DownloadId DownloadManagerDelegate::GetNextId() { | 12 DownloadId DownloadManagerDelegate::GetNextId() { |
13 return DownloadId::Invalid(); | 13 return DownloadId::Invalid(); |
14 } | 14 } |
15 | 15 |
16 bool DownloadManagerDelegate::DetermineDownloadTarget( | 16 bool DownloadManagerDelegate::DetermineDownloadTarget( |
17 DownloadItem* item, | 17 DownloadItem* item, |
18 const DownloadTargetCallback& callback) { | 18 const DownloadTargetCallback& callback) { |
19 return false; | 19 return false; |
20 } | 20 } |
21 | 21 |
22 WebContents* DownloadManagerDelegate:: | |
23 GetAlternativeWebContentsToNotifyForDownload() { | |
24 return NULL; | |
25 } | |
26 | |
27 bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension( | 22 bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension( |
28 const base::FilePath& path) { | 23 const base::FilePath& path) { |
29 return false; | 24 return false; |
30 } | 25 } |
31 | 26 |
32 bool DownloadManagerDelegate::ShouldCompleteDownload( | 27 bool DownloadManagerDelegate::ShouldCompleteDownload( |
33 DownloadItem* item, | 28 DownloadItem* item, |
34 const base::Closure& callback) { | 29 const base::Closure& callback) { |
35 return true; | 30 return true; |
36 } | 31 } |
37 | 32 |
38 bool DownloadManagerDelegate::ShouldOpenDownload( | 33 bool DownloadManagerDelegate::ShouldOpenDownload( |
39 DownloadItem* item, const DownloadOpenDelayedCallback& callback) { | 34 DownloadItem* item, const DownloadOpenDelayedCallback& callback) { |
40 return true; | 35 return true; |
41 } | 36 } |
42 | 37 |
43 bool DownloadManagerDelegate::GenerateFileHash() { | 38 bool DownloadManagerDelegate::GenerateFileHash() { |
44 return false; | 39 return false; |
45 } | 40 } |
46 | 41 |
47 DownloadManagerDelegate::~DownloadManagerDelegate() {} | 42 DownloadManagerDelegate::~DownloadManagerDelegate() {} |
48 | 43 |
49 } // namespace content | 44 } // namespace content |
OLD | NEW |