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 #ifndef CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ |
6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 virtual bool OverrideIntermediatePath(DownloadItem* item, | 57 virtual bool OverrideIntermediatePath(DownloadItem* item, |
58 FilePath* intermediate_path) OVERRIDE; | 58 FilePath* intermediate_path) OVERRIDE; |
59 virtual TabContents* GetAlternativeTabContentsToNotifyForDownload() OVERRIDE; | 59 virtual TabContents* GetAlternativeTabContentsToNotifyForDownload() OVERRIDE; |
60 virtual bool ShouldOpenFileBasedOnExtension(const FilePath& path) OVERRIDE; | 60 virtual bool ShouldOpenFileBasedOnExtension(const FilePath& path) OVERRIDE; |
61 virtual bool ShouldOpenDownload(DownloadItem* item) OVERRIDE; | 61 virtual bool ShouldOpenDownload(DownloadItem* item) OVERRIDE; |
62 virtual bool ShouldCompleteDownload(DownloadItem* item) OVERRIDE; | 62 virtual bool ShouldCompleteDownload(DownloadItem* item) OVERRIDE; |
63 virtual bool GenerateFileHash() OVERRIDE; | 63 virtual bool GenerateFileHash() OVERRIDE; |
64 virtual void OnResponseCompleted(DownloadItem* item, | 64 virtual void OnResponseCompleted(DownloadItem* item, |
65 const std::string& hash) OVERRIDE; | 65 const std::string& hash) OVERRIDE; |
66 virtual void AddItemToPersistentStore(DownloadItem* item) OVERRIDE; | 66 virtual void AddItemToPersistentStore(DownloadItem* item) OVERRIDE; |
| 67 virtual void MarkDownloadOpened(int64 db_handle) OVERRIDE; |
67 virtual void UpdateItemInPersistentStore(DownloadItem* item) OVERRIDE; | 68 virtual void UpdateItemInPersistentStore(DownloadItem* item) OVERRIDE; |
68 virtual void UpdatePathForItemInPersistentStore( | 69 virtual void UpdatePathForItemInPersistentStore( |
69 DownloadItem* item, | 70 DownloadItem* item, |
70 const FilePath& new_path) OVERRIDE; | 71 const FilePath& new_path) OVERRIDE; |
71 virtual void RemoveItemFromPersistentStore(DownloadItem* item) OVERRIDE; | 72 virtual void RemoveItemFromPersistentStore(DownloadItem* item) OVERRIDE; |
72 virtual void RemoveItemsFromPersistentStoreBetween( | 73 virtual void RemoveItemsFromPersistentStoreBetween( |
73 const base::Time remove_begin, | 74 const base::Time remove_begin, |
74 const base::Time remove_end) OVERRIDE; | 75 const base::Time remove_end) OVERRIDE; |
75 virtual void GetSaveDir(TabContents* tab_contents, | 76 virtual void GetSaveDir(TabContents* tab_contents, |
76 FilePath* website_save_dir, | 77 FilePath* website_save_dir, |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // Maps from pending extension installations to DownloadItem IDs. | 142 // Maps from pending extension installations to DownloadItem IDs. |
142 typedef base::hash_map<CrxInstaller*, int> CrxInstallerMap; | 143 typedef base::hash_map<CrxInstaller*, int> CrxInstallerMap; |
143 CrxInstallerMap crx_installers_; | 144 CrxInstallerMap crx_installers_; |
144 | 145 |
145 NotificationRegistrar registrar_; | 146 NotificationRegistrar registrar_; |
146 | 147 |
147 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); | 148 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); |
148 }; | 149 }; |
149 | 150 |
150 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ | 151 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ |
OLD | NEW |