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, | |
63 content::DownloadInterruptReason reason) OVERRIDE; | 61 content::DownloadInterruptReason reason) OVERRIDE; |
64 virtual int RemoveDownloadsBetween(base::Time remove_begin, | 62 virtual int RemoveDownloadsBetween(base::Time remove_begin, |
65 base::Time remove_end) OVERRIDE; | 63 base::Time remove_end) OVERRIDE; |
66 virtual int RemoveDownloads(base::Time remove_begin) OVERRIDE; | 64 virtual int RemoveDownloads(base::Time remove_begin) OVERRIDE; |
67 virtual int RemoveAllDownloads() OVERRIDE; | 65 virtual int RemoveAllDownloads() OVERRIDE; |
68 virtual void DownloadUrl( | 66 virtual void DownloadUrl( |
69 scoped_ptr<content::DownloadUrlParameters> params) OVERRIDE; | 67 scoped_ptr<content::DownloadUrlParameters> params) OVERRIDE; |
70 virtual void AddObserver(Observer* observer) OVERRIDE; | 68 virtual void AddObserver(Observer* observer) OVERRIDE; |
71 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 69 virtual void RemoveObserver(Observer* observer) OVERRIDE; |
72 virtual void OnPersistentStoreQueryComplete( | 70 virtual void OnPersistentStoreQueryComplete( |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 238 |
241 // Allows an embedder to control behavior. Guaranteed to outlive this object. | 239 // Allows an embedder to control behavior. Guaranteed to outlive this object. |
242 content::DownloadManagerDelegate* delegate_; | 240 content::DownloadManagerDelegate* delegate_; |
243 | 241 |
244 net::NetLog* net_log_; | 242 net::NetLog* net_log_; |
245 | 243 |
246 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 244 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
247 }; | 245 }; |
248 | 246 |
249 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 247 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
OLD | NEW |