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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 DownloadItemImpl* item, const DownloadTargetCallback& callback) OVERRIDE; | 122 DownloadItemImpl* item, const DownloadTargetCallback& callback) OVERRIDE; |
123 virtual void ReadyForDownloadCompletion( | 123 virtual void ReadyForDownloadCompletion( |
124 DownloadItemImpl* item, const base::Closure& complete_callback) OVERRIDE; | 124 DownloadItemImpl* item, const base::Closure& complete_callback) OVERRIDE; |
125 virtual bool ShouldOpenFileBasedOnExtension(const FilePath& path) OVERRIDE; | 125 virtual bool ShouldOpenFileBasedOnExtension(const FilePath& path) OVERRIDE; |
126 virtual bool ShouldOpenDownload( | 126 virtual bool ShouldOpenDownload( |
127 DownloadItemImpl* item, | 127 DownloadItemImpl* item, |
128 const ShouldOpenDownloadCallback& callback) OVERRIDE; | 128 const ShouldOpenDownloadCallback& callback) OVERRIDE; |
129 virtual void CheckForFileRemoval(DownloadItemImpl* download_item) OVERRIDE; | 129 virtual void CheckForFileRemoval(DownloadItemImpl* download_item) OVERRIDE; |
130 virtual void DownloadOpened(DownloadItemImpl* download) OVERRIDE; | 130 virtual void DownloadOpened(DownloadItemImpl* download) OVERRIDE; |
131 virtual void DownloadRemoved(DownloadItemImpl* download) OVERRIDE; | 131 virtual void DownloadRemoved(DownloadItemImpl* download) OVERRIDE; |
132 virtual void ShowDownloadInBrowser(DownloadItemImpl* download) OVERRIDE; | |
133 | 132 |
134 // Factory for creation of downloads items. | 133 // Factory for creation of downloads items. |
135 scoped_ptr<DownloadItemFactory> item_factory_; | 134 scoped_ptr<DownloadItemFactory> item_factory_; |
136 | 135 |
137 // Factory for the creation of download files. | 136 // Factory for the creation of download files. |
138 scoped_ptr<DownloadFileFactory> file_factory_; | 137 scoped_ptr<DownloadFileFactory> file_factory_; |
139 | 138 |
140 // |downloads_| is the owning set for all downloads known to the | 139 // |downloads_| is the owning set for all downloads known to the |
141 // DownloadManager. This includes downloads started by the user in | 140 // DownloadManager. This includes downloads started by the user in |
142 // this session, downloads initialized from the history system, and | 141 // this session, downloads initialized from the history system, and |
(...skipping 15 matching lines...) Expand all Loading... |
158 DownloadManagerDelegate* delegate_; | 157 DownloadManagerDelegate* delegate_; |
159 | 158 |
160 net::NetLog* net_log_; | 159 net::NetLog* net_log_; |
161 | 160 |
162 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 161 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
163 }; | 162 }; |
164 | 163 |
165 } // namespace content | 164 } // namespace content |
166 | 165 |
167 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 166 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
OLD | NEW |