| 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 <string> |
| 8 |
| 7 #include "content/public/browser/download_item.h" | 9 #include "content/public/browser/download_item.h" |
| 8 | 10 |
| 9 namespace content { | 11 namespace content { |
| 10 | 12 |
| 11 void DownloadManagerDelegate::GetNextId(const DownloadIdCallback& callback) { | 13 void DownloadManagerDelegate::GetNextId(const DownloadIdCallback& callback) { |
| 12 callback.Run(content::DownloadItem::kInvalidId); | 14 callback.Run(content::DownloadItem::kInvalidId); |
| 13 } | 15 } |
| 14 | 16 |
| 15 bool DownloadManagerDelegate::DetermineDownloadTarget( | 17 bool DownloadManagerDelegate::DetermineDownloadTarget( |
| 16 DownloadItem* item, | 18 DownloadItem* item, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 38 return false; | 40 return false; |
| 39 } | 41 } |
| 40 | 42 |
| 41 std::string | 43 std::string |
| 42 DownloadManagerDelegate::ApplicationClientIdForFileScanning() const { | 44 DownloadManagerDelegate::ApplicationClientIdForFileScanning() const { |
| 43 return std::string(); | 45 return std::string(); |
| 44 } | 46 } |
| 45 | 47 |
| 46 DownloadManagerDelegate::~DownloadManagerDelegate() {} | 48 DownloadManagerDelegate::~DownloadManagerDelegate() {} |
| 47 | 49 |
| 50 bool DownloadManagerDelegate::ShouldBlockAllDownloads() const { |
| 51 return false; |
| 52 } |
| 53 |
| 48 } // namespace content | 54 } // namespace content |
| OLD | NEW |