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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 void GetSaveDir(content::BrowserContext* browser_context, | 73 void GetSaveDir(content::BrowserContext* browser_context, |
74 base::FilePath* website_save_dir, | 74 base::FilePath* website_save_dir, |
75 base::FilePath* download_save_dir, | 75 base::FilePath* download_save_dir, |
76 bool* skip_dir_check) override; | 76 bool* skip_dir_check) override; |
77 void ChooseSavePath( | 77 void ChooseSavePath( |
78 content::WebContents* web_contents, | 78 content::WebContents* web_contents, |
79 const base::FilePath& suggested_path, | 79 const base::FilePath& suggested_path, |
80 const base::FilePath::StringType& default_extension, | 80 const base::FilePath::StringType& default_extension, |
81 bool can_save_as_complete, | 81 bool can_save_as_complete, |
82 const content::SavePackagePathPickedCallback& callback) override; | 82 const content::SavePackagePathPickedCallback& callback) override; |
| 83 void SanitizeSavePackageResourceName(base::FilePath* filename) override; |
83 void OpenDownload(content::DownloadItem* download) override; | 84 void OpenDownload(content::DownloadItem* download) override; |
84 void ShowDownloadInShell(content::DownloadItem* download) override; | 85 void ShowDownloadInShell(content::DownloadItem* download) override; |
85 void CheckForFileExistence( | 86 void CheckForFileExistence( |
86 content::DownloadItem* download, | 87 content::DownloadItem* download, |
87 const content::CheckForFileExistenceCallback& callback) override; | 88 const content::CheckForFileExistenceCallback& callback) override; |
88 std::string ApplicationClientIdForFileScanning() const override; | 89 std::string ApplicationClientIdForFileScanning() const override; |
89 | 90 |
90 // Opens a download using the platform handler. DownloadItem::OpenDownload, | 91 // Opens a download using the platform handler. DownloadItem::OpenDownload, |
91 // which ends up being handled by OpenDownload(), will open a download in the | 92 // which ends up being handled by OpenDownload(), will open a download in the |
92 // browser if doing so is preferred. | 93 // browser if doing so is preferred. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 #endif | 173 #endif |
173 | 174 |
174 content::NotificationRegistrar registrar_; | 175 content::NotificationRegistrar registrar_; |
175 | 176 |
176 base::WeakPtrFactory<ChromeDownloadManagerDelegate> weak_ptr_factory_; | 177 base::WeakPtrFactory<ChromeDownloadManagerDelegate> weak_ptr_factory_; |
177 | 178 |
178 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); | 179 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); |
179 }; | 180 }; |
180 | 181 |
181 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ | 182 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ |
OLD | NEW |