Bug 482918 - Move HTML5 parsing off the main thread. r=bnewman.
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#define nsHtml5Module_h__
|
||||
|
||||
#include "nsIParser.h"
|
||||
#include "nsIThread.h"
|
||||
|
||||
class nsHtml5Module
|
||||
{
|
||||
@@ -47,11 +48,15 @@ class nsHtml5Module
|
||||
static void ReleaseStatics();
|
||||
static already_AddRefed<nsIParser> NewHtml5Parser();
|
||||
static nsresult Initialize(nsIParser* aParser, nsIDocument* aDoc, nsIURI* aURI, nsISupports* aContainer, nsIChannel* aChannel);
|
||||
static nsIThread* GetStreamParserThread();
|
||||
static PRBool sEnabled;
|
||||
#ifdef DEBUG
|
||||
static PRBool sOffMainThread;
|
||||
private:
|
||||
#ifdef DEBUG
|
||||
static PRBool sNsHtml5ModuleInitialized;
|
||||
#endif
|
||||
static nsIThread* sStreamParserThread;
|
||||
static nsIThread* sMainThread;
|
||||
};
|
||||
|
||||
#endif // nsHtml5Module_h__
|
||||
|
||||
Reference in New Issue
Block a user