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

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

Issue 10913015: Reland DownloadManager::GetAllDownloads actually does now (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(const FilePath& dir_path, 56 virtual void GetAllDownloads(DownloadVector* result) OVERRIDE;
57 DownloadVector* result) OVERRIDE;
58 virtual void SearchDownloads(const string16& query, 57 virtual void SearchDownloads(const string16& query,
59 DownloadVector* result) OVERRIDE; 58 DownloadVector* result) OVERRIDE;
60 virtual bool Init(content::BrowserContext* browser_context) OVERRIDE; 59 virtual bool Init(content::BrowserContext* browser_context) OVERRIDE;
61 virtual content::DownloadId StartDownload( 60 virtual content::DownloadId StartDownload(
62 scoped_ptr<DownloadCreateInfo> info, 61 scoped_ptr<DownloadCreateInfo> info,
63 scoped_ptr<content::ByteStreamReader> stream) OVERRIDE; 62 scoped_ptr<content::ByteStreamReader> stream) OVERRIDE;
64 virtual void UpdateDownload(int32 download_id, 63 virtual void UpdateDownload(int32 download_id,
65 int64 bytes_so_far, 64 int64 bytes_so_far,
66 int64 bytes_per_sec, 65 int64 bytes_per_sec,
67 const std::string& hash_state) OVERRIDE; 66 const std::string& hash_state) OVERRIDE;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 231
233 // Allows an embedder to control behavior. Guaranteed to outlive this object. 232 // Allows an embedder to control behavior. Guaranteed to outlive this object.
234 content::DownloadManagerDelegate* delegate_; 233 content::DownloadManagerDelegate* delegate_;
235 234
236 net::NetLog* net_log_; 235 net::NetLog* net_log_;
237 236
238 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); 237 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl);
239 }; 238 };
240 239
241 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 240 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698