Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #ifndef nsProperties_h___ |
michael@0 | 7 | #define nsProperties_h___ |
michael@0 | 8 | |
michael@0 | 9 | #include "nsIProperties.h" |
michael@0 | 10 | #include "nsInterfaceHashtable.h" |
michael@0 | 11 | #include "nsHashKeys.h" |
michael@0 | 12 | #include "nsAgg.h" |
michael@0 | 13 | #include "mozilla/Attributes.h" |
michael@0 | 14 | |
michael@0 | 15 | #define NS_PROPERTIES_CID \ |
michael@0 | 16 | { /* 4de2bc90-b1bf-11d3-93b6-00104ba0fd40 */ \ |
michael@0 | 17 | 0x4de2bc90, \ |
michael@0 | 18 | 0xb1bf, \ |
michael@0 | 19 | 0x11d3, \ |
michael@0 | 20 | {0x93, 0xb6, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \ |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | typedef nsInterfaceHashtable<nsCharPtrHashKey, nsISupports> |
michael@0 | 24 | nsProperties_HashBase; |
michael@0 | 25 | |
michael@0 | 26 | class nsProperties MOZ_FINAL : public nsIProperties, |
michael@0 | 27 | public nsProperties_HashBase { |
michael@0 | 28 | public: |
michael@0 | 29 | |
michael@0 | 30 | NS_DECL_AGGREGATED |
michael@0 | 31 | NS_DECL_NSIPROPERTIES |
michael@0 | 32 | |
michael@0 | 33 | nsProperties(nsISupports *aOuter) { NS_INIT_AGGREGATED(aOuter); } |
michael@0 | 34 | ~nsProperties() { } |
michael@0 | 35 | }; |
michael@0 | 36 | |
michael@0 | 37 | #endif /* nsProperties_h___ */ |