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