2012-05-29 19:52:43 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2009-06-29 02:44:22 +04:00
|
|
|
|
2013-08-23 19:07:10 +04:00
|
|
|
#ifndef nsHtml5Module_h
|
|
|
|
#define nsHtml5Module_h
|
2009-06-29 02:44:22 +04:00
|
|
|
|
2009-09-25 21:11:02 +04:00
|
|
|
#include "nsIThread.h"
|
2009-06-29 02:44:22 +04:00
|
|
|
|
2019-05-14 22:46:25 +03:00
|
|
|
class nsHtml5Parser;
|
|
|
|
|
2009-06-29 02:44:22 +04:00
|
|
|
class nsHtml5Module {
|
2018-03-16 18:26:06 +03:00
|
|
|
public:
|
|
|
|
static void InitializeStatics();
|
|
|
|
static void ReleaseStatics();
|
2019-05-14 22:46:25 +03:00
|
|
|
static already_AddRefed<nsHtml5Parser> NewHtml5Parser();
|
2018-03-16 18:26:06 +03:00
|
|
|
static nsIThread* GetStreamParserThread();
|
|
|
|
|
|
|
|
private:
|
2009-09-25 21:11:02 +04:00
|
|
|
#ifdef DEBUG
|
2018-03-16 18:26:06 +03:00
|
|
|
static bool sNsHtml5ModuleInitialized;
|
2009-06-29 02:44:22 +04:00
|
|
|
#endif
|
2018-03-16 18:26:06 +03:00
|
|
|
static nsIThread* sStreamParserThread;
|
|
|
|
static nsIThread* sMainThread;
|
2009-06-29 02:44:22 +04:00
|
|
|
};
|
|
|
|
|
2013-08-23 19:07:10 +04:00
|
|
|
#endif // nsHtml5Module_h
|