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 "content/public/browser/download_manager.h" | |
11 | |
12 #include <map> | 10 #include <map> |
13 #include <set> | 11 #include <set> |
14 | 12 |
15 #include "base/hash_tables.h" | 13 #include "base/hash_tables.h" |
16 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
17 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
18 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
19 #include "base/message_loop_helpers.h" | 17 #include "base/message_loop_helpers.h" |
20 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
21 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
22 #include "content/browser/download/download_item_impl.h" | 20 #include "content/browser/download/download_item_impl.h" |
23 #include "content/browser/download/download_status_updater_delegate.h" | 21 #include "content/browser/download/download_status_updater_delegate.h" |
24 #include "content/common/content_export.h" | 22 #include "content/common/content_export.h" |
| 23 #include "content/public/browser/download_manager.h" |
25 | 24 |
26 class DownloadIdFactory; | 25 class DownloadIdFactory; |
27 class DownloadStatusUpdater; | 26 class DownloadStatusUpdater; |
28 | 27 |
29 class CONTENT_EXPORT DownloadManagerImpl | 28 class CONTENT_EXPORT DownloadManagerImpl |
30 : public content::DownloadManager, | 29 : public content::DownloadManager, |
31 public DownloadItemImpl::Delegate, | 30 public DownloadItemImpl::Delegate, |
32 public DownloadStatusUpdaterDelegate { | 31 public DownloadStatusUpdaterDelegate { |
33 public: | 32 public: |
34 DownloadManagerImpl(content::DownloadManagerDelegate* delegate, | 33 DownloadManagerImpl(content::DownloadManagerDelegate* delegate, |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 DownloadIdFactory* id_factory_; | 270 DownloadIdFactory* id_factory_; |
272 | 271 |
273 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. | 272 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. |
274 // For debugging only. | 273 // For debugging only. |
275 int64 largest_db_handle_in_history_; | 274 int64 largest_db_handle_in_history_; |
276 | 275 |
277 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 276 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
278 }; | 277 }; |
279 | 278 |
280 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 279 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
OLD | NEW |