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