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
|
|
|
|
|
|
|
#include "nsIParser.h"
|
2009-09-25 21:11:02 +04:00
|
|
|
#include "nsIThread.h"
|
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();
|
|
|
|
static already_AddRefed<nsIParser> NewHtml5Parser();
|
2019-01-02 16:05:23 +03:00
|
|
|
static nsresult Initialize(nsIParser* aParser, mozilla::dom::Document* aDoc,
|
2018-03-16 18:26:06 +03:00
|
|
|
nsIURI* aURI, nsISupports* aContainer,
|
|
|
|
nsIChannel* aChannel);
|
|
|
|
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
|