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 29 matching lines...) Expand all Loading... |
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, | 47 virtual void UpdateDownload(int32 download_id, |
48 int64 bytes_so_far, | 48 int64 bytes_so_far, |
49 int64 bytes_per_sec, | 49 int64 bytes_per_sec, |
50 std::string hash_state) OVERRIDE; | 50 const std::string& hash_state) OVERRIDE; |
51 virtual void OnResponseCompleted(int32 download_id, int64 size, | 51 virtual void OnResponseCompleted(int32 download_id, int64 size, |
52 const std::string& hash) OVERRIDE; | 52 const std::string& hash) OVERRIDE; |
53 virtual void CancelDownload(int32 download_id) OVERRIDE; | 53 virtual void CancelDownload(int32 download_id) OVERRIDE; |
54 virtual void OnDownloadInterrupted(int32 download_id, | 54 virtual void OnDownloadInterrupted(int32 download_id, |
55 int64 size, | 55 int64 size, |
56 std::string hash_state, | 56 const std::string& hash_state, |
57 InterruptReason reason) OVERRIDE; | 57 InterruptReason reason) OVERRIDE; |
58 virtual void OnDownloadRenamedToFinalName(int download_id, | 58 virtual void OnDownloadRenamedToFinalName(int download_id, |
59 const FilePath& full_path, | 59 const FilePath& full_path, |
60 int uniquifier) OVERRIDE; | 60 int uniquifier) OVERRIDE; |
61 virtual int RemoveDownloadsBetween(const base::Time remove_begin, | 61 virtual int RemoveDownloadsBetween(const base::Time remove_begin, |
62 const base::Time remove_end) OVERRIDE; | 62 const base::Time remove_end) OVERRIDE; |
63 virtual int RemoveDownloads(const base::Time remove_begin) OVERRIDE; | 63 virtual int RemoveDownloads(const base::Time remove_begin) OVERRIDE; |
64 virtual int RemoveAllDownloads() OVERRIDE; | 64 virtual int RemoveAllDownloads() OVERRIDE; |
65 virtual void DownloadUrl(const GURL& url, | 65 virtual void DownloadUrl(const GURL& url, |
66 const GURL& referrer, | 66 const GURL& referrer, |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 DownloadIdFactory* id_factory_; | 270 DownloadIdFactory* id_factory_; |
271 | 271 |
272 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. | 272 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. |
273 // For debugging only. | 273 // For debugging only. |
274 int64 largest_db_handle_in_history_; | 274 int64 largest_db_handle_in_history_; |
275 | 275 |
276 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 276 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
277 }; | 277 }; |
278 | 278 |
279 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 279 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
OLD | NEW |