| 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 26 matching lines...) Expand all Loading... |
| 37 net::NetLog* net_log); | 37 net::NetLog* net_log); |
| 38 | 38 |
| 39 // Implementation functions (not part of the DownloadManager interface). | 39 // Implementation functions (not part of the DownloadManager interface). |
| 40 | 40 |
| 41 // Creates a download item for the SavePackage system. | 41 // Creates a download item for the SavePackage system. |
| 42 // Must be called on the UI thread. Note that the DownloadManager | 42 // Must be called on the UI thread. Note that the DownloadManager |
| 43 // retains ownership. | 43 // retains ownership. |
| 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 bool is_otr, | |
| 48 const std::string& mime_type, | 47 const std::string& mime_type, |
| 49 content::DownloadItem::Observer* observer); | 48 content::DownloadItem::Observer* observer); |
| 50 | 49 |
| 51 // content::DownloadManager functions. | 50 // content::DownloadManager functions. |
| 52 virtual void SetDelegate(content::DownloadManagerDelegate* delegate) OVERRIDE; | 51 virtual void SetDelegate(content::DownloadManagerDelegate* delegate) OVERRIDE; |
| 53 virtual content::DownloadManagerDelegate* GetDelegate() const OVERRIDE; | 52 virtual content::DownloadManagerDelegate* GetDelegate() const OVERRIDE; |
| 54 virtual void Shutdown() OVERRIDE; | 53 virtual void Shutdown() OVERRIDE; |
| 55 virtual void GetTemporaryDownloads(const FilePath& dir_path, | 54 virtual void GetTemporaryDownloads(const FilePath& dir_path, |
| 56 DownloadVector* result) OVERRIDE; | 55 DownloadVector* result) OVERRIDE; |
| 57 virtual void GetAllDownloads(const FilePath& dir_path, | 56 virtual void GetAllDownloads(const FilePath& dir_path, |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 | 232 |
| 234 // Allows an embedder to control behavior. Guaranteed to outlive this object. | 233 // Allows an embedder to control behavior. Guaranteed to outlive this object. |
| 235 content::DownloadManagerDelegate* delegate_; | 234 content::DownloadManagerDelegate* delegate_; |
| 236 | 235 |
| 237 net::NetLog* net_log_; | 236 net::NetLog* net_log_; |
| 238 | 237 |
| 239 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 238 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
| 240 }; | 239 }; |
| 241 | 240 |
| 242 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 241 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
| OLD | NEW |