| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // DownloadManager functions. | 66 // DownloadManager functions. |
| 67 void SetDelegate(DownloadManagerDelegate* delegate) override; | 67 void SetDelegate(DownloadManagerDelegate* delegate) override; |
| 68 DownloadManagerDelegate* GetDelegate() const override; | 68 DownloadManagerDelegate* GetDelegate() const override; |
| 69 void Shutdown() override; | 69 void Shutdown() override; |
| 70 void GetAllDownloads(DownloadVector* result) override; | 70 void GetAllDownloads(DownloadVector* result) override; |
| 71 void StartDownload( | 71 void StartDownload( |
| 72 scoped_ptr<DownloadCreateInfo> info, | 72 scoped_ptr<DownloadCreateInfo> info, |
| 73 scoped_ptr<ByteStreamReader> stream, | 73 scoped_ptr<ByteStreamReader> stream, |
| 74 const DownloadUrlParameters::OnStartedCallback& on_started) override; | 74 const DownloadUrlParameters::OnStartedCallback& on_started) override; |
| 75 | 75 |
| 76 int RemoveDownloadsByOriginAndTime(const url::Origin& origin, | 76 int RemoveDownloadsByURLAndTime( |
| 77 base::Time remove_begin, | 77 const base::Callback<bool(const GURL&)>& url_filter, |
| 78 base::Time remove_end) override; | 78 base::Time remove_begin, |
| 79 int RemoveDownloadsBetween(base::Time remove_begin, | 79 base::Time remove_end) override; |
| 80 base::Time remove_end) override; | |
| 81 int RemoveAllDownloads() override; | 80 int RemoveAllDownloads() override; |
| 82 void DownloadUrl(scoped_ptr<DownloadUrlParameters> params) override; | 81 void DownloadUrl(scoped_ptr<DownloadUrlParameters> params) override; |
| 83 void AddObserver(Observer* observer) override; | 82 void AddObserver(Observer* observer) override; |
| 84 void RemoveObserver(Observer* observer) override; | 83 void RemoveObserver(Observer* observer) override; |
| 85 content::DownloadItem* CreateDownloadItem( | 84 content::DownloadItem* CreateDownloadItem( |
| 86 uint32_t id, | 85 uint32_t id, |
| 87 const base::FilePath& current_path, | 86 const base::FilePath& current_path, |
| 88 const base::FilePath& target_path, | 87 const base::FilePath& target_path, |
| 89 const std::vector<GURL>& url_chain, | 88 const std::vector<GURL>& url_chain, |
| 90 const GURL& referrer_url, | 89 const GURL& referrer_url, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 url_downloaders_; | 208 url_downloaders_; |
| 210 | 209 |
| 211 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; | 210 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; |
| 212 | 211 |
| 213 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 212 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
| 214 }; | 213 }; |
| 215 | 214 |
| 216 } // namespace content | 215 } // namespace content |
| 217 | 216 |
| 218 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 217 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
| OLD | NEW |