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 <set> | 10 #include <set> |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 const std::vector<GURL>& url_chain, | 89 const std::vector<GURL>& url_chain, |
90 const GURL& referrer_url, | 90 const GURL& referrer_url, |
91 const std::string& mime_type, | 91 const std::string& mime_type, |
92 const std::string& original_mime_type, | 92 const std::string& original_mime_type, |
93 const base::Time& start_time, | 93 const base::Time& start_time, |
94 const base::Time& end_time, | 94 const base::Time& end_time, |
95 const std::string& etag, | 95 const std::string& etag, |
96 const std::string& last_modified, | 96 const std::string& last_modified, |
97 int64_t received_bytes, | 97 int64_t received_bytes, |
98 int64_t total_bytes, | 98 int64_t total_bytes, |
| 99 const std::string& hash, |
99 content::DownloadItem::DownloadState state, | 100 content::DownloadItem::DownloadState state, |
100 DownloadDangerType danger_type, | 101 DownloadDangerType danger_type, |
101 DownloadInterruptReason interrupt_reason, | 102 DownloadInterruptReason interrupt_reason, |
102 bool opened) override; | 103 bool opened) override; |
103 int InProgressCount() const override; | 104 int InProgressCount() const override; |
104 int NonMaliciousInProgressCount() const override; | 105 int NonMaliciousInProgressCount() const override; |
105 BrowserContext* GetBrowserContext() const override; | 106 BrowserContext* GetBrowserContext() const override; |
106 void CheckForHistoryFilesRemoval() override; | 107 void CheckForHistoryFilesRemoval() override; |
107 DownloadItem* GetDownload(uint32_t id) override; | 108 DownloadItem* GetDownload(uint32_t id) override; |
108 DownloadItem* GetDownloadByGuid(const std::string& guid) override; | 109 DownloadItem* GetDownloadByGuid(const std::string& guid) override; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 url_downloaders_; | 220 url_downloaders_; |
220 | 221 |
221 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; | 222 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; |
222 | 223 |
223 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 224 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
224 }; | 225 }; |
225 | 226 |
226 } // namespace content | 227 } // namespace content |
227 | 228 |
228 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 229 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
OLD | NEW |