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

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

Issue 8404049: Added member data to classes to support download resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated comment. Created 9 years 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 MockDownloadManager::MockDownloadManager( 10 MockDownloadManager::MockDownloadManager(
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 DownloadVector* result) { 43 DownloadVector* result) {
44 } 44 }
45 45
46 bool MockDownloadManager::Init(content::BrowserContext* browser_context) { 46 bool MockDownloadManager::Init(content::BrowserContext* browser_context) {
47 return true; 47 return true;
48 } 48 }
49 49
50 void MockDownloadManager::StartDownload(int32 id) { 50 void MockDownloadManager::StartDownload(int32 id) {
51 } 51 }
52 52
53 void MockDownloadManager::UpdateDownload(int32 download_id, int64 bytes_so_far, 53 void MockDownloadManager::UpdateDownload(int32 download_id,
54 int64 bytes_per_sec) { 54 int64 bytes_so_far,
55 int64 bytes_per_sec,
56 std::string hash_state) {
55 } 57 }
56 58
57 void MockDownloadManager::OnResponseCompleted(int32 download_id, int64 size, 59 void MockDownloadManager::OnResponseCompleted(int32 download_id, int64 size,
58 const std::string& hash) { 60 const std::string& hash) {
59 } 61 }
60 62
61 void MockDownloadManager::CancelDownload(int32 download_id) { 63 void MockDownloadManager::CancelDownload(int32 download_id) {
62 } 64 }
63 65
64 void MockDownloadManager::OnDownloadInterrupted(int32 download_id, int64 size, 66 void MockDownloadManager::OnDownloadInterrupted(int32 download_id,
67 int64 size,
68 std::string hash_state,
65 InterruptReason reason) { 69 InterruptReason reason) {
66 } 70 }
67 71
68 void MockDownloadManager::OnDownloadRenamedToFinalName( 72 void MockDownloadManager::OnDownloadRenamedToFinalName(
69 int download_id, 73 int download_id,
70 const FilePath& full_path, 74 const FilePath& full_path,
71 int uniquifier) { 75 int uniquifier) {
72 } 76 }
73 77
74 int MockDownloadManager::RemoveDownloadsBetween(const base::Time remove_begin, 78 int MockDownloadManager::RemoveDownloadsBetween(const base::Time remove_begin,
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 download->Rename(chosen_file); 187 download->Rename(chosen_file);
184 } 188 }
185 189
186 DownloadItem* MockDownloadManager::GetActiveDownload(int32 download_id) { 190 DownloadItem* MockDownloadManager::GetActiveDownload(int32 download_id) {
187 return GetDownloadItem(download_id); 191 return GetDownloadItem(download_id);
188 } 192 }
189 193
190 void MockDownloadManager::SetFileManager(DownloadFileManager* file_manager) { 194 void MockDownloadManager::SetFileManager(DownloadFileManager* file_manager) {
191 file_manager_ = file_manager; 195 file_manager_ = file_manager;
192 } 196 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698