michael@0: /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* michael@0: * This interface allows any module to access the encoder/decoder michael@0: * routines for RFC822 headers. This will allow any mail/news module michael@0: * to call on these routines. michael@0: */ michael@0: #ifndef nsMimeTypes_h_ michael@0: #define nsMimeTypes_h_ michael@0: michael@0: /* Defines for various MIME content-types and encodings. michael@0: Whenever you type in a content-type, you should use one of these defines michael@0: instead, to help catch typos, and make central management of them easier. michael@0: */ michael@0: michael@0: #define ANY_WILDCARD "*/*" michael@0: #define AUDIO_WILDCARD "audio/*" michael@0: #define IMAGE_WILDCARD "image/*" michael@0: michael@0: #define APPLICATION_APPLEFILE "application/applefile" michael@0: #define APPLICATION_BINHEX "application/mac-binhex40" michael@0: #define APPLICATION_MACBINARY "application/x-macbinary" michael@0: #define APPLICATION_COMPRESS "application/x-compress" michael@0: #define APPLICATION_COMPRESS2 "application/compress" michael@0: #define APPLICATION_FORTEZZA_CKL "application/x-fortezza-ckl" michael@0: #define APPLICATION_FORTEZZA_KRL "application/x-fortezza-krl" michael@0: #define APPLICATION_GZIP "application/x-gzip" michael@0: #define APPLICATION_GZIP2 "application/gzip" michael@0: #define APPLICATION_GZIP3 "application/x-gunzip" michael@0: #define APPLICATION_ZIP "application/zip" michael@0: #define APPLICATION_HTTP_INDEX_FORMAT "application/http-index-format" michael@0: #define APPLICATION_ECMASCRIPT "application/ecmascript" michael@0: #define APPLICATION_JAVASCRIPT "application/javascript" michael@0: #define APPLICATION_XJAVASCRIPT "application/x-javascript" michael@0: #define APPLICATION_JSON "application/json" michael@0: #define APPLICATION_NETSCAPE_REVOCATION "application/x-netscape-revocation" michael@0: #define APPLICATION_NS_PROXY_AUTOCONFIG "application/x-ns-proxy-autoconfig" michael@0: #define APPLICATION_NS_JAVASCRIPT_AUTOCONFIG "application/x-javascript-config" michael@0: #define APPLICATION_OCTET_STREAM "application/octet-stream" michael@0: #define APPLICATION_PGP "application/pgp" michael@0: #define APPLICATION_PGP2 "application/x-pgp-message" michael@0: #define APPLICATION_POSTSCRIPT "application/postscript" michael@0: #define APPLICATION_PDF "application/pdf" michael@0: #define APPLICATION_PRE_ENCRYPTED "application/pre-encrypted" michael@0: #define APPLICATION_RDF "application/rdf+xml" michael@0: #define APPLICATION_UUENCODE "application/x-uuencode" michael@0: #define APPLICATION_UUENCODE2 "application/x-uue" michael@0: #define APPLICATION_UUENCODE3 "application/uuencode" michael@0: #define APPLICATION_UUENCODE4 "application/uue" michael@0: #define APPLICATION_X509_CA_CERT "application/x-x509-ca-cert" michael@0: #define APPLICATION_X509_SERVER_CERT "application/x-x509-server-cert" michael@0: #define APPLICATION_X509_EMAIL_CERT "application/x-x509-email-cert" michael@0: #define APPLICATION_X509_USER_CERT "application/x-x509-user-cert" michael@0: #define APPLICATION_X509_CRL "application/x-pkcs7-crl" michael@0: #define APPLICATION_XPKCS7_MIME "application/x-pkcs7-mime" michael@0: #define APPLICATION_PKCS7_MIME "application/pkcs7-mime" michael@0: #define APPLICATION_XPKCS7_SIGNATURE "application/x-pkcs7-signature" michael@0: #define APPLICATION_PKCS7_SIGNATURE "application/pkcs7-signature" michael@0: #define APPLICATION_WWW_FORM_URLENCODED "application/x-www-form-urlencoded" michael@0: #define APPLICATION_OLEOBJECT "application/oleobject" michael@0: #define APPLICATION_OLEOBJECT2 "application/x-oleobject" michael@0: #define APPLICATION_JAVAARCHIVE "application/java-archive" michael@0: #define APPLICATION_MARIMBA "application/marimba" michael@0: #define APPLICATION_XMARIMBA "application/x-marimba" michael@0: #define APPLICATION_XPINSTALL "application/x-xpinstall" michael@0: #define APPLICATION_XML "application/xml" michael@0: #define APPLICATION_XHTML_XML "application/xhtml+xml" michael@0: #define APPLICATION_XSLT_XML "application/xslt+xml" michael@0: #define APPLICATION_MATHML_XML "application/mathml+xml" michael@0: #define APPLICATION_RDF_XML "application/rdf+xml" michael@0: michael@0: #define AUDIO_BASIC "audio/basic" michael@0: #define AUDIO_OGG "audio/ogg" michael@0: #define AUDIO_WAV "audio/x-wav" michael@0: #define AUDIO_WEBM "audio/webm" michael@0: #define AUDIO_MP3 "audio/mpeg" michael@0: #define AUDIO_MP4 "audio/mp4" michael@0: #define AUDIO_AMR "audio/amr" michael@0: #define AUDIO_3GPP "audio/3gpp" michael@0: #define AUDIO_MIDI "audio/x-midi" michael@0: michael@0: #define BINARY_OCTET_STREAM "binary/octet-stream" michael@0: michael@0: #define IMAGE_GIF "image/gif" michael@0: #define IMAGE_JPEG "image/jpeg" michael@0: #define IMAGE_JPG "image/jpg" michael@0: #define IMAGE_PJPEG "image/pjpeg" michael@0: #define IMAGE_PNG "image/png" michael@0: #define IMAGE_X_PNG "image/x-png" michael@0: #define IMAGE_PPM "image/x-portable-pixmap" michael@0: #define IMAGE_XBM "image/x-xbitmap" michael@0: #define IMAGE_XBM2 "image/x-xbm" michael@0: #define IMAGE_XBM3 "image/xbm" michael@0: #define IMAGE_ART "image/x-jg" michael@0: #define IMAGE_TIFF "image/tiff" michael@0: #define IMAGE_BMP "image/bmp" michael@0: #define IMAGE_BMP_MS "image/x-ms-bmp" michael@0: #define IMAGE_ICO "image/x-icon" michael@0: #define IMAGE_ICO_MS "image/vnd.microsoft.icon" michael@0: #define IMAGE_ICON_MS "image/icon" michael@0: #define IMAGE_MNG "video/x-mng" michael@0: #define IMAGE_JNG "image/x-jng" michael@0: #define IMAGE_SVG_XML "image/svg+xml" michael@0: michael@0: #define MESSAGE_EXTERNAL_BODY "message/external-body" michael@0: #define MESSAGE_NEWS "message/news" michael@0: #define MESSAGE_RFC822 "message/rfc822" michael@0: michael@0: #define MULTIPART_ALTERNATIVE "multipart/alternative" michael@0: #define MULTIPART_APPLEDOUBLE "multipart/appledouble" michael@0: #define MULTIPART_DIGEST "multipart/digest" michael@0: #define MULTIPART_FORM_DATA "multipart/form-data" michael@0: #define MULTIPART_HEADER_SET "multipart/header-set" michael@0: #define MULTIPART_MIXED "multipart/mixed" michael@0: #define MULTIPART_PARALLEL "multipart/parallel" michael@0: #define MULTIPART_SIGNED "multipart/signed" michael@0: #define MULTIPART_RELATED "multipart/related" michael@0: #define MULTIPART_MIXED_REPLACE "multipart/x-mixed-replace" michael@0: #define MULTIPART_BYTERANGES "multipart/byteranges" michael@0: michael@0: #define SUN_ATTACHMENT "x-sun-attachment" michael@0: michael@0: #define TEXT_ENRICHED "text/enriched" michael@0: #define TEXT_CALENDAR "text/calendar" michael@0: #define TEXT_HTML "text/html" michael@0: #define TEXT_MDL "text/mdl" michael@0: #define TEXT_PLAIN "text/plain" michael@0: #define TEXT_RICHTEXT "text/richtext" michael@0: #define TEXT_VCARD "text/vcard" michael@0: #define TEXT_CSS "text/css" michael@0: #define TEXT_JSSS "text/jsss" michael@0: #define TEXT_XML "text/xml" michael@0: #define TEXT_RDF "text/rdf" michael@0: #define TEXT_XUL "application/vnd.mozilla.xul+xml" michael@0: #define TEXT_ECMASCRIPT "text/ecmascript" michael@0: #define TEXT_JAVASCRIPT "text/javascript" michael@0: #define TEXT_XSL "text/xsl" michael@0: #define TEXT_EVENT_STREAM "text/event-stream" michael@0: #define TEXT_CACHE_MANIFEST "text/cache-manifest" michael@0: michael@0: #define VIDEO_MPEG "video/mpeg" michael@0: #define VIDEO_MP4 "video/mp4" michael@0: #define VIDEO_RAW "video/x-raw-yuv" michael@0: #define VIDEO_OGG "video/ogg" michael@0: #define VIDEO_WEBM "video/webm" michael@0: #define VIDEO_3GPP "video/3gpp" michael@0: #define APPLICATION_OGG "application/ogg" michael@0: michael@0: /* x-uuencode-apple-single. QuickMail made me do this. */ michael@0: #define UUENCODE_APPLE_SINGLE "x-uuencode-apple-single" michael@0: michael@0: /* The standard MIME message-content-encoding values: michael@0: */ michael@0: #define ENCODING_7BIT "7bit" michael@0: #define ENCODING_8BIT "8bit" michael@0: #define ENCODING_BINARY "binary" michael@0: #define ENCODING_BASE64 "base64" michael@0: #define ENCODING_QUOTED_PRINTABLE "quoted-printable" michael@0: michael@0: /* Some nonstandard encodings. Note that the names are TOTALLY RANDOM, michael@0: and code that looks for these in network-provided data must look for michael@0: all the possibilities. michael@0: */ michael@0: #define ENCODING_COMPRESS "x-compress" michael@0: #define ENCODING_COMPRESS2 "compress" michael@0: #define ENCODING_ZLIB "x-zlib" michael@0: #define ENCODING_ZLIB2 "zlib" michael@0: #define ENCODING_GZIP "x-gzip" michael@0: #define ENCODING_GZIP2 "gzip" michael@0: #define ENCODING_DEFLATE "x-deflate" michael@0: #define ENCODING_DEFLATE2 "deflate" michael@0: #define ENCODING_UUENCODE "x-uuencode" michael@0: #define ENCODING_UUENCODE2 "x-uue" michael@0: #define ENCODING_UUENCODE3 "uuencode" michael@0: #define ENCODING_UUENCODE4 "uue" michael@0: #define ENCODING_YENCODE "x-yencode" michael@0: michael@0: /* Some names of parameters that various MIME headers include. michael@0: */ michael@0: #define PARAM_PROTOCOL "protocol" michael@0: #define PARAM_MICALG "micalg" michael@0: #define PARAM_MICALG_MD2 "rsa-md2" michael@0: #define PARAM_MICALG_MD5 "rsa-md5" michael@0: #define PARAM_MICALG_MD5_2 "md5" michael@0: #define PARAM_MICALG_SHA1 "sha1" michael@0: #define PARAM_MICALG_SHA1_2 "sha-1" michael@0: #define PARAM_MICALG_SHA1_3 "rsa-sha1" michael@0: #define PARAM_MICALG_SHA1_4 "rsa-sha-1" michael@0: #define PARAM_MICALG_SHA1_5 "rsa-sha" michael@0: #define PARAM_MICALG_SHA256 "sha-256" michael@0: #define PARAM_MICALG_SHA256_2 "sha256" michael@0: #define PARAM_MICALG_SHA256_3 "2.16.840.1.101.3.4.2.1" michael@0: #define PARAM_MICALG_SHA384 "sha-384" michael@0: #define PARAM_MICALG_SHA384_2 "sha384" michael@0: #define PARAM_MICALG_SHA384_3 "2.16.840.1.101.3.4.2.2" michael@0: #define PARAM_MICALG_SHA512 "sha-512" michael@0: #define PARAM_MICALG_SHA512_2 "sha512" michael@0: #define PARAM_MICALG_SHA512_3 "2.16.840.1.101.3.4.2.3" michael@0: #define PARAM_X_MAC_CREATOR "x-mac-creator" michael@0: #define PARAM_X_MAC_TYPE "x-mac-type" michael@0: #define PARAM_FORMAT "format" michael@0: michael@0: #define UNKNOWN_CONTENT_TYPE "application/x-unknown-content-type" michael@0: #define APPLICATION_GUESS_FROM_EXT "application/x-vnd.mozilla.guess-from-ext" michael@0: #define VIEWSOURCE_CONTENT_TYPE "application/x-view-source" michael@0: michael@0: #define APPLICATION_DIRECTORY "application/directory" /* text/x-vcard is synonym */ michael@0: #define APPLICATION_CACHED_XUL "mozilla.application/cached-xul" michael@0: michael@0: #endif /* nsMimeTypes_h_ */