| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |