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