| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 // DownloadManager functions. | 60 // DownloadManager functions. |
| 61 void SetDelegate(DownloadManagerDelegate* delegate) override; | 61 void SetDelegate(DownloadManagerDelegate* delegate) override; |
| 62 DownloadManagerDelegate* GetDelegate() const override; | 62 DownloadManagerDelegate* GetDelegate() const override; |
| 63 void Shutdown() override; | 63 void Shutdown() override; |
| 64 void GetAllDownloads(DownloadVector* result) override; | 64 void GetAllDownloads(DownloadVector* result) override; |
| 65 void StartDownload( | 65 void StartDownload( |
| 66 scoped_ptr<DownloadCreateInfo> info, | 66 scoped_ptr<DownloadCreateInfo> info, |
| 67 scoped_ptr<ByteStreamReader> stream, | 67 scoped_ptr<ByteStreamReader> stream, |
| 68 const DownloadUrlParameters::OnStartedCallback& on_started) override; | 68 const DownloadUrlParameters::OnStartedCallback& on_started) override; |
| 69 int RemoveDownloadsBetween(base::Time remove_begin, | 69 int RemoveDownloadsBetween(const url::Origin& origin_to_clear, |
| 70 base::Time remove_begin, |
| 70 base::Time remove_end) override; | 71 base::Time remove_end) override; |
| 71 int RemoveDownloads(base::Time remove_begin) override; | 72 int RemoveDownloads(base::Time remove_begin) override; |
| 72 int RemoveAllDownloads() override; | 73 int RemoveAllDownloads() override; |
| 73 void DownloadUrl(scoped_ptr<DownloadUrlParameters> params) override; | 74 void DownloadUrl(scoped_ptr<DownloadUrlParameters> params) override; |
| 74 void AddObserver(Observer* observer) override; | 75 void AddObserver(Observer* observer) override; |
| 75 void RemoveObserver(Observer* observer) override; | 76 void RemoveObserver(Observer* observer) override; |
| 76 content::DownloadItem* CreateDownloadItem( | 77 content::DownloadItem* CreateDownloadItem( |
| 77 uint32 id, | 78 uint32 id, |
| 78 const base::FilePath& current_path, | 79 const base::FilePath& current_path, |
| 79 const base::FilePath& target_path, | 80 const base::FilePath& target_path, |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 net::NetLog* net_log_; | 189 net::NetLog* net_log_; |
| 189 | 190 |
| 190 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; | 191 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; |
| 191 | 192 |
| 192 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 193 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
| 193 }; | 194 }; |
| 194 | 195 |
| 195 } // namespace content | 196 } // namespace content |
| 196 | 197 |
| 197 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 198 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
| OLD | NEW |