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();
24 NS_DECL_THREADSAFE_ISUPPORTS
26 NS_DECL_NSIPERSISTENTPROPERTIES
29 Create(nsISupports
*aOuter
, REFNSIID aIID
, void **aResult
);
32 ~nsPersistentProperties();
35 nsCOMPtr
<nsIUnicharInputStream
> mIn
;
37 nsIPersistentProperties
* mSubclass
;
38 struct PLDHashTable mTable
;
42 class nsPropertyElement MOZ_FINAL
: public nsIPropertyElement
49 nsPropertyElement(const nsACString
& aKey
, const nsAString
& aValue
)
50 : mKey(aKey
), mValue(aValue
)
55 NS_DECL_NSIPROPERTYELEMENT
58 Create(nsISupports
*aOuter
, REFNSIID aIID
, void **aResult
);
61 ~nsPropertyElement() {}
68 #endif /* nsPersistentProperties_h___ */