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

Unified Diff: chrome/browser/media_galleries/fileapi/media_path_filter.cc

Issue 15875004: Add more RAW picture formats to the media galleries extension filter. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: add phase one raw files Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/base/mime_sniffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media_galleries/fileapi/media_path_filter.cc
===================================================================
--- chrome/browser/media_galleries/fileapi/media_path_filter.cc (revision 201783)
+++ chrome/browser/media_galleries/fileapi/media_path_filter.cc (working copy)
@@ -15,17 +15,39 @@
namespace {
const base::FilePath::CharType* const kExtraSupportedExtensions[] = {
- // RAW Picture file types.
+ // RAW picture file types.
// Some of which are just image/tiff.
FILE_PATH_LITERAL("3fr"), // (Hasselblad)
FILE_PATH_LITERAL("arw"), // (Sony)
+ FILE_PATH_LITERAL("dcr"), // (Kodak)
FILE_PATH_LITERAL("dng"), // (Adobe, Leica, Ricoh, Samsung)
+ FILE_PATH_LITERAL("erf"), // (Epson)
+ FILE_PATH_LITERAL("k25"), // (Kodak)
+ FILE_PATH_LITERAL("kdc"), // (Kodak)
FILE_PATH_LITERAL("mef"), // (Mamiya)
+ FILE_PATH_LITERAL("mos"), // (Leaf)
FILE_PATH_LITERAL("nef"), // (Nikon)
FILE_PATH_LITERAL("pef"), // (Pentax)
FILE_PATH_LITERAL("sr2"), // (Sony)
FILE_PATH_LITERAL("srf"), // (Sony)
+ // More RAW picture file types.
+ FILE_PATH_LITERAL("cr2"), // (Canon - image/x-canon-cr2)
+ // Note, some .crw files are just TIFFs.
+ FILE_PATH_LITERAL("crw"), // (Canon - image/x-canon-crw)
+ FILE_PATH_LITERAL("mrw"), // (Minolta - image/x-minolta-mrw)
+ FILE_PATH_LITERAL("orf"), // (Olympus - image/x-olympus-orf)
+ FILE_PATH_LITERAL("raf"), // (Fuji)
+ FILE_PATH_LITERAL("rw2"), // (Panasonic - image/x-panasonic-raw)
+ FILE_PATH_LITERAL("x3f"), // (Sigma - image/x-x3f)
+
+ // There exists many file formats all with the .raw extension. For now, only
+ // the following types are supported:
+ // - TIFF files with .raw extension - image/tiff
+ // - Leica / Panasonic RAW files - image/x-panasonic-raw
+ // - Phase One RAW files - image/x-phaseone-raw
+ FILE_PATH_LITERAL("raw"),
+
// Video files types.
FILE_PATH_LITERAL("3gp"),
FILE_PATH_LITERAL("3gpp"),
« no previous file with comments | « no previous file | net/base/mime_sniffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698