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

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

Issue 10914158: Revert 155351 - Make DownloadManager::GetAllDownloads return all downloads regardless of state, per… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DOWNLOAD_MANAGER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 const GURL& page_url, 46 const GURL& page_url,
47 const std::string& mime_type, 47 const std::string& mime_type,
48 content::DownloadItem::Observer* observer); 48 content::DownloadItem::Observer* observer);
49 49
50 // content::DownloadManager functions. 50 // content::DownloadManager functions.
51 virtual void SetDelegate(content::DownloadManagerDelegate* delegate) OVERRIDE; 51 virtual void SetDelegate(content::DownloadManagerDelegate* delegate) OVERRIDE;
52 virtual content::DownloadManagerDelegate* GetDelegate() const OVERRIDE; 52 virtual content::DownloadManagerDelegate* GetDelegate() const OVERRIDE;
53 virtual void Shutdown() OVERRIDE; 53 virtual void Shutdown() OVERRIDE;
54 virtual void GetTemporaryDownloads(const FilePath& dir_path, 54 virtual void GetTemporaryDownloads(const FilePath& dir_path,
55 DownloadVector* result) OVERRIDE; 55 DownloadVector* result) OVERRIDE;
56 virtual void GetAllDownloads(DownloadVector* result) OVERRIDE; 56 virtual void GetAllDownloads(const FilePath& dir_path,
57 DownloadVector* result) OVERRIDE;
57 virtual void SearchDownloads(const string16& query, 58 virtual void SearchDownloads(const string16& query,
58 DownloadVector* result) OVERRIDE; 59 DownloadVector* result) OVERRIDE;
59 virtual bool Init(content::BrowserContext* browser_context) OVERRIDE; 60 virtual bool Init(content::BrowserContext* browser_context) OVERRIDE;
60 virtual content::DownloadId StartDownload( 61 virtual content::DownloadId StartDownload(
61 scoped_ptr<DownloadCreateInfo> info, 62 scoped_ptr<DownloadCreateInfo> info,
62 scoped_ptr<content::ByteStreamReader> stream) OVERRIDE; 63 scoped_ptr<content::ByteStreamReader> stream) OVERRIDE;
63 virtual void UpdateDownload(int32 download_id, 64 virtual void UpdateDownload(int32 download_id,
64 int64 bytes_so_far, 65 int64 bytes_so_far,
65 int64 bytes_per_sec, 66 int64 bytes_per_sec,
66 const std::string& hash_state) OVERRIDE; 67 const std::string& hash_state) OVERRIDE;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 232
232 // Allows an embedder to control behavior. Guaranteed to outlive this object. 233 // Allows an embedder to control behavior. Guaranteed to outlive this object.
233 content::DownloadManagerDelegate* delegate_; 234 content::DownloadManagerDelegate* delegate_;
234 235
235 net::NetLog* net_log_; 236 net::NetLog* net_log_;
236 237
237 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); 238 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl);
238 }; 239 };
239 240
240 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 241 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_browsertest.cc ('k') | content/browser/download/download_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698