| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // Overridden from DownloadItemImplDelegate | 182 // Overridden from DownloadItemImplDelegate |
| 183 // (Note that |GetBrowserContext| are present in both interfaces.) | 183 // (Note that |GetBrowserContext| are present in both interfaces.) |
| 184 void DetermineDownloadTarget(DownloadItemImpl* item, | 184 void DetermineDownloadTarget(DownloadItemImpl* item, |
| 185 const DownloadTargetCallback& callback) override; | 185 const DownloadTargetCallback& callback) override; |
| 186 bool ShouldCompleteDownload(DownloadItemImpl* item, | 186 bool ShouldCompleteDownload(DownloadItemImpl* item, |
| 187 const base::Closure& complete_callback) override; | 187 const base::Closure& complete_callback) override; |
| 188 bool ShouldOpenFileBasedOnExtension(const base::FilePath& path) override; | 188 bool ShouldOpenFileBasedOnExtension(const base::FilePath& path) override; |
| 189 bool ShouldOpenDownload(DownloadItemImpl* item, | 189 bool ShouldOpenDownload(DownloadItemImpl* item, |
| 190 const ShouldOpenDownloadCallback& callback) override; | 190 const ShouldOpenDownloadCallback& callback) override; |
| 191 void CheckForFileRemoval(DownloadItemImpl* download_item) override; | 191 void CheckForFileRemoval(DownloadItemImpl* download_item) override; |
| 192 std::string GetApplicationClientIdForFileScanning() const override; |
| 192 void ResumeInterruptedDownload( | 193 void ResumeInterruptedDownload( |
| 193 std::unique_ptr<content::DownloadUrlParameters> params, | 194 std::unique_ptr<content::DownloadUrlParameters> params, |
| 194 uint32_t id) override; | 195 uint32_t id) override; |
| 195 void OpenDownload(DownloadItemImpl* download) override; | 196 void OpenDownload(DownloadItemImpl* download) override; |
| 196 void ShowDownloadInShell(DownloadItemImpl* download) override; | 197 void ShowDownloadInShell(DownloadItemImpl* download) override; |
| 197 void DownloadRemoved(DownloadItemImpl* download) override; | 198 void DownloadRemoved(DownloadItemImpl* download) override; |
| 198 | 199 |
| 199 void AddUrlDownloader( | 200 void AddUrlDownloader( |
| 200 std::unique_ptr<UrlDownloader, BrowserThread::DeleteOnIOThread> | 201 std::unique_ptr<UrlDownloader, BrowserThread::DeleteOnIOThread> |
| 201 downloader); | 202 downloader); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 url_downloaders_; | 239 url_downloaders_; |
| 239 | 240 |
| 240 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; | 241 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; |
| 241 | 242 |
| 242 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 243 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
| 243 }; | 244 }; |
| 244 | 245 |
| 245 } // namespace content | 246 } // namespace content |
| 246 | 247 |
| 247 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 248 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
| OLD | NEW |