Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / netwerk / mime / public / nsMimeTypes.h
blobc957c5ba0579990163da61f5744598d7fb73e8d3
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
15 * The Original Code is mozilla.org code.
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998
20 * the Initial Developer. All Rights Reserved.
22 * Contributor(s):
24 * Alternatively, the contents of this file may be used under the terms of
25 * either the GNU General Public License Version 2 or later (the "GPL"), or
26 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 * in which case the provisions of the GPL or the LGPL are applicable instead
28 * of those above. If you wish to allow use of your version of this file only
29 * under the terms of either the GPL or the LGPL, and not to allow others to
30 * use your version of this file under the terms of the MPL, indicate your
31 * decision by deleting the provisions above and replace them with the notice
32 * and other provisions required by the GPL or the LGPL. If you do not delete
33 * the provisions above, a recipient may use your version of this file under
34 * the terms of any one of the MPL, the GPL or the LGPL.
36 * ***** END LICENSE BLOCK ***** */
39 * This interface allows any module to access the encoder/decoder
40 * routines for RFC822 headers. This will allow any mail/news module
41 * to call on these routines.
43 #ifndef nsMimeTypes_h_
44 #define nsMimeTypes_h_
46 /* Defines for various MIME content-types and encodings.
47 Whenever you type in a content-type, you should use one of these defines
48 instead, to help catch typos, and make central management of them easier.
51 #define AUDIO_WILDCARD "audio/*"
52 #define IMAGE_WILDCARD "image/*"
54 #define APPLICATION_APPLEFILE "application/applefile"
55 #define APPLICATION_BINHEX "application/mac-binhex40"
56 #define APPLICATION_MACBINARY "application/x-macbinary"
57 #define APPLICATION_COMPRESS "application/x-compress"
58 #define APPLICATION_COMPRESS2 "application/compress"
59 #define APPLICATION_FORTEZZA_CKL "application/x-fortezza-ckl"
60 #define APPLICATION_FORTEZZA_KRL "application/x-fortezza-krl"
61 #define APPLICATION_GZIP "application/x-gzip"
62 #define APPLICATION_GZIP2 "application/gzip"
63 #define APPLICATION_GZIP3 "application/x-gunzip"
64 #define APPLICATION_ZIP "application/zip"
65 #define APPLICATION_HTTP_INDEX_FORMAT "application/http-index-format"
66 #define APPLICATION_JAVASCRIPT "application/x-javascript"
67 #define APPLICATION_NETSCAPE_REVOCATION "application/x-netscape-revocation"
68 #define APPLICATION_NS_PROXY_AUTOCONFIG "application/x-ns-proxy-autoconfig"
69 #define APPLICATION_NS_JAVASCRIPT_AUTOCONFIG "application/x-javascript-config"
70 #define APPLICATION_OCTET_STREAM "application/octet-stream"
71 #define APPLICATION_PGP "application/pgp"
72 #define APPLICATION_PGP2 "application/x-pgp-message"
73 #define APPLICATION_POSTSCRIPT "application/postscript"
74 #define APPLICATION_PDF "application/pdf"
75 #define APPLICATION_PRE_ENCRYPTED "application/pre-encrypted"
76 #define APPLICATION_RDF "application/rdf+xml"
77 #define APPLICATION_UUENCODE "application/x-uuencode"
78 #define APPLICATION_UUENCODE2 "application/x-uue"
79 #define APPLICATION_UUENCODE3 "application/uuencode"
80 #define APPLICATION_UUENCODE4 "application/uue"
81 #define APPLICATION_X509_CA_CERT "application/x-x509-ca-cert"
82 #define APPLICATION_X509_SERVER_CERT "application/x-x509-server-cert"
83 #define APPLICATION_X509_EMAIL_CERT "application/x-x509-email-cert"
84 #define APPLICATION_X509_USER_CERT "application/x-x509-user-cert"
85 #define APPLICATION_X509_CRL "application/x-pkcs7-crl"
86 #define APPLICATION_XPKCS7_MIME "application/x-pkcs7-mime"
87 #define APPLICATION_PKCS7_MIME "application/pkcs7-mime"
88 #define APPLICATION_XPKCS7_SIGNATURE "application/x-pkcs7-signature"
89 #define APPLICATION_PKCS7_SIGNATURE "application/pkcs7-signature"
90 #define APPLICATION_WWW_FORM_URLENCODED "application/x-www-form-urlencoded"
91 #define APPLICATION_OLEOBJECT "application/oleobject"
92 #define APPLICATION_OLEOBJECT2 "application/x-oleobject"
93 #define APPLICATION_JAVAARCHIVE "application/java-archive"
94 #define APPLICATION_MARIMBA "application/marimba"
95 #define APPLICATION_XMARIMBA "application/x-marimba"
96 #define APPLICATION_XPINSTALL "application/x-xpinstall"
98 #define AUDIO_BASIC "audio/basic"
100 #define IMAGE_GIF "image/gif"
101 #define IMAGE_JPG "image/jpeg"
102 #define IMAGE_PJPG "image/pjpeg"
103 #define IMAGE_PNG "image/png"
104 #define IMAGE_PPM "image/x-portable-pixmap"
105 #define IMAGE_XBM "image/x-xbitmap"
106 #define IMAGE_XBM2 "image/x-xbm"
107 #define IMAGE_XBM3 "image/xbm"
108 #define IMAGE_ART "image/x-jg"
109 #define IMAGE_TIFF "image/tiff"
110 #define IMAGE_BMP "image/bmp"
111 #define IMAGE_ICO "image/x-icon"
112 #define IMAGE_MNG "video/x-mng"
113 #define IMAGE_JNG "image/x-jng"
115 #define MESSAGE_EXTERNAL_BODY "message/external-body"
116 #define MESSAGE_NEWS "message/news"
117 #define MESSAGE_RFC822 "message/rfc822"
119 #define MULTIPART_ALTERNATIVE "multipart/alternative"
120 #define MULTIPART_APPLEDOUBLE "multipart/appledouble"
121 #define MULTIPART_DIGEST "multipart/digest"
122 #define MULTIPART_HEADER_SET "multipart/header-set"
123 #define MULTIPART_MIXED "multipart/mixed"
124 #define MULTIPART_PARALLEL "multipart/parallel"
125 #define MULTIPART_SIGNED "multipart/signed"
126 #define MULTIPART_RELATED "multipart/related"
127 #define MULTIPART_MIXED_REPLACE "multipart/x-mixed-replace"
128 #define MULTIPART_BYTERANGES "multipart/byteranges"
130 #define SUN_ATTACHMENT "x-sun-attachment"
132 #define TEXT_ENRICHED "text/enriched"
133 #define TEXT_CALENDAR "text/calendar"
134 #define TEXT_HTML "text/html"
135 #define TEXT_MDL "text/mdl"
136 #define TEXT_PLAIN "text/plain"
137 #define TEXT_RICHTEXT "text/richtext"
138 #define TEXT_VCARD "text/x-vcard"
139 #define TEXT_CSS "text/css"
140 #define TEXT_JSSS "text/jsss"
141 #define TEXT_XML "text/xml"
142 #define TEXT_RDF "text/rdf"
143 #define TEXT_XUL "application/vnd.mozilla.xul+xml"
145 #define VIDEO_MPEG "video/mpeg"
147 /* x-uuencode-apple-single. QuickMail made me do this. */
148 #define UUENCODE_APPLE_SINGLE "x-uuencode-apple-single"
150 /* The standard MIME message-content-encoding values:
152 #define ENCODING_7BIT "7bit"
153 #define ENCODING_8BIT "8bit"
154 #define ENCODING_BINARY "binary"
155 #define ENCODING_BASE64 "base64"
156 #define ENCODING_QUOTED_PRINTABLE "quoted-printable"
158 /* Some nonstandard encodings. Note that the names are TOTALLY RANDOM,
159 and code that looks for these in network-provided data must look for
160 all the possibilities.
162 #define ENCODING_COMPRESS "x-compress"
163 #define ENCODING_COMPRESS2 "compress"
164 #define ENCODING_ZLIB "x-zlib"
165 #define ENCODING_ZLIB2 "zlib"
166 #define ENCODING_GZIP "x-gzip"
167 #define ENCODING_GZIP2 "gzip"
168 #define ENCODING_DEFLATE "x-deflate"
169 #define ENCODING_DEFLATE2 "deflate"
170 #define ENCODING_UUENCODE "x-uuencode"
171 #define ENCODING_UUENCODE2 "x-uue"
172 #define ENCODING_UUENCODE3 "uuencode"
173 #define ENCODING_UUENCODE4 "uue"
174 #define ENCODING_YENCODE "x-yencode"
176 /* Some names of parameters that various MIME headers include.
178 #define PARAM_PROTOCOL "protocol"
179 #define PARAM_MICALG "micalg"
180 #define PARAM_MICALG_MD2 "rsa-md2"
181 #define PARAM_MICALG_MD5 "rsa-md5"
182 #define PARAM_MICALG_MD5_2 "md5"
183 #define PARAM_MICALG_SHA1 "sha1"
184 #define PARAM_MICALG_SHA1_2 "sha-1"
185 #define PARAM_MICALG_SHA1_3 "rsa-sha1"
186 #define PARAM_MICALG_SHA1_4 "rsa-sha-1"
187 #define PARAM_MICALG_SHA1_5 "rsa-sha"
188 #define PARAM_X_MAC_CREATOR "x-mac-creator"
189 #define PARAM_X_MAC_TYPE "x-mac-type"
190 #define PARAM_FORMAT "format"
192 #define UNKNOWN_CONTENT_TYPE "application/x-unknown-content-type"
193 #define APPLICATION_GUESS_FROM_EXT "application/x-vnd.mozilla.guess-from-ext"
194 #define VIEWSOURCE_CONTENT_TYPE "application/x-view-source"
196 #define APPLICATION_DIRECTORY "application/directory" /* text/x-vcard is synonym */
198 #endif /* nsMimeTypes_h_ */