| 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/public/browser/download_manager.h" | 10 #include "content/public/browser/download_manager.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // content::DownloadManager functions. | 37 // content::DownloadManager functions. |
| 38 virtual void Shutdown() OVERRIDE; | 38 virtual void Shutdown() OVERRIDE; |
| 39 virtual void GetTemporaryDownloads(const FilePath& dir_path, | 39 virtual void GetTemporaryDownloads(const FilePath& dir_path, |
| 40 DownloadVector* result) OVERRIDE; | 40 DownloadVector* result) OVERRIDE; |
| 41 virtual void GetAllDownloads(const FilePath& dir_path, | 41 virtual void GetAllDownloads(const FilePath& dir_path, |
| 42 DownloadVector* result) OVERRIDE; | 42 DownloadVector* result) OVERRIDE; |
| 43 virtual void SearchDownloads(const string16& query, | 43 virtual void SearchDownloads(const string16& query, |
| 44 DownloadVector* result) OVERRIDE; | 44 DownloadVector* result) OVERRIDE; |
| 45 virtual bool Init(content::BrowserContext* browser_context) OVERRIDE; | 45 virtual bool Init(content::BrowserContext* browser_context) OVERRIDE; |
| 46 virtual void StartDownload(int32 id) OVERRIDE; | 46 virtual void StartDownload(int32 id) OVERRIDE; |
| 47 virtual void UpdateDownload(int32 download_id, int64 bytes_so_far, | 47 virtual void UpdateDownload(int32 download_id, |
| 48 int64 bytes_per_sec) OVERRIDE; | 48 int64 bytes_so_far, |
| 49 int64 bytes_per_sec, |
| 50 std::string hash_state) OVERRIDE; |
| 49 virtual void OnResponseCompleted(int32 download_id, int64 size, | 51 virtual void OnResponseCompleted(int32 download_id, int64 size, |
| 50 const std::string& hash) OVERRIDE; | 52 const std::string& hash) OVERRIDE; |
| 51 virtual void CancelDownload(int32 download_id) OVERRIDE; | 53 virtual void CancelDownload(int32 download_id) OVERRIDE; |
| 52 virtual void OnDownloadInterrupted(int32 download_id, int64 size, | 54 virtual void OnDownloadInterrupted(int32 download_id, |
| 55 int64 size, |
| 56 std::string hash_state, |
| 53 InterruptReason reason) OVERRIDE; | 57 InterruptReason reason) OVERRIDE; |
| 54 virtual void OnDownloadRenamedToFinalName(int download_id, | 58 virtual void OnDownloadRenamedToFinalName(int download_id, |
| 55 const FilePath& full_path, | 59 const FilePath& full_path, |
| 56 int uniquifier) OVERRIDE; | 60 int uniquifier) OVERRIDE; |
| 57 virtual int RemoveDownloadsBetween(const base::Time remove_begin, | 61 virtual int RemoveDownloadsBetween(const base::Time remove_begin, |
| 58 const base::Time remove_end) OVERRIDE; | 62 const base::Time remove_end) OVERRIDE; |
| 59 virtual int RemoveDownloads(const base::Time remove_begin) OVERRIDE; | 63 virtual int RemoveDownloads(const base::Time remove_begin) OVERRIDE; |
| 60 virtual int RemoveAllDownloads() OVERRIDE; | 64 virtual int RemoveAllDownloads() OVERRIDE; |
| 61 virtual void DownloadUrl(const GURL& url, | 65 virtual void DownloadUrl(const GURL& url, |
| 62 const GURL& referrer, | 66 const GURL& referrer, |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 DownloadIdFactory* id_factory_; | 270 DownloadIdFactory* id_factory_; |
| 267 | 271 |
| 268 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. | 272 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. |
| 269 // For debugging only. | 273 // For debugging only. |
| 270 int64 largest_db_handle_in_history_; | 274 int64 largest_db_handle_in_history_; |
| 271 | 275 |
| 272 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 276 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
| 273 }; | 277 }; |
| 274 | 278 |
| 275 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 279 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
| OLD | NEW |