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

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

Issue 9108024: Cleanup parameter passing issues in content/browser/download (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove fix for CID 102890 Created 8 years, 11 months 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.h" 5 #include "content/browser/download/mock_download_manager.h"
6 6
7 #include "content/browser/download/download_create_info.h" 7 #include "content/browser/download/download_create_info.h"
8 #include "content/browser/download/download_item_impl.h" 8 #include "content/browser/download/download_item_impl.h"
9 9
10 using content::DownloadItem; 10 using content::DownloadItem;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 bool MockDownloadManager::Init(content::BrowserContext* browser_context) { 48 bool MockDownloadManager::Init(content::BrowserContext* browser_context) {
49 return true; 49 return true;
50 } 50 }
51 51
52 void MockDownloadManager::StartDownload(int32 id) { 52 void MockDownloadManager::StartDownload(int32 id) {
53 } 53 }
54 54
55 void MockDownloadManager::UpdateDownload(int32 download_id, 55 void MockDownloadManager::UpdateDownload(int32 download_id,
56 int64 bytes_so_far, 56 int64 bytes_so_far,
57 int64 bytes_per_sec, 57 int64 bytes_per_sec,
58 std::string hash_state) { 58 const std::string& hash_state) {
59 } 59 }
60 60
61 void MockDownloadManager::OnResponseCompleted(int32 download_id, int64 size, 61 void MockDownloadManager::OnResponseCompleted(int32 download_id, int64 size,
62 const std::string& hash) { 62 const std::string& hash) {
63 } 63 }
64 64
65 void MockDownloadManager::CancelDownload(int32 download_id) { 65 void MockDownloadManager::CancelDownload(int32 download_id) {
66 } 66 }
67 67
68 void MockDownloadManager::OnDownloadInterrupted(int32 download_id, 68 void MockDownloadManager::OnDownloadInterrupted(int32 download_id,
69 int64 size, 69 int64 size,
70 std::string hash_state, 70 const std::string& hash_state,
71 InterruptReason reason) { 71 InterruptReason reason) {
72 } 72 }
73 73
74 void MockDownloadManager::OnDownloadRenamedToFinalName( 74 void MockDownloadManager::OnDownloadRenamedToFinalName(
75 int download_id, 75 int download_id,
76 const FilePath& full_path, 76 const FilePath& full_path,
77 int uniquifier) { 77 int uniquifier) {
78 } 78 }
79 79
80 int MockDownloadManager::RemoveDownloadsBetween(const base::Time remove_begin, 80 int MockDownloadManager::RemoveDownloadsBetween(const base::Time remove_begin,
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 download->Rename(chosen_file); 189 download->Rename(chosen_file);
190 } 190 }
191 191
192 DownloadItem* MockDownloadManager::GetActiveDownload(int32 download_id) { 192 DownloadItem* MockDownloadManager::GetActiveDownload(int32 download_id) {
193 return GetDownloadItem(download_id); 193 return GetDownloadItem(download_id);
194 } 194 }
195 195
196 void MockDownloadManager::SetFileManager(DownloadFileManager* file_manager) { 196 void MockDownloadManager::SetFileManager(DownloadFileManager* file_manager) {
197 file_manager_ = file_manager; 197 file_manager_ = file_manager;
198 } 198 }
OLDNEW
« no previous file with comments | « content/browser/download/mock_download_manager.h ('k') | content/public/browser/download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698