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