author Boris Zbarsky <>
Thu, 16 Oct 2014 23:18:42 -0400
changeset 210843 01d25edea2bc80f6d27d74704f9f9364c2eab63a
parent 196036 b79894a533bcd2c5b742f55e0de9eff40d8b86c3
child 340821 87dc4355a517fdd4b4273ed0043195a3c2610efd
permissions -rw-r--r--
Bug 1083232. Don't refcount the principals in FrameState, since it has stack lifetime and the principals will be kept alive by the JS stack while he FrameState is alive. r=fitzgen

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

#ifndef nsUConvPropertySearch_h_
#define nsUConvPropertySearch_h_

#include "nsStringFwd.h"

class nsUConvPropertySearch
     * Looks up a property by value.
     * @param aProperties
     *   the static property array
     * @param aKey
     *   the key to look up
     * @param aValue
     *   the return value (empty string if not found)
     * @return NS_OK if found or NS_ERROR_FAILURE if not found
    static nsresult SearchPropertyValue(const char* aProperties[][3],
                                        int32_t aNumberOfProperties,
                                        const nsACString& aKey,
                                        nsACString& aValue);

#endif /* nsUConvPropertySearch_h_ */