Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_INFO_H_ | |
| 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_INFO_H_ | |
| 7 | |
| 8 #include "base/files/file_path.h" | |
| 9 #include "content/public/browser/download_danger_type.h" | |
| 10 #include "content/public/browser/download_item.h" | |
| 11 | |
| 12 struct DownloadTargetInfo { | |
| 13 DownloadTargetInfo(); | |
| 14 ~DownloadTargetInfo(); | |
| 15 | |
| 16 base::FilePath target_path; | |
| 17 content::DownloadItem::TargetDisposition target_disposition; | |
| 18 content::DownloadDangerType danger_type; | |
| 19 base::FilePath intermediate_path; | |
|
Randy Smith (Not in Mondays)
2013/11/04 22:57:47
nit: There should probably be a sentence comment e
asanka
2013/11/05 21:31:39
Done.
| |
| 20 | |
| 21 // MIME type based on the file type of the download. This may be different | |
| 22 // from DownloadItem::GetMimeType() since the latter is based on the server | |
| 23 // response, and this one is based on the filename. | |
| 24 std::string mime_type; | |
| 25 | |
| 26 // Whether the |target_path| would be handled safely by the browser if it were | |
| 27 // to be opened with a file:// URL. This can be used later to decide how file | |
| 28 // opens should be handled. The file is considered to be handled safely if the | |
| 29 // filetype is supported by the renderer or a sandboxed plug-in. | |
| 30 bool is_filetype_handled_securely; | |
| 31 }; | |
| 32 | |
| 33 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_INFO_H_ | |
| OLD | NEW |