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

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

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 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/browser/download/download_item_impl.h" 9 #include "content/browser/download/download_item_impl.h"
10 #include "content/browser/download/download_id.h" 10 #include "content/browser/download/download_id.h"
(...skipping 15 matching lines...) Expand all
26 DownloadVector* result) OVERRIDE; 26 DownloadVector* result) OVERRIDE;
27 virtual void GetAllDownloads(const FilePath& dir_path, 27 virtual void GetAllDownloads(const FilePath& dir_path,
28 DownloadVector* result) OVERRIDE; 28 DownloadVector* result) OVERRIDE;
29 virtual void SearchDownloads(const string16& query, 29 virtual void SearchDownloads(const string16& query,
30 DownloadVector* result) OVERRIDE; 30 DownloadVector* result) OVERRIDE;
31 virtual bool Init(content::BrowserContext* browser_context) OVERRIDE; 31 virtual bool Init(content::BrowserContext* browser_context) OVERRIDE;
32 virtual void StartDownload(int32 id) OVERRIDE; 32 virtual void StartDownload(int32 id) OVERRIDE;
33 virtual void UpdateDownload(int32 download_id, 33 virtual void UpdateDownload(int32 download_id,
34 int64 bytes_so_far, 34 int64 bytes_so_far,
35 int64 bytes_per_sec, 35 int64 bytes_per_sec,
36 std::string hash_state) OVERRIDE; 36 const std::string& hash_state) OVERRIDE;
37 virtual void OnResponseCompleted(int32 download_id, int64 size, 37 virtual void OnResponseCompleted(int32 download_id, int64 size,
38 const std::string& hash) OVERRIDE; 38 const std::string& hash) OVERRIDE;
39 virtual void CancelDownload(int32 download_id) OVERRIDE; 39 virtual void CancelDownload(int32 download_id) OVERRIDE;
40 virtual void OnDownloadInterrupted(int32 download_id, 40 virtual void OnDownloadInterrupted(int32 download_id,
41 int64 size, 41 int64 size,
42 std::string hash_state, 42 const std::string& hash_state,
43 InterruptReason reason) OVERRIDE; 43 InterruptReason reason) OVERRIDE;
44 virtual void OnDownloadRenamedToFinalName(int download_id, 44 virtual void OnDownloadRenamedToFinalName(int download_id,
45 const FilePath& full_path, 45 const FilePath& full_path,
46 int uniquifier) OVERRIDE; 46 int uniquifier) OVERRIDE;
47 virtual int RemoveDownloadsBetween(const base::Time remove_begin, 47 virtual int RemoveDownloadsBetween(const base::Time remove_begin,
48 const base::Time remove_end) OVERRIDE; 48 const base::Time remove_end) OVERRIDE;
49 virtual int RemoveDownloads(const base::Time remove_begin) OVERRIDE; 49 virtual int RemoveDownloads(const base::Time remove_begin) OVERRIDE;
50 virtual int RemoveAllDownloads() OVERRIDE; 50 virtual int RemoveAllDownloads() OVERRIDE;
51 virtual void DownloadUrl(const GURL& url, 51 virtual void DownloadUrl(const GURL& url,
52 const GURL& referrer, 52 const GURL& referrer,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 private: 94 private:
95 content::DownloadManagerDelegate* delegate_; 95 content::DownloadManagerDelegate* delegate_;
96 DownloadIdFactory* id_factory_; 96 DownloadIdFactory* id_factory_;
97 DownloadStatusUpdater* updater_; 97 DownloadStatusUpdater* updater_;
98 DownloadFileManager* file_manager_; 98 DownloadFileManager* file_manager_;
99 std::map<int32, content::DownloadItem*> item_map_; 99 std::map<int32, content::DownloadItem*> item_map_;
100 std::map<int32, content::DownloadItem*> inactive_item_map_; 100 std::map<int32, content::DownloadItem*> inactive_item_map_;
101 }; 101 };
102 102
103 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 103 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_manager_impl.cc ('k') | content/browser/download/mock_download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698