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

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: Merged with trunk 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
« no previous file with comments | « content/browser/download/mock_download_manager.h ('k') | content/browser/download/save_file.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 DownloadVector* result) { 45 DownloadVector* result) {
46 } 46 }
47 47
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, int64 bytes_so_far, 55 void MockDownloadManager::UpdateDownload(int32 download_id,
56 int64 bytes_per_sec) { 56 int64 bytes_so_far,
57 int64 bytes_per_sec,
58 std::string hash_state) {
57 } 59 }
58 60
59 void MockDownloadManager::OnResponseCompleted(int32 download_id, int64 size, 61 void MockDownloadManager::OnResponseCompleted(int32 download_id, int64 size,
60 const std::string& hash) { 62 const std::string& hash) {
61 } 63 }
62 64
63 void MockDownloadManager::CancelDownload(int32 download_id) { 65 void MockDownloadManager::CancelDownload(int32 download_id) {
64 } 66 }
65 67
66 void MockDownloadManager::OnDownloadInterrupted(int32 download_id, int64 size, 68 void MockDownloadManager::OnDownloadInterrupted(int32 download_id,
69 int64 size,
70 std::string hash_state,
67 InterruptReason reason) { 71 InterruptReason reason) {
68 } 72 }
69 73
70 void MockDownloadManager::OnDownloadRenamedToFinalName( 74 void MockDownloadManager::OnDownloadRenamedToFinalName(
71 int download_id, 75 int download_id,
72 const FilePath& full_path, 76 const FilePath& full_path,
73 int uniquifier) { 77 int uniquifier) {
74 } 78 }
75 79
76 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
185 download->Rename(chosen_file); 189 download->Rename(chosen_file);
186 } 190 }
187 191
188 DownloadItem* MockDownloadManager::GetActiveDownload(int32 download_id) { 192 DownloadItem* MockDownloadManager::GetActiveDownload(int32 download_id) {
189 return GetDownloadItem(download_id); 193 return GetDownloadItem(download_id);
190 } 194 }
191 195
192 void MockDownloadManager::SetFileManager(DownloadFileManager* file_manager) { 196 void MockDownloadManager::SetFileManager(DownloadFileManager* file_manager) {
193 file_manager_ = file_manager; 197 file_manager_ = file_manager;
194 } 198 }
OLDNEW
« no previous file with comments | « content/browser/download/mock_download_manager.h ('k') | content/browser/download/save_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698