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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 const std::string& etag, | 99 const std::string& etag, |
100 const std::string& last_modified, | 100 const std::string& last_modified, |
101 int64_t received_bytes, | 101 int64_t received_bytes, |
102 int64_t total_bytes, | 102 int64_t total_bytes, |
103 const std::string& hash, | 103 const std::string& hash, |
104 content::DownloadItem::DownloadState state, | 104 content::DownloadItem::DownloadState state, |
105 DownloadDangerType danger_type, | 105 DownloadDangerType danger_type, |
106 DownloadInterruptReason interrupt_reason, | 106 DownloadInterruptReason interrupt_reason, |
107 bool opened, | 107 bool opened, |
108 base::Time last_access_time, | 108 base::Time last_access_time, |
| 109 bool visible, |
109 const std::vector<DownloadItem::ReceivedSlice>& received_slices) override; | 110 const std::vector<DownloadItem::ReceivedSlice>& received_slices) override; |
110 int InProgressCount() const override; | 111 int InProgressCount() const override; |
111 int NonMaliciousInProgressCount() const override; | 112 int NonMaliciousInProgressCount() const override; |
112 BrowserContext* GetBrowserContext() const override; | 113 BrowserContext* GetBrowserContext() const override; |
113 void CheckForHistoryFilesRemoval() override; | 114 void CheckForHistoryFilesRemoval() override; |
114 DownloadItem* GetDownload(uint32_t id) override; | 115 DownloadItem* GetDownload(uint32_t id) override; |
115 DownloadItem* GetDownloadByGuid(const std::string& guid) override; | 116 DownloadItem* GetDownloadByGuid(const std::string& guid) override; |
116 | 117 |
117 // UrlDownloader::Delegate implementation. | 118 // UrlDownloader::Delegate implementation. |
118 void OnUrlDownloaderStarted( | 119 void OnUrlDownloaderStarted( |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 url_downloaders_; | 242 url_downloaders_; |
242 | 243 |
243 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; | 244 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; |
244 | 245 |
245 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 246 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
246 }; | 247 }; |
247 | 248 |
248 } // namespace content | 249 } // namespace content |
249 | 250 |
250 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 251 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
OLD | NEW |