OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_DOWNLOAD_TARGET_INFO_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_INFO_H_ |
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_INFO_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_INFO_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "content/public/browser/download_danger_type.h" | 9 #include "content/public/browser/download_danger_type.h" |
10 #include "content/public/browser/download_item.h" | 10 #include "content/public/browser/download_item.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // MIME type based on the file type of the download. This may be different | 46 // MIME type based on the file type of the download. This may be different |
47 // from DownloadItem::GetMimeType() since the latter is based on the server | 47 // from DownloadItem::GetMimeType() since the latter is based on the server |
48 // response, and this one is based on the filename. | 48 // response, and this one is based on the filename. |
49 std::string mime_type; | 49 std::string mime_type; |
50 | 50 |
51 // Whether the |target_path| would be handled safely by the browser if it were | 51 // Whether the |target_path| would be handled safely by the browser if it were |
52 // to be opened with a file:// URL. This can be used later to decide how file | 52 // to be opened with a file:// URL. This can be used later to decide how file |
53 // opens should be handled. The file is considered to be handled safely if the | 53 // opens should be handled. The file is considered to be handled safely if the |
54 // filetype is supported by the renderer or a sandboxed plugin. | 54 // filetype is supported by the renderer or a sandboxed plugin. |
55 bool is_filetype_handled_safely; | 55 bool is_filetype_handled_safely; |
| 56 |
| 57 // Whether |target_path| should be configured to hide its file extesnion in |
| 58 // the Finder (MacOSX). |
| 59 bool hide_file_extension; |
56 }; | 60 }; |
57 | 61 |
58 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_INFO_H_ | 62 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_INFO_H_ |
OLD | NEW |