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: #ifndef nsHtml5Module_h michael@0: #define nsHtml5Module_h michael@0: michael@0: #include "nsIParser.h" michael@0: #include "nsIThread.h" michael@0: michael@0: class nsHtml5Module michael@0: { michael@0: public: michael@0: static void InitializeStatics(); michael@0: static void ReleaseStatics(); michael@0: static already_AddRefed NewHtml5Parser(); michael@0: static nsresult Initialize(nsIParser* aParser, nsIDocument* aDoc, nsIURI* aURI, nsISupports* aContainer, nsIChannel* aChannel); michael@0: static nsIThread* GetStreamParserThread(); michael@0: static bool sOffMainThread; michael@0: private: michael@0: #ifdef DEBUG michael@0: static bool sNsHtml5ModuleInitialized; michael@0: #endif michael@0: static nsIThread* sStreamParserThread; michael@0: static nsIThread* sMainThread; michael@0: }; michael@0: michael@0: #endif // nsHtml5Module_h