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

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

Issue 1513413002: Enable "Hide Extension" option when "Save Link As" on the Mac Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits. Created 5 years 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
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698