tor-browser

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

nsLayoutModule.h (1648B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef nsLayoutModule_h
      8 #define nsLayoutModule_h
      9 
     10 #include "mozilla/AlreadyAddRefed.h"
     11 #include "nsID.h"
     12 #include "nscore.h"
     13 
     14 class nsIPresentationService;
     15 class nsISupports;
     16 
     17 // This function initializes various layout statics, as well as XPConnect.
     18 // It should be called only once, and before the first time any XPCOM module in
     19 // nsLayoutModule is used.
     20 void nsLayoutModuleInitialize();
     21 
     22 void nsLayoutModuleDtor();
     23 
     24 nsresult CreateXMLContentSerializer(const nsID& aIID, void** aResult);
     25 nsresult CreateHTMLContentSerializer(const nsID& aIID, void** aResult);
     26 nsresult CreateXHTMLContentSerializer(const nsID& aIID, void** aResult);
     27 nsresult CreatePlainTextSerializer(const nsID& aIID, void** aResult);
     28 nsresult CreateContentPolicy(const nsID& aIID, void** aResult);
     29 nsresult CreateGlobalMessageManager(const nsID& aIID, void** aResult);
     30 nsresult CreateParentMessageManager(const nsID& aIID, void** aResult);
     31 nsresult CreateChildMessageManager(const nsID& aIID, void** aResult);
     32 
     33 nsresult Construct_nsIScriptSecurityManager(const nsIID& aIID, void** aResult);
     34 nsresult LocalStorageManagerConstructor(const nsIID& aIID, void** aResult);
     35 nsresult SessionStorageManagerConstructor(const nsIID& aIID, void** aResult);
     36 
     37 already_AddRefed<nsIPresentationService> NS_CreatePresentationService();
     38 
     39 #endif  // nsLayoutModule_h