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 #include "nsIUnicharInputStream.h"
19 class nsPersistentProperties MOZ_FINAL
: public nsIPersistentProperties
22 nsPersistentProperties();
27 NS_DECL_NSIPERSISTENTPROPERTIES
30 Create(nsISupports
*aOuter
, REFNSIID aIID
, void **aResult
);
33 ~nsPersistentProperties();
36 nsCOMPtr
<nsIUnicharInputStream
> mIn
;
38 nsIPersistentProperties
* mSubclass
;
39 struct PLDHashTable mTable
;
43 class nsPropertyElement MOZ_FINAL
: public nsIPropertyElement
50 nsPropertyElement(const nsACString
& aKey
, const nsAString
& aValue
)
51 : mKey(aKey
), mValue(aValue
)
56 NS_DECL_NSIPROPERTYELEMENT
59 Create(nsISupports
*aOuter
, REFNSIID aIID
, void **aResult
);
62 ~nsPropertyElement() {}
69 #endif /* nsPersistentProperties_h___ */