tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsHtml5Module.h (727B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 #ifndef nsHtml5Module_h
      6 #define nsHtml5Module_h
      7 
      8 #include "nsIThread.h"
      9 
     10 class nsHtml5Parser;
     11 
     12 class nsHtml5Module {
     13  friend class nsHtml5ParserThreadTerminator;
     14 
     15 public:
     16  static void InitializeStatics();
     17  static void ReleaseStatics();
     18  static already_AddRefed<nsHtml5Parser> NewHtml5Parser();
     19  static already_AddRefed<nsISerialEventTarget> GetStreamParserEventTarget();
     20 
     21 private:
     22 #ifdef DEBUG
     23  static bool sNsHtml5ModuleInitialized;
     24 #endif
     25  static nsIThread* sStreamParserThread;
     26 };
     27 
     28 #endif  // nsHtml5Module_h