| 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/browser/download/mock_download_manager_delegate.h" | 5 #include "content/browser/download/mock_download_manager_delegate.h" |
| 6 #include "content/browser/download/download_item.h" | 6 #include "content/browser/download/download_item.h" |
| 7 #include "content/browser/download/download_manager.h" | 7 #include "content/browser/download/download_manager.h" |
| 8 | 8 |
| 9 MockDownloadManagerDelegate::MockDownloadManagerDelegate() { | 9 MockDownloadManagerDelegate::MockDownloadManagerDelegate() { |
| 10 } | 10 } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool MockDownloadManagerDelegate::GenerateFileHash() { | 56 bool MockDownloadManagerDelegate::GenerateFileHash() { |
| 57 return false; | 57 return false; |
| 58 } | 58 } |
| 59 | 59 |
| 60 void MockDownloadManagerDelegate::OnResponseCompleted(DownloadItem* item) { | 60 void MockDownloadManagerDelegate::OnResponseCompleted(DownloadItem* item) { |
| 61 } | 61 } |
| 62 | 62 |
| 63 void MockDownloadManagerDelegate::AddItemToPersistentStore(DownloadItem* item) { | 63 void MockDownloadManagerDelegate::AddItemToPersistentStore(DownloadItem* item) { |
| 64 download_manager_->OnItemAddedToPersistentStore(item->id(), item->id()); | 64 download_manager_->OnItemAddedToPersistentStore(item->GetId(), item->GetId()); |
| 65 } | 65 } |
| 66 | 66 |
| 67 void MockDownloadManagerDelegate::UpdateItemInPersistentStore( | 67 void MockDownloadManagerDelegate::UpdateItemInPersistentStore( |
| 68 DownloadItem* item) { | 68 DownloadItem* item) { |
| 69 } | 69 } |
| 70 | 70 |
| 71 void MockDownloadManagerDelegate::UpdatePathForItemInPersistentStore( | 71 void MockDownloadManagerDelegate::UpdatePathForItemInPersistentStore( |
| 72 DownloadItem* item, | 72 DownloadItem* item, |
| 73 const FilePath& new_path) { | 73 const FilePath& new_path) { |
| 74 } | 74 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 89 } | 89 } |
| 90 | 90 |
| 91 void MockDownloadManagerDelegate::ChooseSavePath( | 91 void MockDownloadManagerDelegate::ChooseSavePath( |
| 92 const base::WeakPtr<SavePackage>& save_package, | 92 const base::WeakPtr<SavePackage>& save_package, |
| 93 const FilePath& suggested_path, | 93 const FilePath& suggested_path, |
| 94 bool can_save_as_complete) { | 94 bool can_save_as_complete) { |
| 95 } | 95 } |
| 96 | 96 |
| 97 void MockDownloadManagerDelegate::DownloadProgressUpdated() { | 97 void MockDownloadManagerDelegate::DownloadProgressUpdated() { |
| 98 } | 98 } |
| OLD | NEW |