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 FilePath LastDownloadPath() OVERRIDE; | 74 virtual FilePath LastDownloadPath() OVERRIDE; |
75 virtual net::BoundNetLog CreateDownloadItem( | 75 virtual net::BoundNetLog CreateDownloadItem( |
76 DownloadCreateInfo* info, | 76 DownloadCreateInfo* info, |
77 const DownloadRequestHandle& request_handle) OVERRIDE; | 77 const DownloadRequestHandle& request_handle) OVERRIDE; |
78 virtual content::DownloadItem* CreateSavePackageDownloadItem( | 78 virtual content::DownloadItem* CreateSavePackageDownloadItem( |
79 const FilePath& main_file_path, | 79 const FilePath& main_file_path, |
80 const GURL& page_url, | 80 const GURL& page_url, |
81 bool is_otr, | 81 bool is_otr, |
82 content::DownloadItem::Observer* observer) OVERRIDE; | 82 content::DownloadItem::Observer* observer) OVERRIDE; |
83 virtual void ClearLastDownloadPath() OVERRIDE; | 83 virtual void ClearLastDownloadPath() OVERRIDE; |
84 virtual void FileSelected(const FilePath& path, void* params) OVERRIDE; | 84 virtual void FileSelected(const FilePath& path, int32 download_id) OVERRIDE; |
85 virtual void FileSelectionCanceled(void* params) OVERRIDE; | 85 virtual void FileSelectionCanceled(int32 download_id) OVERRIDE; |
86 virtual void RestartDownload(int32 download_id) OVERRIDE; | 86 virtual void RestartDownload(int32 download_id) OVERRIDE; |
87 virtual void CheckForHistoryFilesRemoval() OVERRIDE; | 87 virtual void CheckForHistoryFilesRemoval() OVERRIDE; |
88 virtual content::DownloadItem* GetDownloadItem(int id) OVERRIDE; | 88 virtual content::DownloadItem* GetDownloadItem(int id) OVERRIDE; |
89 virtual void SavePageDownloadFinished( | 89 virtual void SavePageDownloadFinished( |
90 content::DownloadItem* download) OVERRIDE; | 90 content::DownloadItem* download) OVERRIDE; |
91 virtual content::DownloadItem* GetActiveDownloadItem(int id) OVERRIDE; | 91 virtual content::DownloadItem* GetActiveDownloadItem(int id) OVERRIDE; |
92 virtual bool GenerateFileHash() OVERRIDE; | 92 virtual bool GenerateFileHash() OVERRIDE; |
93 virtual content::DownloadManagerDelegate* delegate() const OVERRIDE; | 93 virtual content::DownloadManagerDelegate* delegate() const OVERRIDE; |
94 virtual void SetDownloadManagerDelegate( | 94 virtual void SetDownloadManagerDelegate( |
95 content::DownloadManagerDelegate* delegate) OVERRIDE; | 95 content::DownloadManagerDelegate* delegate) OVERRIDE; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. | 247 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. |
248 // For debugging only. | 248 // For debugging only. |
249 int64 largest_db_handle_in_history_; | 249 int64 largest_db_handle_in_history_; |
250 | 250 |
251 net::NetLog* net_log_; | 251 net::NetLog* net_log_; |
252 | 252 |
253 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 253 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
254 }; | 254 }; |
255 | 255 |
256 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 256 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
OLD | NEW |