xpcom/ds/nsProperties.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpcom/ds/nsProperties.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef nsProperties_h___
    1.10 +#define nsProperties_h___
    1.11 +
    1.12 +#include "nsIProperties.h"
    1.13 +#include "nsInterfaceHashtable.h"
    1.14 +#include "nsHashKeys.h"
    1.15 +#include "nsAgg.h"
    1.16 +#include "mozilla/Attributes.h"
    1.17 +
    1.18 +#define NS_PROPERTIES_CID                            \
    1.19 +{ /* 4de2bc90-b1bf-11d3-93b6-00104ba0fd40 */         \
    1.20 +    0x4de2bc90,                                      \
    1.21 +    0xb1bf,                                          \
    1.22 +    0x11d3,                                          \
    1.23 +    {0x93, 0xb6, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
    1.24 +}
    1.25 +
    1.26 +typedef nsInterfaceHashtable<nsCharPtrHashKey, nsISupports>
    1.27 +        nsProperties_HashBase;
    1.28 +
    1.29 +class nsProperties MOZ_FINAL : public nsIProperties,
    1.30 +                               public nsProperties_HashBase {
    1.31 +public:
    1.32 +
    1.33 +  NS_DECL_AGGREGATED
    1.34 +  NS_DECL_NSIPROPERTIES
    1.35 +
    1.36 +  nsProperties(nsISupports *aOuter) { NS_INIT_AGGREGATED(aOuter); }
    1.37 +  ~nsProperties() { }
    1.38 +};
    1.39 +
    1.40 +#endif /* nsProperties_h___ */

mercurial