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 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 WebContents* DownloadManagerDelegate:: | 27 WebContents* DownloadManagerDelegate:: |
28 GetAlternativeWebContentsToNotifyForDownload() { | 28 GetAlternativeWebContentsToNotifyForDownload() { |
29 return NULL; | 29 return NULL; |
30 } | 30 } |
31 | 31 |
32 bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension( | 32 bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension( |
33 const FilePath& path) { | 33 const FilePath& path) { |
34 return false; | 34 return false; |
35 } | 35 } |
36 | 36 |
37 bool DownloadManagerDelegate::ShouldCompleteDownload(DownloadItem* item) { | 37 bool DownloadManagerDelegate::ShouldCompleteDownload( |
| 38 DownloadItem* item, |
| 39 const base::Closure& complete_callback) { |
38 return true; | 40 return true; |
39 } | 41 } |
40 | 42 |
41 bool DownloadManagerDelegate::ShouldOpenDownload(DownloadItem* item) { | 43 bool DownloadManagerDelegate::ShouldOpenDownload(DownloadItem* item) { |
42 return true; | 44 return true; |
43 } | 45 } |
44 | 46 |
45 bool DownloadManagerDelegate::GenerateFileHash() { | 47 bool DownloadManagerDelegate::GenerateFileHash() { |
46 return false; | 48 return false; |
47 } | 49 } |
48 | 50 |
49 } // namespace content | 51 } // namespace content |
OLD | NEW |