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 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 scoped_ptr<content::ByteStreamReader> stream) OVERRIDE; | 51 scoped_ptr<content::ByteStreamReader> stream) OVERRIDE; |
52 virtual void UpdateDownload(int32 download_id, | 52 virtual void UpdateDownload(int32 download_id, |
53 int64 bytes_so_far, | 53 int64 bytes_so_far, |
54 int64 bytes_per_sec, | 54 int64 bytes_per_sec, |
55 const std::string& hash_state) OVERRIDE; | 55 const std::string& hash_state) OVERRIDE; |
56 virtual void OnResponseCompleted(int32 download_id, int64 size, | 56 virtual void OnResponseCompleted(int32 download_id, int64 size, |
57 const std::string& hash) OVERRIDE; | 57 const std::string& hash) OVERRIDE; |
58 virtual void CancelDownload(int32 download_id) OVERRIDE; | 58 virtual void CancelDownload(int32 download_id) OVERRIDE; |
59 virtual void OnDownloadInterrupted( | 59 virtual void OnDownloadInterrupted( |
60 int32 download_id, | 60 int32 download_id, |
| 61 int64 size, |
| 62 const std::string& hash_state, |
61 content::DownloadInterruptReason reason) OVERRIDE; | 63 content::DownloadInterruptReason reason) OVERRIDE; |
62 virtual int RemoveDownloadsBetween(base::Time remove_begin, | 64 virtual int RemoveDownloadsBetween(base::Time remove_begin, |
63 base::Time remove_end) OVERRIDE; | 65 base::Time remove_end) OVERRIDE; |
64 virtual int RemoveDownloads(base::Time remove_begin) OVERRIDE; | 66 virtual int RemoveDownloads(base::Time remove_begin) OVERRIDE; |
65 virtual int RemoveAllDownloads() OVERRIDE; | 67 virtual int RemoveAllDownloads() OVERRIDE; |
66 virtual void DownloadUrl( | 68 virtual void DownloadUrl( |
67 scoped_ptr<content::DownloadUrlParameters> params) OVERRIDE; | 69 scoped_ptr<content::DownloadUrlParameters> params) OVERRIDE; |
68 virtual void AddObserver(Observer* observer) OVERRIDE; | 70 virtual void AddObserver(Observer* observer) OVERRIDE; |
69 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 71 virtual void RemoveObserver(Observer* observer) OVERRIDE; |
70 virtual void OnPersistentStoreQueryComplete( | 72 virtual void OnPersistentStoreQueryComplete( |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 240 |
239 // Allows an embedder to control behavior. Guaranteed to outlive this object. | 241 // Allows an embedder to control behavior. Guaranteed to outlive this object. |
240 content::DownloadManagerDelegate* delegate_; | 242 content::DownloadManagerDelegate* delegate_; |
241 | 243 |
242 net::NetLog* net_log_; | 244 net::NetLog* net_log_; |
243 | 245 |
244 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 246 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
245 }; | 247 }; |
246 | 248 |
247 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 249 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
OLD | NEW |