| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 5 |
| 6 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 6 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
| 7 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 7 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
| 8 #pragma once | 8 #pragma once |
| 9 | 9 |
| 10 #include "content/browser/download/download_manager.h" | 10 #include "content/browser/download/download_manager.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // DownloadManager functions. | 35 // DownloadManager functions. |
| 36 virtual void Shutdown() OVERRIDE; | 36 virtual void Shutdown() OVERRIDE; |
| 37 virtual void GetTemporaryDownloads(const FilePath& dir_path, | 37 virtual void GetTemporaryDownloads(const FilePath& dir_path, |
| 38 DownloadVector* result) OVERRIDE; | 38 DownloadVector* result) OVERRIDE; |
| 39 virtual void GetAllDownloads(const FilePath& dir_path, | 39 virtual void GetAllDownloads(const FilePath& dir_path, |
| 40 DownloadVector* result) OVERRIDE; | 40 DownloadVector* result) OVERRIDE; |
| 41 virtual void SearchDownloads(const string16& query, | 41 virtual void SearchDownloads(const string16& query, |
| 42 DownloadVector* result) OVERRIDE; | 42 DownloadVector* result) OVERRIDE; |
| 43 virtual bool Init(content::BrowserContext* browser_context) OVERRIDE; | 43 virtual bool Init(content::BrowserContext* browser_context) OVERRIDE; |
| 44 virtual void StartDownload(int32 id) OVERRIDE; | 44 virtual void StartDownload(int32 id) OVERRIDE; |
| 45 virtual void UpdateDownload(int32 download_id, int64 size) OVERRIDE; | 45 virtual void UpdateDownload(int32 download_id, |
| 46 int64 size, |
| 47 std::string hash_state) OVERRIDE; |
| 46 virtual void OnResponseCompleted(int32 download_id, int64 size, | 48 virtual void OnResponseCompleted(int32 download_id, int64 size, |
| 47 const std::string& hash) OVERRIDE; | 49 const std::string& hash) OVERRIDE; |
| 48 virtual void CancelDownload(int32 download_id) OVERRIDE; | 50 virtual void CancelDownload(int32 download_id) OVERRIDE; |
| 49 virtual void OnDownloadInterrupted(int32 download_id, int64 size, | 51 virtual void OnDownloadInterrupted(int32 download_id, |
| 52 int64 size, |
| 53 std::string hash_state, |
| 50 InterruptReason reason) OVERRIDE; | 54 InterruptReason reason) OVERRIDE; |
| 51 virtual void DownloadCancelledInternal(DownloadItem* download) OVERRIDE; | 55 virtual void DownloadCancelledInternal(DownloadItem* download) OVERRIDE; |
| 52 virtual void RemoveDownload(int64 download_handle) OVERRIDE; | 56 virtual void RemoveDownload(int64 download_handle) OVERRIDE; |
| 53 virtual bool IsDownloadReadyForCompletion(DownloadItem* download) OVERRIDE; | 57 virtual bool IsDownloadReadyForCompletion(DownloadItem* download) OVERRIDE; |
| 54 virtual void MaybeCompleteDownload(DownloadItem* download) OVERRIDE; | 58 virtual void MaybeCompleteDownload(DownloadItem* download) OVERRIDE; |
| 55 virtual void OnDownloadRenamedToFinalName(int download_id, | 59 virtual void OnDownloadRenamedToFinalName(int download_id, |
| 56 const FilePath& full_path, | 60 const FilePath& full_path, |
| 57 int uniquifier) OVERRIDE; | 61 int uniquifier) OVERRIDE; |
| 58 virtual int RemoveDownloadsBetween(const base::Time remove_begin, | 62 virtual int RemoveDownloadsBetween(const base::Time remove_begin, |
| 59 const base::Time remove_end) OVERRIDE; | 63 const base::Time remove_end) OVERRIDE; |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 DownloadIdFactory* id_factory_; | 243 DownloadIdFactory* id_factory_; |
| 240 | 244 |
| 241 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. | 245 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. |
| 242 // For debugging only. | 246 // For debugging only. |
| 243 int64 largest_db_handle_in_history_; | 247 int64 largest_db_handle_in_history_; |
| 244 | 248 |
| 245 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 249 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
| 246 }; | 250 }; |
| 247 | 251 |
| 248 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 252 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
| OLD | NEW |