Bug 482918 - Move HTML5 parsing off the main thread. r=bnewman.

This commit is contained in:
Henri Sivonen
2009-09-25 20:11:02 +03:00
parent 2cf48a3ad5
commit 87b1f6516d
13 changed files with 812 additions and 130 deletions

View File

@@ -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__