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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 const FilePath& full_path, | 52 const FilePath& full_path, |
53 int uniquifier) OVERRIDE; | 53 int uniquifier) OVERRIDE; |
54 virtual int RemoveDownloadsBetween(base::Time remove_begin, | 54 virtual int RemoveDownloadsBetween(base::Time remove_begin, |
55 base::Time remove_end) OVERRIDE; | 55 base::Time remove_end) OVERRIDE; |
56 virtual int RemoveDownloads(base::Time remove_begin) OVERRIDE; | 56 virtual int RemoveDownloads(base::Time remove_begin) OVERRIDE; |
57 virtual int RemoveAllDownloads() OVERRIDE; | 57 virtual int RemoveAllDownloads() OVERRIDE; |
58 virtual void DownloadUrl(const GURL& url, | 58 virtual void DownloadUrl(const GURL& url, |
59 const GURL& referrer, | 59 const GURL& referrer, |
60 const std::string& referrer_encoding, | 60 const std::string& referrer_encoding, |
61 bool prefer_cache, | 61 bool prefer_cache, |
| 62 int64 post_id, |
62 const DownloadSaveInfo& save_info, | 63 const DownloadSaveInfo& save_info, |
63 content::WebContents* web_contents) OVERRIDE; | 64 content::WebContents* web_contents) OVERRIDE; |
64 virtual void AddObserver(Observer* observer) OVERRIDE; | 65 virtual void AddObserver(Observer* observer) OVERRIDE; |
65 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 66 virtual void RemoveObserver(Observer* observer) OVERRIDE; |
66 virtual void OnPersistentStoreQueryComplete( | 67 virtual void OnPersistentStoreQueryComplete( |
67 std::vector<DownloadPersistentStoreInfo>* entries) OVERRIDE; | 68 std::vector<DownloadPersistentStoreInfo>* entries) OVERRIDE; |
68 virtual void OnItemAddedToPersistentStore(int32 download_id, | 69 virtual void OnItemAddedToPersistentStore(int32 download_id, |
69 int64 db_handle) OVERRIDE; | 70 int64 db_handle) OVERRIDE; |
70 virtual int InProgressCount() const OVERRIDE; | 71 virtual int InProgressCount() const OVERRIDE; |
71 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; | 72 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 content::DownloadManagerDelegate* delegate_; | 247 content::DownloadManagerDelegate* delegate_; |
247 | 248 |
248 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. | 249 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. |
249 // For debugging only. | 250 // For debugging only. |
250 int64 largest_db_handle_in_history_; | 251 int64 largest_db_handle_in_history_; |
251 | 252 |
252 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 253 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
253 }; | 254 }; |
254 | 255 |
255 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 256 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
OLD | NEW |