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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 uint32_t id, | 87 uint32_t id, |
88 const base::FilePath& current_path, | 88 const base::FilePath& current_path, |
89 const base::FilePath& target_path, | 89 const base::FilePath& target_path, |
90 const std::vector<GURL>& url_chain, | 90 const std::vector<GURL>& url_chain, |
91 const GURL& referrer_url, | 91 const GURL& referrer_url, |
92 const GURL& site_url, | 92 const GURL& site_url, |
93 const GURL& tab_url, | 93 const GURL& tab_url, |
94 const GURL& tab_refererr_url, | 94 const GURL& tab_refererr_url, |
95 const std::string& mime_type, | 95 const std::string& mime_type, |
96 const std::string& original_mime_type, | 96 const std::string& original_mime_type, |
97 const base::Time& start_time, | 97 base::Time start_time, |
98 const base::Time& end_time, | 98 base::Time end_time, |
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 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 // UrlDownloader::Delegate implementation. | 117 // UrlDownloader::Delegate implementation. |
117 void OnUrlDownloaderStarted( | 118 void OnUrlDownloaderStarted( |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 url_downloaders_; | 241 url_downloaders_; |
241 | 242 |
242 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; | 243 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; |
243 | 244 |
244 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 245 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
245 }; | 246 }; |
246 | 247 |
247 } // namespace content | 248 } // namespace content |
248 | 249 |
249 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 250 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
OLD | NEW |