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