Bug 1468361 [wpt PR 11478] - Add test run time to wptreport.json format, a=testonly
[gecko.git] / parser / html / nsHtml5Module.h
blobdaaa5a9b56f15d1a7497fde53190ae019945df16
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef nsHtml5Module_h
6 #define nsHtml5Module_h
8 #include "nsIParser.h"
9 #include "nsIThread.h"
11 class nsHtml5Module
13 public:
14 static void InitializeStatics();
15 static void ReleaseStatics();
16 static already_AddRefed<nsIParser> NewHtml5Parser();
17 static nsresult Initialize(nsIParser* aParser,
18 nsIDocument* aDoc,
19 nsIURI* aURI,
20 nsISupports* aContainer,
21 nsIChannel* aChannel);
22 static nsIThread* GetStreamParserThread();
24 private:
25 #ifdef DEBUG
26 static bool sNsHtml5ModuleInitialized;
27 #endif
28 static nsIThread* sStreamParserThread;
29 static nsIThread* sMainThread;
32 #endif // nsHtml5Module_h