xpcom/reflect/xptinfo/public/nsIInterfaceInfo.idl

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 /* -*- Mode: C++; tab-width: 8; 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 /* The nsIInterfaceInfo public declaration. */
michael@0 7
michael@0 8
michael@0 9 #include "nsISupports.idl"
michael@0 10
michael@0 11 // forward declaration of non-XPCOM types
michael@0 12
michael@0 13 [ptr] native nsXPTMethodInfoPtr(nsXPTMethodInfo);
michael@0 14 [ptr] native nsXPTConstantPtr(nsXPTConstant);
michael@0 15 [ptr] native nsXPTParamInfoPtr(nsXPTParamInfo);
michael@0 16 native nsXPTType(nsXPTType);
michael@0 17
michael@0 18 // We bend the rules to do a [shared] nsIID (but this is never scriptable)
michael@0 19 [ptr] native nsIIDPtrShared(nsIID);
michael@0 20
michael@0 21 %{C++
michael@0 22 class nsXPTMethodInfo;
michael@0 23 class nsXPTConstant;
michael@0 24 class nsXPTParamInfo;
michael@0 25 class nsXPTType;
michael@0 26 %}
michael@0 27
michael@0 28 /* this is NOT intended to be scriptable */
michael@0 29 [uuid(1affa260-8965-4612-869a-78af4ccfb287)]
michael@0 30 interface nsIInterfaceInfo : nsISupports
michael@0 31 {
michael@0 32 readonly attribute string name;
michael@0 33 readonly attribute nsIIDPtr InterfaceIID;
michael@0 34
michael@0 35 boolean isScriptable();
michael@0 36 boolean isBuiltinClass();
michael@0 37
michael@0 38 readonly attribute nsIInterfaceInfo parent;
michael@0 39
michael@0 40 /**
michael@0 41 * These include counts for parent (and all ancestors).
michael@0 42 */
michael@0 43 readonly attribute uint16_t methodCount;
michael@0 44 readonly attribute uint16_t constantCount;
michael@0 45
michael@0 46 /**
michael@0 47 * These include methods and constants for parent (and all ancestors).
michael@0 48 *
michael@0 49 * These do *not* make copies ***explicit bending of XPCOM rules***.
michael@0 50 */
michael@0 51
michael@0 52 void getMethodInfo(in uint16_t index,
michael@0 53 [shared, retval] out nsXPTMethodInfoPtr info);
michael@0 54
michael@0 55 void getMethodInfoForName(in string methodName, out uint16_t index,
michael@0 56 [shared, retval] out nsXPTMethodInfoPtr info);
michael@0 57
michael@0 58 void getConstant(in uint16_t index,
michael@0 59 [shared, retval] out nsXPTConstantPtr constant);
michael@0 60
michael@0 61
michael@0 62 /**
michael@0 63 * Get the interface information or iid associated with a param of some
michael@0 64 * method in this interface.
michael@0 65 */
michael@0 66
michael@0 67 nsIInterfaceInfo getInfoForParam(in uint16_t methodIndex,
michael@0 68 [const] in nsXPTParamInfoPtr param);
michael@0 69
michael@0 70 nsIIDPtr getIIDForParam(in uint16_t methodIndex,
michael@0 71 [const] in nsXPTParamInfoPtr param);
michael@0 72
michael@0 73
michael@0 74 /**
michael@0 75 * These do *not* make copies ***explicit bending of XPCOM rules***.
michael@0 76 */
michael@0 77
michael@0 78 nsXPTType getTypeForParam(in uint16_t methodIndex,
michael@0 79 [const] in nsXPTParamInfoPtr param,
michael@0 80 in uint16_t dimension);
michael@0 81
michael@0 82 uint8_t getSizeIsArgNumberForParam(in uint16_t methodIndex,
michael@0 83 [const] in nsXPTParamInfoPtr param,
michael@0 84 in uint16_t dimension);
michael@0 85
michael@0 86 uint8_t getInterfaceIsArgNumberForParam(in uint16_t methodIndex,
michael@0 87 [const] in nsXPTParamInfoPtr param);
michael@0 88
michael@0 89 boolean isIID(in nsIIDPtr IID);
michael@0 90
michael@0 91 void getNameShared([shared,retval] out string name);
michael@0 92 void getIIDShared([shared,retval] out nsIIDPtrShared iid);
michael@0 93
michael@0 94 boolean isFunction();
michael@0 95
michael@0 96 boolean hasAncestor(in nsIIDPtr iid);
michael@0 97
michael@0 98 [notxpcom] nsresult getIIDForParamNoAlloc(in uint16_t methodIndex,
michael@0 99 [const] in nsXPTParamInfoPtr param,
michael@0 100 out nsIID iid);
michael@0 101 };
michael@0 102

mercurial