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
12 #include "mozilla/AlreadyAddRefed.h"
14 class nsIPresentationService
;
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(nsISupports
* aOuter
, const nsID
& aIID
,
26 nsresult
CreateHTMLContentSerializer(nsISupports
* aOuter
, const nsID
& aIID
,
28 nsresult
CreateXHTMLContentSerializer(nsISupports
* aOuter
, const nsID
& aIID
,
30 nsresult
CreatePlainTextSerializer(nsISupports
* aOuter
, const nsID
& aIID
,
32 nsresult
CreateContentPolicy(nsISupports
* aOuter
, const nsID
& aIID
,
34 nsresult
CreateGlobalMessageManager(nsISupports
* aOuter
, const nsID
& aIID
,
36 nsresult
CreateParentMessageManager(nsISupports
* aOuter
, const nsID
& aIID
,
38 nsresult
CreateChildMessageManager(nsISupports
* aOuter
, const nsID
& aIID
,
41 nsresult
Construct_nsIScriptSecurityManager(nsISupports
* aOuter
,
42 const nsIID
& aIID
, void** aResult
);
43 nsresult
LocalStorageManagerConstructor(nsISupports
* aOuter
, const nsIID
& aIID
,
45 nsresult
SessionStorageManagerConstructor(nsISupports
* aOuter
,
46 const nsIID
& aIID
, void** aResult
);
48 already_AddRefed
<nsIPresentationService
> NS_CreatePresentationService();
50 #endif // nsLayoutModule_h