| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 base::Time& last_access_time, |
| 108 bool visible, |
| 108 const std::vector<DownloadItem::ReceivedSlice>& received_slices) override; | 109 const std::vector<DownloadItem::ReceivedSlice>& received_slices) override; |
| 109 int InProgressCount() const override; | 110 int InProgressCount() const override; |
| 110 int NonMaliciousInProgressCount() const override; | 111 int NonMaliciousInProgressCount() const override; |
| 111 BrowserContext* GetBrowserContext() const override; | 112 BrowserContext* GetBrowserContext() const override; |
| 112 void CheckForHistoryFilesRemoval() override; | 113 void CheckForHistoryFilesRemoval() override; |
| 113 DownloadItem* GetDownload(uint32_t id) override; | 114 DownloadItem* GetDownload(uint32_t id) override; |
| 114 DownloadItem* GetDownloadByGuid(const std::string& guid) override; | 115 DownloadItem* GetDownloadByGuid(const std::string& guid) override; |
| 115 | 116 |
| 116 // For testing; specifically, accessed from TestFileErrorInjector. | 117 // For testing; specifically, accessed from TestFileErrorInjector. |
| 117 void SetDownloadItemFactoryForTesting( | 118 void SetDownloadItemFactoryForTesting( |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 url_downloaders_; | 236 url_downloaders_; |
| 236 | 237 |
| 237 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; | 238 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; |
| 238 | 239 |
| 239 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 240 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
| 240 }; | 241 }; |
| 241 | 242 |
| 242 } // namespace content | 243 } // namespace content |
| 243 | 244 |
| 244 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 245 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
| OLD | NEW |