Bug 1867190 - Add prefs for PHC probablities r=glandium
[gecko.git] / layout / build / nsLayoutModule.h
blob67003186d0b8c763c001112b7256cbbd2c361a23
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/. */
7 #ifndef nsLayoutModule_h
8 #define nsLayoutModule_h
10 #include "nscore.h"
11 #include "nsID.h"
12 #include "mozilla/AlreadyAddRefed.h"
14 class nsIPresentationService;
15 class nsISupports;
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();
22 void nsLayoutModuleDtor();
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);
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);
37 already_AddRefed<nsIPresentationService> NS_CreatePresentationService();
39 #endif // nsLayoutModule_h