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