Bug 1845715 - Check for failure when getting RegExp match result template r=iain
[gecko.git] / parser / html / nsHtml5Module.h
blob950de37e534c53569469387e281ffa49191a78bd
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 "nsIThread.h"
10 class nsHtml5Parser;
12 class nsHtml5Module {
13 friend class nsHtml5ParserThreadTerminator;
15 public:
16 static void InitializeStatics();
17 static void ReleaseStatics();
18 static already_AddRefed<nsHtml5Parser> NewHtml5Parser();
19 static already_AddRefed<nsISerialEventTarget> GetStreamParserEventTarget();
21 private:
22 #ifdef DEBUG
23 static bool sNsHtml5ModuleInitialized;
24 #endif
25 static nsIThread* sStreamParserThread;
28 #endif // nsHtml5Module_h