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 |
11 DownloadManagerDelegate::~DownloadManagerDelegate() { | |
12 } | |
13 | |
14 DownloadId DownloadManagerDelegate::GetNextId() { | 11 DownloadId DownloadManagerDelegate::GetNextId() { |
15 return DownloadId::Invalid(); | 12 return DownloadId::Invalid(); |
16 } | 13 } |
17 | 14 |
18 bool DownloadManagerDelegate::ShouldStartDownload(int32 download_id) { | 15 bool DownloadManagerDelegate::ShouldStartDownload(int32 download_id) { |
19 return true; | 16 return true; |
20 } | 17 } |
21 | 18 |
22 FilePath DownloadManagerDelegate::GetIntermediatePath( | 19 FilePath DownloadManagerDelegate::GetIntermediatePath( |
23 const FilePath& suggested_path) { | 20 const FilePath& suggested_path) { |
(...skipping 17 matching lines...) Expand all Loading... |
41 } | 38 } |
42 | 39 |
43 bool DownloadManagerDelegate::ShouldOpenDownload(DownloadItem* item) { | 40 bool DownloadManagerDelegate::ShouldOpenDownload(DownloadItem* item) { |
44 return true; | 41 return true; |
45 } | 42 } |
46 | 43 |
47 bool DownloadManagerDelegate::GenerateFileHash() { | 44 bool DownloadManagerDelegate::GenerateFileHash() { |
48 return false; | 45 return false; |
49 } | 46 } |
50 | 47 |
| 48 DownloadManagerDelegate::~DownloadManagerDelegate() {} |
| 49 |
51 } // namespace content | 50 } // namespace content |
OLD | NEW |