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

Side by Side Diff: net/base/mime_util.cc

Issue 6993042: ffmpeg chromium glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include <map> 5 #include <map>
6 #include <string> 6 #include <string>
7 7
8 #include "net/base/mime_util.h" 8 #include "net/base/mime_util.h"
9 #include "net/base/platform_mime_util.h" 9 #include "net/base/platform_mime_util.h"
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 }; 86 };
87 87
88 static const MimeInfo primary_mappings[] = { 88 static const MimeInfo primary_mappings[] = {
89 { "text/html", "html,htm" }, 89 { "text/html", "html,htm" },
90 { "text/css", "css" }, 90 { "text/css", "css" },
91 { "text/xml", "xml" }, 91 { "text/xml", "xml" },
92 { "image/gif", "gif" }, 92 { "image/gif", "gif" },
93 { "image/jpeg", "jpeg,jpg" }, 93 { "image/jpeg", "jpeg,jpg" },
94 { "image/webp", "webp" }, 94 { "image/webp", "webp" },
95 { "image/png", "png" }, 95 { "image/png", "png" },
96 { "video/x-msvideo", "avi"},
96 { "video/mp4", "mp4,m4v" }, 97 { "video/mp4", "mp4,m4v" },
97 { "audio/x-m4a", "m4a" }, 98 { "audio/x-m4a", "m4a" },
98 { "audio/mp3", "mp3" }, 99 { "audio/mp3", "mp3" },
99 { "video/ogg", "ogv,ogm" }, 100 { "video/ogg", "ogv,ogm" },
100 { "audio/ogg", "ogg,oga" }, 101 { "audio/ogg", "ogg,oga" },
101 { "video/webm", "webm" }, 102 { "video/webm", "webm" },
102 { "audio/webm", "webm" }, 103 { "audio/webm", "webm" },
103 { "audio/wav", "wav" }, 104 { "audio/wav", "wav" },
104 { "application/xhtml+xml", "xhtml,xht" }, 105 { "application/xhtml+xml", "xhtml,xht" },
105 { "application/x-chrome-extension", "crx" }, 106 { "application/x-chrome-extension", "crx" },
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 733
733 GetExtensionsFromHardCodedMappings(secondary_mappings, 734 GetExtensionsFromHardCodedMappings(secondary_mappings,
734 arraysize(secondary_mappings), 735 arraysize(secondary_mappings),
735 mime_type, 736 mime_type,
736 &unique_extensions); 737 &unique_extensions);
737 738
738 HashSetToVector(&unique_extensions, extensions); 739 HashSetToVector(&unique_extensions, extensions);
739 } 740 }
740 741
741 } // namespace net 742 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698