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:: | 22 WebContents* DownloadManagerDelegate:: |
23 GetAlternativeWebContentsToNotifyForDownload() { | 23 GetAlternativeWebContentsToNotifyForDownload() { |
24 return NULL; | 24 return NULL; |
25 } | 25 } |
26 | 26 |
27 bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension( | 27 bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension( |
28 const FilePath& path) { | 28 const base::FilePath& path) { |
29 return false; | 29 return false; |
30 } | 30 } |
31 | 31 |
32 bool DownloadManagerDelegate::ShouldCompleteDownload( | 32 bool DownloadManagerDelegate::ShouldCompleteDownload( |
33 DownloadItem* item, | 33 DownloadItem* item, |
34 const base::Closure& callback) { | 34 const base::Closure& callback) { |
35 return true; | 35 return true; |
36 } | 36 } |
37 | 37 |
38 bool DownloadManagerDelegate::ShouldOpenDownload( | 38 bool DownloadManagerDelegate::ShouldOpenDownload( |
39 DownloadItem* item, const DownloadOpenDelayedCallback& callback) { | 39 DownloadItem* item, const DownloadOpenDelayedCallback& callback) { |
40 return true; | 40 return true; |
41 } | 41 } |
42 | 42 |
43 bool DownloadManagerDelegate::GenerateFileHash() { | 43 bool DownloadManagerDelegate::GenerateFileHash() { |
44 return false; | 44 return false; |
45 } | 45 } |
46 | 46 |
47 DownloadManagerDelegate::~DownloadManagerDelegate() {} | 47 DownloadManagerDelegate::~DownloadManagerDelegate() {} |
48 | 48 |
49 } // namespace content | 49 } // namespace content |
OLD | NEW |