1 /* -*- Mode: C++; tab-width: 2; 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/. */ 5 6 #ifndef MailNewsDLF_h__ 7 #define MailNewsDLF_h__ 8 9 #include "nsIDocumentLoaderFactory.h" 10 #include "nsMimeTypes.h" 11 #include "nsMsgBaseCID.h" 12 13 namespace mozilla { 14 namespace mailnews { 15 16 /* 17 * This factory is a thin wrapper around the text/html loader factory. All it 18 * does is convert message/rfc822 to text/html and delegate the rest of the 19 * work to the text/html factory. 20 */ 21 class MailNewsDLF : public nsIDocumentLoaderFactory { 22 public: 23 MailNewsDLF(); 24 25 NS_DECL_ISUPPORTS 26 NS_DECL_NSIDOCUMENTLOADERFACTORY 27 28 private: 29 virtual ~MailNewsDLF(); 30 }; 31 } // namespace mailnews 32 } // namespace mozilla 33 34 #define MAILNEWSDLF_CATEGORIES \ 35 {"Gecko-Content-Viewers", MESSAGE_RFC822, NS_MAILNEWSDLF_CONTRACTID}, 36 37 #endif 38