2012-05-29 15:52:43 +00: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-28 22:44:22 +00:00
|
|
|
|
2013-08-23 15:07:10 +00:00
|
|
|
#ifndef nsHtml5Module_h
|
|
|
|
#define nsHtml5Module_h
|
2009-06-28 22:44:22 +00:00
|
|
|
|
|
|
|
#include "nsIParser.h"
|
2009-09-25 17:11:02 +00:00
|
|
|
#include "nsIThread.h"
|
2009-06-28 22:44:22 +00:00
|
|
|
|
|
|
|
class nsHtml5Module
|
|
|
|
{
|
2018-03-16 15:26:06 +00:00
|
|
|
public:
|
|
|
|
static void InitializeStatics();
|
|
|
|
static void ReleaseStatics();
|
|
|
|
static already_AddRefed<nsIParser> NewHtml5Parser();
|
|
|
|
static nsresult Initialize(nsIParser* aParser,
|
|
|
|
nsIDocument* aDoc,
|
|
|
|
nsIURI* aURI,
|
|
|
|
nsISupports* aContainer,
|
|
|
|
nsIChannel* aChannel);
|
|
|
|
static nsIThread* GetStreamParserThread();
|
|
|
|
|
|
|
|
private:
|
2009-09-25 17:11:02 +00:00
|
|
|
#ifdef DEBUG
|
2018-03-16 15:26:06 +00:00
|
|
|
static bool sNsHtml5ModuleInitialized;
|
2009-06-28 22:44:22 +00:00
|
|
|
#endif
|
2018-03-16 15:26:06 +00:00
|
|
|
static nsIThread* sStreamParserThread;
|
|
|
|
static nsIThread* sMainThread;
|
2009-06-28 22:44:22 +00:00
|
|
|
};
|
|
|
|
|
2013-08-23 15:07:10 +00:00
|
|
|
#endif // nsHtml5Module_h
|