| 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 | 5 |
| 6 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 6 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
| 7 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 7 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
| 8 #pragma once | 8 #pragma once |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 virtual int InProgressCount() const OVERRIDE; | 74 virtual int InProgressCount() const OVERRIDE; |
| 75 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; | 75 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; |
| 76 virtual FilePath LastDownloadPath() OVERRIDE; | 76 virtual FilePath LastDownloadPath() OVERRIDE; |
| 77 virtual net::BoundNetLog CreateDownloadItem( | 77 virtual net::BoundNetLog CreateDownloadItem( |
| 78 DownloadCreateInfo* info, | 78 DownloadCreateInfo* info, |
| 79 const DownloadRequestHandle& request_handle) OVERRIDE; | 79 const DownloadRequestHandle& request_handle) OVERRIDE; |
| 80 virtual content::DownloadItem* CreateSavePackageDownloadItem( | 80 virtual content::DownloadItem* CreateSavePackageDownloadItem( |
| 81 const FilePath& main_file_path, | 81 const FilePath& main_file_path, |
| 82 const GURL& page_url, | 82 const GURL& page_url, |
| 83 bool is_otr, | 83 bool is_otr, |
| 84 const std::string& mime_type, |
| 84 content::DownloadItem::Observer* observer) OVERRIDE; | 85 content::DownloadItem::Observer* observer) OVERRIDE; |
| 85 virtual void ClearLastDownloadPath() OVERRIDE; | 86 virtual void ClearLastDownloadPath() OVERRIDE; |
| 86 virtual void FileSelected(const FilePath& path, int32 download_id) OVERRIDE; | 87 virtual void FileSelected(const FilePath& path, int32 download_id) OVERRIDE; |
| 87 virtual void FileSelectionCanceled(int32 download_id) OVERRIDE; | 88 virtual void FileSelectionCanceled(int32 download_id) OVERRIDE; |
| 88 virtual void RestartDownload(int32 download_id) OVERRIDE; | 89 virtual void RestartDownload(int32 download_id) OVERRIDE; |
| 89 virtual void CheckForHistoryFilesRemoval() OVERRIDE; | 90 virtual void CheckForHistoryFilesRemoval() OVERRIDE; |
| 90 virtual content::DownloadItem* GetDownloadItem(int id) OVERRIDE; | 91 virtual content::DownloadItem* GetDownloadItem(int id) OVERRIDE; |
| 91 virtual void SavePageDownloadFinished( | 92 virtual void SavePageDownloadFinished( |
| 92 content::DownloadItem* download) OVERRIDE; | 93 content::DownloadItem* download) OVERRIDE; |
| 93 virtual content::DownloadItem* GetActiveDownloadItem(int id) OVERRIDE; | 94 virtual content::DownloadItem* GetActiveDownloadItem(int id) OVERRIDE; |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 | 246 |
| 246 // Allows an embedder to control behavior. Guaranteed to outlive this object. | 247 // Allows an embedder to control behavior. Guaranteed to outlive this object. |
| 247 content::DownloadManagerDelegate* delegate_; | 248 content::DownloadManagerDelegate* delegate_; |
| 248 | 249 |
| 249 net::NetLog* net_log_; | 250 net::NetLog* net_log_; |
| 250 | 251 |
| 251 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 252 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
| 252 }; | 253 }; |
| 253 | 254 |
| 254 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 255 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
| OLD | NEW |