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

Unified Diff: net/base/mime_sniffer.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 | « chrome/browser/media_galleries/fileapi/media_path_filter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mime_sniffer.cc
===================================================================
--- net/base/mime_sniffer.cc (revision 201783)
+++ net/base/mime_sniffer.cc (working copy)
@@ -240,6 +240,21 @@
MAGIC_NUMBER("application/x-shockwave-flash", "CWS")
MAGIC_NUMBER("application/x-shockwave-flash", "FWS")
MAGIC_NUMBER("video/x-flv", "FLV")
+
+ // RAW image types.
+ MAGIC_NUMBER("image/x-canon-cr2", "II\x2a\x00\x10\x00\x00\x00CR")
+ MAGIC_NUMBER("image/x-canon-crw", "II\x1a\x00\x00\x00HEAPCCDR")
+ MAGIC_NUMBER("image/x-minolta-mrw", "\x00MRM")
+ MAGIC_NUMBER("image/x-olympus-orf", "MMOR") // big-endian
+ MAGIC_NUMBER("image/x-olympus-orf", "IIRO") // little-endian
+ MAGIC_NUMBER("image/x-olympus-orf", "IIRS") // little-endian
+ MAGIC_NUMBER("image/x-fuji-raf", "FUJIFILMCCD-RAW ")
+ MAGIC_NUMBER("image/x-panasonic-raw",
+ "IIU\x00\x08\x00\x00\x00") // Panasonic .raw
+ MAGIC_NUMBER("image/x-panasonic-raw",
+ "IIU\x00\x18\x00\x00\x00") // Panasonic .rw2
+ MAGIC_NUMBER("image/x-phaseone-raw", "MMMMRaw")
+ MAGIC_NUMBER("image/x-x3f", "FOVb")
};
// Our HTML sniffer differs slightly from Mozilla. For example, Mozilla will
« no previous file with comments | « chrome/browser/media_galleries/fileapi/media_path_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698