Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Side by Side Diff: content/browser/download/mock_download_manager_delegate.cc

Issue 8503018: Split DownloadItem into an ABC, an Impl, and a Mock. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merge Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « content/browser/download/mock_download_manager.cc ('k') | content/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698