Bumping manifests a=b2g-bump
[gecko.git] / netwerk / mime / nsMimeTypes.h
blobbb19c33360e0fbeaa3f307bca029a1d68a1d6ed8
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 /*
7 * This interface allows any module to access the encoder/decoder
8 * routines for RFC822 headers. This will allow any mail/news module
9 * to call on these routines.
11 #ifndef nsMimeTypes_h_
12 #define nsMimeTypes_h_
14 /* Defines for various MIME content-types and encodings.
15 Whenever you type in a content-type, you should use one of these defines
16 instead, to help catch typos, and make central management of them easier.
19 #define ANY_WILDCARD "*/*"
20 #define AUDIO_WILDCARD "audio/*"
21 #define IMAGE_WILDCARD "image/*"
23 #define APPLICATION_APPLEFILE "application/applefile"
24 #define APPLICATION_BINHEX "application/mac-binhex40"
25 #define APPLICATION_MACBINARY "application/x-macbinary"
26 #define APPLICATION_COMPRESS "application/x-compress"
27 #define APPLICATION_COMPRESS2 "application/compress"
28 #define APPLICATION_FORTEZZA_CKL "application/x-fortezza-ckl"
29 #define APPLICATION_FORTEZZA_KRL "application/x-fortezza-krl"
30 #define APPLICATION_GZIP "application/x-gzip"
31 #define APPLICATION_GZIP2 "application/gzip"
32 #define APPLICATION_GZIP3 "application/x-gunzip"
33 #define APPLICATION_ZIP "application/zip"
34 #define APPLICATION_HTTP_INDEX_FORMAT "application/http-index-format"
35 #define APPLICATION_ECMASCRIPT "application/ecmascript"
36 #define APPLICATION_JAVASCRIPT "application/javascript"
37 #define APPLICATION_XJAVASCRIPT "application/x-javascript"
38 #define APPLICATION_JSON "application/json"
39 #define APPLICATION_NETSCAPE_REVOCATION "application/x-netscape-revocation"
40 #define APPLICATION_NS_PROXY_AUTOCONFIG "application/x-ns-proxy-autoconfig"
41 #define APPLICATION_NS_JAVASCRIPT_AUTOCONFIG "application/x-javascript-config"
42 #define APPLICATION_OCTET_STREAM "application/octet-stream"
43 #define APPLICATION_PGP "application/pgp"
44 #define APPLICATION_PGP2 "application/x-pgp-message"
45 #define APPLICATION_POSTSCRIPT "application/postscript"
46 #define APPLICATION_PDF "application/pdf"
47 #define APPLICATION_PRE_ENCRYPTED "application/pre-encrypted"
48 #define APPLICATION_RDF "application/rdf+xml"
49 #define APPLICATION_UUENCODE "application/x-uuencode"
50 #define APPLICATION_UUENCODE2 "application/x-uue"
51 #define APPLICATION_UUENCODE3 "application/uuencode"
52 #define APPLICATION_UUENCODE4 "application/uue"
53 #define APPLICATION_X509_CA_CERT "application/x-x509-ca-cert"
54 #define APPLICATION_X509_SERVER_CERT "application/x-x509-server-cert"
55 #define APPLICATION_X509_EMAIL_CERT "application/x-x509-email-cert"
56 #define APPLICATION_X509_USER_CERT "application/x-x509-user-cert"
57 #define APPLICATION_X509_CRL "application/x-pkcs7-crl"
58 #define APPLICATION_XPKCS7_MIME "application/x-pkcs7-mime"
59 #define APPLICATION_PKCS7_MIME "application/pkcs7-mime"
60 #define APPLICATION_XPKCS7_SIGNATURE "application/x-pkcs7-signature"
61 #define APPLICATION_PKCS7_SIGNATURE "application/pkcs7-signature"
62 #define APPLICATION_WWW_FORM_URLENCODED "application/x-www-form-urlencoded"
63 #define APPLICATION_OLEOBJECT "application/oleobject"
64 #define APPLICATION_OLEOBJECT2 "application/x-oleobject"
65 #define APPLICATION_JAVAARCHIVE "application/java-archive"
66 #define APPLICATION_MARIMBA "application/marimba"
67 #define APPLICATION_XMARIMBA "application/x-marimba"
68 #define APPLICATION_XPINSTALL "application/x-xpinstall"
69 #define APPLICATION_XML "application/xml"
70 #define APPLICATION_XHTML_XML "application/xhtml+xml"
71 #define APPLICATION_XSLT_XML "application/xslt+xml"
72 #define APPLICATION_MATHML_XML "application/mathml+xml"
73 #define APPLICATION_RDF_XML "application/rdf+xml"
75 #define AUDIO_BASIC "audio/basic"
76 #define AUDIO_OGG "audio/ogg"
77 #define AUDIO_WAV "audio/x-wav"
78 #define AUDIO_WEBM "audio/webm"
79 #define AUDIO_MP3 "audio/mpeg"
80 #define AUDIO_MP4 "audio/mp4"
81 #define AUDIO_AMR "audio/amr"
82 #define AUDIO_3GPP "audio/3gpp"
83 #define AUDIO_MIDI "audio/x-midi"
85 #define BINARY_OCTET_STREAM "binary/octet-stream"
87 #define IMAGE_GIF "image/gif"
88 #define IMAGE_JPEG "image/jpeg"
89 #define IMAGE_JPG "image/jpg"
90 #define IMAGE_PJPEG "image/pjpeg"
91 #define IMAGE_PNG "image/png"
92 #define IMAGE_X_PNG "image/x-png"
93 #define IMAGE_PPM "image/x-portable-pixmap"
94 #define IMAGE_XBM "image/x-xbitmap"
95 #define IMAGE_XBM2 "image/x-xbm"
96 #define IMAGE_XBM3 "image/xbm"
97 #define IMAGE_ART "image/x-jg"
98 #define IMAGE_TIFF "image/tiff"
99 #define IMAGE_BMP "image/bmp"
100 #define IMAGE_BMP_MS "image/x-ms-bmp"
101 #define IMAGE_ICO "image/x-icon"
102 #define IMAGE_ICO_MS "image/vnd.microsoft.icon"
103 #define IMAGE_ICON_MS "image/icon"
104 #define IMAGE_MNG "video/x-mng"
105 #define IMAGE_JNG "image/x-jng"
106 #define IMAGE_SVG_XML "image/svg+xml"
108 #define MESSAGE_EXTERNAL_BODY "message/external-body"
109 #define MESSAGE_NEWS "message/news"
110 #define MESSAGE_RFC822 "message/rfc822"
112 #define MULTIPART_ALTERNATIVE "multipart/alternative"
113 #define MULTIPART_APPLEDOUBLE "multipart/appledouble"
114 #define MULTIPART_DIGEST "multipart/digest"
115 #define MULTIPART_FORM_DATA "multipart/form-data"
116 #define MULTIPART_HEADER_SET "multipart/header-set"
117 #define MULTIPART_MIXED "multipart/mixed"
118 #define MULTIPART_PARALLEL "multipart/parallel"
119 #define MULTIPART_SIGNED "multipart/signed"
120 #define MULTIPART_RELATED "multipart/related"
121 #define MULTIPART_MIXED_REPLACE "multipart/x-mixed-replace"
122 #define MULTIPART_BYTERANGES "multipart/byteranges"
124 #define SUN_ATTACHMENT "x-sun-attachment"
126 #define TEXT_ENRICHED "text/enriched"
127 #define TEXT_CALENDAR "text/calendar"
128 #define TEXT_HTML "text/html"
129 #define TEXT_MDL "text/mdl"
130 #define TEXT_PLAIN "text/plain"
131 #define TEXT_RICHTEXT "text/richtext"
132 #define TEXT_VCARD "text/vcard"
133 #define TEXT_CSS "text/css"
134 #define TEXT_JSSS "text/jsss"
135 #define TEXT_XML "text/xml"
136 #define TEXT_RDF "text/rdf"
137 #define TEXT_XUL "application/vnd.mozilla.xul+xml"
138 #define TEXT_ECMASCRIPT "text/ecmascript"
139 #define TEXT_JAVASCRIPT "text/javascript"
140 #define TEXT_XSL "text/xsl"
141 #define TEXT_EVENT_STREAM "text/event-stream"
142 #define TEXT_CACHE_MANIFEST "text/cache-manifest"
144 #define VIDEO_MPEG "video/mpeg"
145 #define VIDEO_MP4 "video/mp4"
146 #define VIDEO_RAW "video/x-raw-yuv"
147 #define VIDEO_OGG "video/ogg"
148 #define VIDEO_WEBM "video/webm"
149 #define VIDEO_3GPP "video/3gpp"
150 #define VIDEO_3GPP2 "video/3gpp2"
151 #define APPLICATION_OGG "application/ogg"
153 /* x-uuencode-apple-single. QuickMail made me do this. */
154 #define UUENCODE_APPLE_SINGLE "x-uuencode-apple-single"
156 /* The standard MIME message-content-encoding values:
158 #define ENCODING_7BIT "7bit"
159 #define ENCODING_8BIT "8bit"
160 #define ENCODING_BINARY "binary"
161 #define ENCODING_BASE64 "base64"
162 #define ENCODING_QUOTED_PRINTABLE "quoted-printable"
164 /* Some nonstandard encodings. Note that the names are TOTALLY RANDOM,
165 and code that looks for these in network-provided data must look for
166 all the possibilities.
168 #define ENCODING_COMPRESS "x-compress"
169 #define ENCODING_COMPRESS2 "compress"
170 #define ENCODING_ZLIB "x-zlib"
171 #define ENCODING_ZLIB2 "zlib"
172 #define ENCODING_GZIP "x-gzip"
173 #define ENCODING_GZIP2 "gzip"
174 #define ENCODING_DEFLATE "x-deflate"
175 #define ENCODING_DEFLATE2 "deflate"
176 #define ENCODING_UUENCODE "x-uuencode"
177 #define ENCODING_UUENCODE2 "x-uue"
178 #define ENCODING_UUENCODE3 "uuencode"
179 #define ENCODING_UUENCODE4 "uue"
180 #define ENCODING_YENCODE "x-yencode"
182 /* Some names of parameters that various MIME headers include.
184 #define PARAM_PROTOCOL "protocol"
185 #define PARAM_MICALG "micalg"
186 #define PARAM_MICALG_MD2 "rsa-md2"
187 #define PARAM_MICALG_MD5 "rsa-md5"
188 #define PARAM_MICALG_MD5_2 "md5"
189 #define PARAM_MICALG_SHA1 "sha1"
190 #define PARAM_MICALG_SHA1_2 "sha-1"
191 #define PARAM_MICALG_SHA1_3 "rsa-sha1"
192 #define PARAM_MICALG_SHA1_4 "rsa-sha-1"
193 #define PARAM_MICALG_SHA1_5 "rsa-sha"
194 #define PARAM_MICALG_SHA256 "sha-256"
195 #define PARAM_MICALG_SHA256_2 "sha256"
196 #define PARAM_MICALG_SHA256_3 "2.16.840.1.101.3.4.2.1"
197 #define PARAM_MICALG_SHA384 "sha-384"
198 #define PARAM_MICALG_SHA384_2 "sha384"
199 #define PARAM_MICALG_SHA384_3 "2.16.840.1.101.3.4.2.2"
200 #define PARAM_MICALG_SHA512 "sha-512"
201 #define PARAM_MICALG_SHA512_2 "sha512"
202 #define PARAM_MICALG_SHA512_3 "2.16.840.1.101.3.4.2.3"
203 #define PARAM_X_MAC_CREATOR "x-mac-creator"
204 #define PARAM_X_MAC_TYPE "x-mac-type"
205 #define PARAM_FORMAT "format"
207 #define UNKNOWN_CONTENT_TYPE "application/x-unknown-content-type"
208 #define APPLICATION_GUESS_FROM_EXT "application/x-vnd.mozilla.guess-from-ext"
209 #define VIEWSOURCE_CONTENT_TYPE "application/x-view-source"
211 #define APPLICATION_DIRECTORY "application/directory" /* text/x-vcard is synonym */
212 #define APPLICATION_CACHED_XUL "mozilla.application/cached-xul"
214 #endif /* nsMimeTypes_h_ */