Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: chrome/browser/download/chrome_download_manager_delegate.h

Issue 2060923002: Neutralize dangerous subresource files during Save Page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@save-package-cleanup-1
Patch Set: Catch up with ToT Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698