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 | 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 <map> | 10 #include <map> |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 const FilePath& full_path, | 63 const FilePath& full_path, |
64 int uniquifier) OVERRIDE; | 64 int uniquifier) OVERRIDE; |
65 virtual int RemoveDownloadsBetween(base::Time remove_begin, | 65 virtual int RemoveDownloadsBetween(base::Time remove_begin, |
66 base::Time remove_end) OVERRIDE; | 66 base::Time remove_end) OVERRIDE; |
67 virtual int RemoveDownloads(base::Time remove_begin) OVERRIDE; | 67 virtual int RemoveDownloads(base::Time remove_begin) OVERRIDE; |
68 virtual int RemoveAllDownloads() OVERRIDE; | 68 virtual int RemoveAllDownloads() OVERRIDE; |
69 virtual void DownloadUrl(const GURL& url, | 69 virtual void DownloadUrl(const GURL& url, |
70 const GURL& referrer, | 70 const GURL& referrer, |
71 const std::string& referrer_encoding, | 71 const std::string& referrer_encoding, |
72 bool prefer_cache, | 72 bool prefer_cache, |
| 73 int64 post_id, |
73 const DownloadSaveInfo& save_info, | 74 const DownloadSaveInfo& save_info, |
74 content::WebContents* web_contents) OVERRIDE; | 75 content::WebContents* web_contents) OVERRIDE; |
75 virtual void AddObserver(Observer* observer) OVERRIDE; | 76 virtual void AddObserver(Observer* observer) OVERRIDE; |
76 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 77 virtual void RemoveObserver(Observer* observer) OVERRIDE; |
77 virtual void OnPersistentStoreQueryComplete( | 78 virtual void OnPersistentStoreQueryComplete( |
78 std::vector<DownloadPersistentStoreInfo>* entries) OVERRIDE; | 79 std::vector<DownloadPersistentStoreInfo>* entries) OVERRIDE; |
79 virtual void OnItemAddedToPersistentStore(int32 download_id, | 80 virtual void OnItemAddedToPersistentStore(int32 download_id, |
80 int64 db_handle) OVERRIDE; | 81 int64 db_handle) OVERRIDE; |
81 virtual int InProgressCount() const OVERRIDE; | 82 virtual int InProgressCount() const OVERRIDE; |
82 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; | 83 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 content::DownloadManagerDelegate* delegate_; | 267 content::DownloadManagerDelegate* delegate_; |
267 | 268 |
268 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. | 269 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. |
269 // For debugging only. | 270 // For debugging only. |
270 int64 largest_db_handle_in_history_; | 271 int64 largest_db_handle_in_history_; |
271 | 272 |
272 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 273 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
273 }; | 274 }; |
274 | 275 |
275 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 276 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
OLD | NEW |