| 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 "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "content/browser/download/download_item_impl_delegate.h" | 6 #include "content/browser/download/download_item_impl_delegate.h" |
| 7 | 7 |
| 8 class DownloadItemImpl; | 8 class DownloadItemImpl; |
| 9 | 9 |
| 10 // Infrastructure in DownloadItemImplDelegate to assert invariant that | 10 // Infrastructure in DownloadItemImplDelegate to assert invariant that |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 return false; | 30 return false; |
| 31 } | 31 } |
| 32 | 32 |
| 33 bool DownloadItemImplDelegate::ShouldOpenDownload(DownloadItemImpl* download) { | 33 bool DownloadItemImplDelegate::ShouldOpenDownload(DownloadItemImpl* download) { |
| 34 return false; | 34 return false; |
| 35 } | 35 } |
| 36 | 36 |
| 37 void DownloadItemImplDelegate::CheckForFileRemoval( | 37 void DownloadItemImplDelegate::CheckForFileRemoval( |
| 38 DownloadItemImpl* download_item) {} | 38 DownloadItemImpl* download_item) {} |
| 39 | 39 |
| 40 void DownloadItemImplDelegate::MaybeCompleteDownload( | 40 void DownloadItemImplDelegate::MaybeCompleteDownload(int32 download_id) {} |
| 41 DownloadItemImpl* download) {} | 41 |
| 42 void DownloadItemImplDelegate::RestartInterruptedDownload( |
| 43 DownloadItemImpl* download, |
| 44 const content::DownloadUrlParameters::OnStartedCallback& callback) {} |
| 42 | 45 |
| 43 content::BrowserContext* DownloadItemImplDelegate::GetBrowserContext() const { | 46 content::BrowserContext* DownloadItemImplDelegate::GetBrowserContext() const { |
| 44 return NULL; | 47 return NULL; |
| 45 } | 48 } |
| 46 | 49 |
| 47 DownloadFileManager* DownloadItemImplDelegate::GetDownloadFileManager() { | 50 DownloadFileManager* DownloadItemImplDelegate::GetDownloadFileManager() { |
| 48 return NULL; | 51 return NULL; |
| 49 } | 52 } |
| 50 | 53 |
| 51 void DownloadItemImplDelegate::DownloadStopped(DownloadItemImpl* download) {} | 54 void DownloadItemImplDelegate::DownloadStopped(DownloadItemImpl* download) {} |
| 52 | 55 |
| 53 void DownloadItemImplDelegate::DownloadCompleted(DownloadItemImpl* download) {} | 56 void DownloadItemImplDelegate::DownloadCompleted(DownloadItemImpl* download) {} |
| 54 | 57 |
| 55 void DownloadItemImplDelegate::DownloadOpened(DownloadItemImpl* download) {} | 58 void DownloadItemImplDelegate::DownloadOpened(DownloadItemImpl* download) {} |
| 56 | 59 |
| 57 void DownloadItemImplDelegate::DownloadRemoved(DownloadItemImpl* download) {} | 60 void DownloadItemImplDelegate::DownloadRemoved(DownloadItemImpl* download) {} |
| 58 | 61 |
| 59 void DownloadItemImplDelegate::DownloadRenamedToIntermediateName( | 62 void DownloadItemImplDelegate::DownloadRenamedToIntermediateName( |
| 60 DownloadItemImpl* download) {} | 63 DownloadItemImpl* download) {} |
| 61 | 64 |
| 62 void DownloadItemImplDelegate::DownloadRenamedToFinalName( | 65 void DownloadItemImplDelegate::DownloadRenamedToFinalName( |
| 63 DownloadItemImpl* download) {} | 66 DownloadItemImpl* download) {} |
| 64 | 67 |
| 65 void DownloadItemImplDelegate::AssertStateConsistent( | 68 void DownloadItemImplDelegate::AssertStateConsistent( |
| 66 DownloadItemImpl* download) const {} | 69 DownloadItemImpl* download) const {} |
| OLD | NEW |