1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsPersistentProperties_h___
7 #define nsPersistentProperties_h___
9 #include "nsIPersistentProperties2.h"
14 #include "mozilla/Attributes.h"
16 class nsIUnicharInputStream
;
18 class nsPersistentProperties MOZ_FINAL
: public nsIPersistentProperties
21 nsPersistentProperties();
23 NS_DECL_THREADSAFE_ISUPPORTS
25 NS_DECL_NSIPERSISTENTPROPERTIES
27 static nsresult
Create(nsISupports
* aOuter
, REFNSIID aIID
, void** aResult
);
30 ~nsPersistentProperties();
33 nsCOMPtr
<nsIUnicharInputStream
> mIn
;
35 nsIPersistentProperties
* mSubclass
;
36 struct PLDHashTable mTable
;
40 class nsPropertyElement MOZ_FINAL
: public nsIPropertyElement
47 nsPropertyElement(const nsACString
& aKey
, const nsAString
& aValue
)
54 NS_DECL_NSIPROPERTYELEMENT
56 static NS_METHOD
Create(nsISupports
* aOuter
, REFNSIID aIID
, void** aResult
);
59 ~nsPropertyElement() {}
66 #endif /* nsPersistentProperties_h___ */