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
|
|
|
|
|
|
|
#ifndef nsHtml5Module_h__
|
|
|
|
#define nsHtml5Module_h__
|
|
|
|
|
|
|
|
#include "nsIParser.h"
|
2009-09-25 17:11:02 +00:00
|
|
|
#include "nsIThread.h"
|
2009-06-28 22:44:22 +00:00
|
|
|
|
|
|
|
class nsHtml5Module
|
|
|
|
{
|
|
|
|
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);
|
2009-09-25 17:11:02 +00:00
|
|
|
static nsIThread* GetStreamParserThread();
|
2011-09-29 06:19:26 +00:00
|
|
|
static bool sOffMainThread;
|
2009-06-28 22:44:22 +00:00
|
|
|
private:
|
2009-09-25 17:11:02 +00:00
|
|
|
#ifdef DEBUG
|
2011-09-29 06:19:26 +00:00
|
|
|
static bool sNsHtml5ModuleInitialized;
|
2009-06-28 22:44:22 +00:00
|
|
|
#endif
|
2009-09-25 17:11:02 +00:00
|
|
|
static nsIThread* sStreamParserThread;
|
|
|
|
static nsIThread* sMainThread;
|
2009-06-28 22:44:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsHtml5Module_h__
|