Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
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 | #include "nsISupports.idl" |
michael@0 | 7 | |
michael@0 | 8 | interface nsIAtom; |
michael@0 | 9 | |
michael@0 | 10 | %{C++ |
michael@0 | 11 | #define NS_ATOMSERVICE_CID \ |
michael@0 | 12 | { /* ed3db3fc-0168-4cab-8818-98f5475a490c */ \ |
michael@0 | 13 | 0xed3db3fc, \ |
michael@0 | 14 | 0x0168, \ |
michael@0 | 15 | 0x4cab, \ |
michael@0 | 16 | {0x88, 0x18, 0x98, 0xf5, 0x47, 0x5a, 0x49, 0x0c} } |
michael@0 | 17 | |
michael@0 | 18 | #define NS_ATOMSERVICE_CONTRACTID "@mozilla.org/atom-service;1" |
michael@0 | 19 | %} |
michael@0 | 20 | |
michael@0 | 21 | /* |
michael@0 | 22 | * Should this really be scriptable? Using atoms from script or proxies |
michael@0 | 23 | * could be dangerous since double-wrapping could lead to loss of |
michael@0 | 24 | * pointer identity. |
michael@0 | 25 | */ |
michael@0 | 26 | |
michael@0 | 27 | [scriptable, uuid(9c1f50b9-f9eb-42d4-a8cb-2c7600aeb241)] |
michael@0 | 28 | interface nsIAtomService : nsISupports { |
michael@0 | 29 | |
michael@0 | 30 | /** |
michael@0 | 31 | * Version of NS_NewAtom that doesn't require linking against the |
michael@0 | 32 | * XPCOM library. See nsIAtom.idl. |
michael@0 | 33 | */ |
michael@0 | 34 | nsIAtom getAtom(in AString value); |
michael@0 | 35 | |
michael@0 | 36 | /** |
michael@0 | 37 | * Version of NS_NewPermanentAtom that doesn't require linking against |
michael@0 | 38 | * the XPCOM library. See nsIAtom.idl. |
michael@0 | 39 | */ |
michael@0 | 40 | nsIAtom getPermanentAtom(in AString value); |
michael@0 | 41 | |
michael@0 | 42 | /** |
michael@0 | 43 | * Get an atom with a utf8 string. |
michael@0 | 44 | */ |
michael@0 | 45 | [noscript] nsIAtom getAtomUTF8(in string value); |
michael@0 | 46 | [noscript] nsIAtom getPermanentAtomUTF8(in string value); |
michael@0 | 47 | }; |