author Andrea Marchesini <>
Wed, 09 Jan 2019 12:16:04 +0100
changeset 510141 a11f752f828ceca6aed6cda69fc336f4624434fc
parent 509549 f0a91d36587266d7454a450c6044d573664fbed5
child 534200 0c1f4aee5de04bbef034b98f39c4e367b34cc5ba
permissions -rw-r--r--
Bug 1513298 - Fingerprinting url-classifier feature, r=dimi

/* 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 */

#ifndef nsHtml5Module_h
#define nsHtml5Module_h

#include "nsIParser.h"
#include "nsIThread.h"

class nsHtml5Module {
  static void InitializeStatics();
  static void ReleaseStatics();
  static already_AddRefed<nsIParser> NewHtml5Parser();
  static nsresult Initialize(nsIParser* aParser, mozilla::dom::Document* aDoc,
                             nsIURI* aURI, nsISupports* aContainer,
                             nsIChannel* aChannel);
  static nsIThread* GetStreamParserThread();

#ifdef DEBUG
  static bool sNsHtml5ModuleInitialized;
  static nsIThread* sStreamParserThread;
  static nsIThread* sMainThread;

#endif  // nsHtml5Module_h