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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 const base::Time& end_time, | 97 const base::Time& end_time, |
98 const std::string& etag, | 98 const std::string& etag, |
99 const std::string& last_modified, | 99 const std::string& last_modified, |
100 int64_t received_bytes, | 100 int64_t received_bytes, |
101 int64_t total_bytes, | 101 int64_t total_bytes, |
102 const std::string& hash, | 102 const std::string& hash, |
103 content::DownloadItem::DownloadState state, | 103 content::DownloadItem::DownloadState state, |
104 DownloadDangerType danger_type, | 104 DownloadDangerType danger_type, |
105 DownloadInterruptReason interrupt_reason, | 105 DownloadInterruptReason interrupt_reason, |
106 bool opened, | 106 bool opened, |
| 107 const base::Time& last_access_time, |
107 const std::vector<DownloadItem::ReceivedSlice>& received_slices) override; | 108 const std::vector<DownloadItem::ReceivedSlice>& received_slices) override; |
108 int InProgressCount() const override; | 109 int InProgressCount() const override; |
109 int NonMaliciousInProgressCount() const override; | 110 int NonMaliciousInProgressCount() const override; |
110 BrowserContext* GetBrowserContext() const override; | 111 BrowserContext* GetBrowserContext() const override; |
111 void CheckForHistoryFilesRemoval() override; | 112 void CheckForHistoryFilesRemoval() override; |
112 DownloadItem* GetDownload(uint32_t id) override; | 113 DownloadItem* GetDownload(uint32_t id) override; |
113 DownloadItem* GetDownloadByGuid(const std::string& guid) override; | 114 DownloadItem* GetDownloadByGuid(const std::string& guid) override; |
114 | 115 |
115 // For testing; specifically, accessed from TestFileErrorInjector. | 116 // For testing; specifically, accessed from TestFileErrorInjector. |
116 void SetDownloadItemFactoryForTesting( | 117 void SetDownloadItemFactoryForTesting( |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 url_downloaders_; | 235 url_downloaders_; |
235 | 236 |
236 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; | 237 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; |
237 | 238 |
238 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 239 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
239 }; | 240 }; |
240 | 241 |
241 } // namespace content | 242 } // namespace content |
242 | 243 |
243 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 244 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
OLD | NEW |