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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 const base::Time& end_time, | 82 const base::Time& end_time, |
83 const std::string& etag, | 83 const std::string& etag, |
84 const std::string& last_modified, | 84 const std::string& last_modified, |
85 int64 received_bytes, | 85 int64 received_bytes, |
86 int64 total_bytes, | 86 int64 total_bytes, |
87 content::DownloadItem::DownloadState state, | 87 content::DownloadItem::DownloadState state, |
88 DownloadDangerType danger_type, | 88 DownloadDangerType danger_type, |
89 DownloadInterruptReason interrupt_reason, | 89 DownloadInterruptReason interrupt_reason, |
90 bool opened) OVERRIDE; | 90 bool opened) OVERRIDE; |
91 virtual int InProgressCount() const OVERRIDE; | 91 virtual int InProgressCount() const OVERRIDE; |
| 92 virtual int NonDangerousInProgressCount() const OVERRIDE; |
92 virtual BrowserContext* GetBrowserContext() const OVERRIDE; | 93 virtual BrowserContext* GetBrowserContext() const OVERRIDE; |
93 virtual void CheckForHistoryFilesRemoval() OVERRIDE; | 94 virtual void CheckForHistoryFilesRemoval() OVERRIDE; |
94 virtual DownloadItem* GetDownload(uint32 id) OVERRIDE; | 95 virtual DownloadItem* GetDownload(uint32 id) OVERRIDE; |
95 | 96 |
96 // For testing; specifically, accessed from TestFileErrorInjector. | 97 // For testing; specifically, accessed from TestFileErrorInjector. |
97 void SetDownloadItemFactoryForTesting( | 98 void SetDownloadItemFactoryForTesting( |
98 scoped_ptr<DownloadItemFactory> item_factory); | 99 scoped_ptr<DownloadItemFactory> item_factory); |
99 void SetDownloadFileFactoryForTesting( | 100 void SetDownloadFileFactoryForTesting( |
100 scoped_ptr<DownloadFileFactory> file_factory); | 101 scoped_ptr<DownloadFileFactory> file_factory); |
101 virtual DownloadFileFactory* GetDownloadFileFactoryForTesting(); | 102 virtual DownloadFileFactory* GetDownloadFileFactoryForTesting(); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 net::NetLog* net_log_; | 187 net::NetLog* net_log_; |
187 | 188 |
188 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; | 189 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; |
189 | 190 |
190 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 191 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
191 }; | 192 }; |
192 | 193 |
193 } // namespace content | 194 } // namespace content |
194 | 195 |
195 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 196 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
OLD | NEW |