| 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 #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 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 content::WebContents* web_contents, | 86 content::WebContents* web_contents, |
| 87 const base::FilePath& suggested_path, | 87 const base::FilePath& suggested_path, |
| 88 const base::FilePath::StringType& default_extension, | 88 const base::FilePath::StringType& default_extension, |
| 89 bool can_save_as_complete, | 89 bool can_save_as_complete, |
| 90 const content::SavePackagePathPickedCallback& callback) OVERRIDE; | 90 const content::SavePackagePathPickedCallback& callback) OVERRIDE; |
| 91 virtual void OpenDownload(content::DownloadItem* download) OVERRIDE; | 91 virtual void OpenDownload(content::DownloadItem* download) OVERRIDE; |
| 92 virtual void ShowDownloadInShell(content::DownloadItem* download) OVERRIDE; | 92 virtual void ShowDownloadInShell(content::DownloadItem* download) OVERRIDE; |
| 93 virtual void CheckForFileExistence( | 93 virtual void CheckForFileExistence( |
| 94 content::DownloadItem* download, | 94 content::DownloadItem* download, |
| 95 const content::CheckForFileExistenceCallback& callback) OVERRIDE; | 95 const content::CheckForFileExistenceCallback& callback) OVERRIDE; |
| 96 virtual std::string ApplicationClientIdForFileScanning() const OVERRIDE; |
| 96 | 97 |
| 97 DownloadPrefs* download_prefs() { return download_prefs_.get(); } | 98 DownloadPrefs* download_prefs() { return download_prefs_.get(); } |
| 98 | 99 |
| 99 protected: | 100 protected: |
| 100 // So that test classes can inherit from this for override purposes. | 101 // So that test classes can inherit from this for override purposes. |
| 101 virtual ~ChromeDownloadManagerDelegate(); | 102 virtual ~ChromeDownloadManagerDelegate(); |
| 102 | 103 |
| 103 // So that test classes that inherit from this for override purposes | 104 // So that test classes that inherit from this for override purposes |
| 104 // can call back into the DownloadManager. | 105 // can call back into the DownloadManager. |
| 105 content::DownloadManager* download_manager_; | 106 content::DownloadManager* download_manager_; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 typedef base::hash_map<extensions::CrxInstaller*, | 166 typedef base::hash_map<extensions::CrxInstaller*, |
| 166 content::DownloadOpenDelayedCallback> CrxInstallerMap; | 167 content::DownloadOpenDelayedCallback> CrxInstallerMap; |
| 167 CrxInstallerMap crx_installers_; | 168 CrxInstallerMap crx_installers_; |
| 168 | 169 |
| 169 content::NotificationRegistrar registrar_; | 170 content::NotificationRegistrar registrar_; |
| 170 | 171 |
| 171 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); | 172 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); |
| 172 }; | 173 }; |
| 173 | 174 |
| 174 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ | 175 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ |
| OLD | NEW |