| 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 #include <string> | 10 #include <string> |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // this session, downloads initialized from the history system, and | 170 // this session, downloads initialized from the history system, and |
| 171 // "save page as" downloads. | 171 // "save page as" downloads. |
| 172 DownloadMap downloads_; | 172 DownloadMap downloads_; |
| 173 | 173 |
| 174 int history_size_; | 174 int history_size_; |
| 175 | 175 |
| 176 // True if the download manager has been initialized and requires a shutdown. | 176 // True if the download manager has been initialized and requires a shutdown. |
| 177 bool shutdown_needed_; | 177 bool shutdown_needed_; |
| 178 | 178 |
| 179 // Observers that want to be notified of changes to the set of downloads. | 179 // Observers that want to be notified of changes to the set of downloads. |
| 180 ObserverList<Observer> observers_; | 180 base::ObserverList<Observer> observers_; |
| 181 | 181 |
| 182 // The current active browser context. | 182 // The current active browser context. |
| 183 BrowserContext* browser_context_; | 183 BrowserContext* browser_context_; |
| 184 | 184 |
| 185 // Allows an embedder to control behavior. Guaranteed to outlive this object. | 185 // Allows an embedder to control behavior. Guaranteed to outlive this object. |
| 186 DownloadManagerDelegate* delegate_; | 186 DownloadManagerDelegate* delegate_; |
| 187 | 187 |
| 188 net::NetLog* net_log_; | 188 net::NetLog* net_log_; |
| 189 | 189 |
| 190 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; | 190 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; |
| 191 | 191 |
| 192 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 192 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 } // namespace content | 195 } // namespace content |
| 196 | 196 |
| 197 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 197 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
| OLD | NEW |