1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/parser/html/nsHtml5Module.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#ifndef nsHtml5Module_h 1.9 +#define nsHtml5Module_h 1.10 + 1.11 +#include "nsIParser.h" 1.12 +#include "nsIThread.h" 1.13 + 1.14 +class nsHtml5Module 1.15 +{ 1.16 + public: 1.17 + static void InitializeStatics(); 1.18 + static void ReleaseStatics(); 1.19 + static already_AddRefed<nsIParser> NewHtml5Parser(); 1.20 + static nsresult Initialize(nsIParser* aParser, nsIDocument* aDoc, nsIURI* aURI, nsISupports* aContainer, nsIChannel* aChannel); 1.21 + static nsIThread* GetStreamParserThread(); 1.22 + static bool sOffMainThread; 1.23 + private: 1.24 +#ifdef DEBUG 1.25 + static bool sNsHtml5ModuleInitialized; 1.26 +#endif 1.27 + static nsIThread* sStreamParserThread; 1.28 + static nsIThread* sMainThread; 1.29 +}; 1.30 + 1.31 +#endif // nsHtml5Module_h