| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual int RemoveDownloadsBetween(base::Time remove_begin, | 56 virtual int RemoveDownloadsBetween(base::Time remove_begin, |
| 57 base::Time remove_end) OVERRIDE; | 57 base::Time remove_end) OVERRIDE; |
| 58 virtual int RemoveDownloads(base::Time remove_begin) OVERRIDE; | 58 virtual int RemoveDownloads(base::Time remove_begin) OVERRIDE; |
| 59 virtual int RemoveAllDownloads() OVERRIDE; | 59 virtual int RemoveAllDownloads() OVERRIDE; |
| 60 virtual void DownloadUrl(const GURL& url, | 60 virtual void DownloadUrl(const GURL& url, |
| 61 const GURL& referrer, | 61 const GURL& referrer, |
| 62 const std::string& referrer_encoding, | 62 const std::string& referrer_encoding, |
| 63 bool prefer_cache, | 63 bool prefer_cache, |
| 64 int64 post_id, | 64 int64 post_id, |
| 65 const DownloadSaveInfo& save_info, | 65 const DownloadSaveInfo& save_info, |
| 66 content::WebContents* web_contents) OVERRIDE; | 66 content::WebContents* web_contents, |
| 67 const OnStartedCallback& callback) OVERRIDE; |
| 67 virtual void AddObserver(Observer* observer) OVERRIDE; | 68 virtual void AddObserver(Observer* observer) OVERRIDE; |
| 68 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 69 virtual void RemoveObserver(Observer* observer) OVERRIDE; |
| 69 virtual void OnPersistentStoreQueryComplete( | 70 virtual void OnPersistentStoreQueryComplete( |
| 70 std::vector<DownloadPersistentStoreInfo>* entries) OVERRIDE; | 71 std::vector<DownloadPersistentStoreInfo>* entries) OVERRIDE; |
| 71 virtual void OnItemAddedToPersistentStore(int32 download_id, | 72 virtual void OnItemAddedToPersistentStore(int32 download_id, |
| 72 int64 db_handle) OVERRIDE; | 73 int64 db_handle) OVERRIDE; |
| 73 virtual int InProgressCount() const OVERRIDE; | 74 virtual int InProgressCount() const OVERRIDE; |
| 74 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; | 75 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; |
| 75 virtual FilePath LastDownloadPath() OVERRIDE; | 76 virtual FilePath LastDownloadPath() OVERRIDE; |
| 76 virtual net::BoundNetLog CreateDownloadItem( | 77 virtual net::BoundNetLog CreateDownloadItem( |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 net::NetLog* net_log_; | 253 net::NetLog* net_log_; |
| 253 | 254 |
| 254 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 255 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
| 255 }; | 256 }; |
| 256 | 257 |
| 257 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 258 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
| OLD | NEW |