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

Unified Diff: content/browser/download/file_metadata_mac.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 side-by-side diff with in-line comments
Download patch
Index: content/browser/download/file_metadata_mac.h
diff --git a/content/browser/download/file_metadata_mac.h b/content/browser/download/file_metadata_mac.h
index 19a3f07ff62a842c0550c45b450d741033b8f9e1..fc24e7f767b746e966ca613d78cbdb4285031225 100644
--- a/content/browser/download/file_metadata_mac.h
+++ b/content/browser/download/file_metadata_mac.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_BROWSER_DOWNLOAD_FILE_METADATA_MAC_H_
#define CONTENT_BROWSER_DOWNLOAD_FILE_METADATA_MAC_H_
+#include "content/common/content_export.h"
+
class GURL;
namespace base {
@@ -26,6 +28,11 @@ void AddOriginMetadataToFile(const base::FilePath& file, const GURL& source,
void AddQuarantineMetadataToFile(const base::FilePath& file, const GURL& source,
const GURL& referrer);
+// Sets or clears the NSFileExtensionHidden property on |file|, which shows or
+// hides |file|'s file extension in the Finder.
+CONTENT_EXPORT void SetExtensionHiddenForFile(const base::FilePath& file,
+ bool hidden);
+
} // namespace content
#endif // CONTENT_BROWSER_DOWNLOAD_FILE_METADATA_MAC_H_
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/browser/download/file_metadata_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698