LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIIdentityCryptoService.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 2 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIIdentityCryptoService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIIdentityCryptoService_h__
       6             : #define __gen_nsIIdentityCryptoService_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : class nsIURI; /* forward declaration */
      18             : 
      19             : class nsIIdentityKeyGenCallback; /* forward declaration */
      20             : 
      21             : class nsIIdentitySignCallback; /* forward declaration */
      22             : 
      23             : 
      24             : /* starting interface:    nsIIdentityCryptoService */
      25             : #define NS_IIDENTITYCRYPTOSERVICE_IID_STR "f087e6bc-dd33-4f6c-a106-dd786e052ee9"
      26             : 
      27             : #define NS_IIDENTITYCRYPTOSERVICE_IID \
      28             :   {0xf087e6bc, 0xdd33, 0x4f6c, \
      29             :     { 0xa1, 0x06, 0xdd, 0x78, 0x6e, 0x05, 0x2e, 0xe9 }}
      30             : 
      31           0 : class NS_NO_VTABLE nsIIdentityCryptoService : public nsISupports {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDENTITYCRYPTOSERVICE_IID)
      35             : 
      36             :   /* void generateKeyPair (in AUTF8String algorithm, in nsIIdentityKeyGenCallback callback); */
      37             :   NS_IMETHOD GenerateKeyPair(const nsACString & algorithm, nsIIdentityKeyGenCallback *callback) = 0;
      38             : 
      39             :   /* ACString base64UrlEncode (in AUTF8String toEncode); */
      40             :   NS_IMETHOD Base64UrlEncode(const nsACString & toEncode, nsACString & _retval) = 0;
      41             : 
      42             : };
      43             : 
      44             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIIdentityCryptoService, NS_IIDENTITYCRYPTOSERVICE_IID)
      45             : 
      46             : /* Use this macro when declaring classes that implement this interface. */
      47             : #define NS_DECL_NSIIDENTITYCRYPTOSERVICE \
      48             :   NS_IMETHOD GenerateKeyPair(const nsACString & algorithm, nsIIdentityKeyGenCallback *callback) override; \
      49             :   NS_IMETHOD Base64UrlEncode(const nsACString & toEncode, nsACString & _retval) override; 
      50             : 
      51             : /* Use this macro when declaring the members of this interface when the
      52             :    class doesn't implement the interface. This is useful for forwarding. */
      53             : #define NS_DECL_NON_VIRTUAL_NSIIDENTITYCRYPTOSERVICE \
      54             :   nsresult GenerateKeyPair(const nsACString & algorithm, nsIIdentityKeyGenCallback *callback); \
      55             :   nsresult Base64UrlEncode(const nsACString & toEncode, nsACString & _retval); 
      56             : 
      57             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      58             : #define NS_FORWARD_NSIIDENTITYCRYPTOSERVICE(_to) \
      59             :   NS_IMETHOD GenerateKeyPair(const nsACString & algorithm, nsIIdentityKeyGenCallback *callback) override { return _to GenerateKeyPair(algorithm, callback); } \
      60             :   NS_IMETHOD Base64UrlEncode(const nsACString & toEncode, nsACString & _retval) override { return _to Base64UrlEncode(toEncode, _retval); } 
      61             : 
      62             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      63             : #define NS_FORWARD_SAFE_NSIIDENTITYCRYPTOSERVICE(_to) \
      64             :   NS_IMETHOD GenerateKeyPair(const nsACString & algorithm, nsIIdentityKeyGenCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateKeyPair(algorithm, callback); } \
      65             :   NS_IMETHOD Base64UrlEncode(const nsACString & toEncode, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Base64UrlEncode(toEncode, _retval); } 
      66             : 
      67             : #if 0
      68             : /* Use the code below as a template for the implementation class for this interface. */
      69             : 
      70             : /* Header file */
      71             : class nsIdentityCryptoService : public nsIIdentityCryptoService
      72             : {
      73             : public:
      74             :   NS_DECL_ISUPPORTS
      75             :   NS_DECL_NSIIDENTITYCRYPTOSERVICE
      76             : 
      77             :   nsIdentityCryptoService();
      78             : 
      79             : private:
      80             :   ~nsIdentityCryptoService();
      81             : 
      82             : protected:
      83             :   /* additional members */
      84             : };
      85             : 
      86             : /* Implementation file */
      87             : NS_IMPL_ISUPPORTS(nsIdentityCryptoService, nsIIdentityCryptoService)
      88             : 
      89             : nsIdentityCryptoService::nsIdentityCryptoService()
      90             : {
      91             :   /* member initializers and constructor code */
      92             : }
      93             : 
      94             : nsIdentityCryptoService::~nsIdentityCryptoService()
      95             : {
      96             :   /* destructor code */
      97             : }
      98             : 
      99             : /* void generateKeyPair (in AUTF8String algorithm, in nsIIdentityKeyGenCallback callback); */
     100             : NS_IMETHODIMP nsIdentityCryptoService::GenerateKeyPair(const nsACString & algorithm, nsIIdentityKeyGenCallback *callback)
     101             : {
     102             :     return NS_ERROR_NOT_IMPLEMENTED;
     103             : }
     104             : 
     105             : /* ACString base64UrlEncode (in AUTF8String toEncode); */
     106             : NS_IMETHODIMP nsIdentityCryptoService::Base64UrlEncode(const nsACString & toEncode, nsACString & _retval)
     107             : {
     108             :     return NS_ERROR_NOT_IMPLEMENTED;
     109             : }
     110             : 
     111             : /* End of implementation class template. */
     112             : #endif
     113             : 
     114             : 
     115             : /* starting interface:    nsIIdentityKeyPair */
     116             : #define NS_IIDENTITYKEYPAIR_IID_STR "73962dc7-8ee7-4346-a12b-b039e1d9b54d"
     117             : 
     118             : #define NS_IIDENTITYKEYPAIR_IID \
     119             :   {0x73962dc7, 0x8ee7, 0x4346, \
     120             :     { 0xa1, 0x2b, 0xb0, 0x39, 0xe1, 0xd9, 0xb5, 0x4d }}
     121             : 
     122           0 : class NS_NO_VTABLE nsIIdentityKeyPair : public nsISupports {
     123             :  public:
     124             : 
     125             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDENTITYKEYPAIR_IID)
     126             : 
     127             :   /* readonly attribute AUTF8String keyType; */
     128             :   NS_IMETHOD GetKeyType(nsACString & aKeyType) = 0;
     129             : 
     130             :   /* readonly attribute AUTF8String hexRSAPublicKeyExponent; */
     131             :   NS_IMETHOD GetHexRSAPublicKeyExponent(nsACString & aHexRSAPublicKeyExponent) = 0;
     132             : 
     133             :   /* readonly attribute AUTF8String hexRSAPublicKeyModulus; */
     134             :   NS_IMETHOD GetHexRSAPublicKeyModulus(nsACString & aHexRSAPublicKeyModulus) = 0;
     135             : 
     136             :   /* readonly attribute AUTF8String hexDSAPrime; */
     137             :   NS_IMETHOD GetHexDSAPrime(nsACString & aHexDSAPrime) = 0;
     138             : 
     139             :   /* readonly attribute AUTF8String hexDSASubPrime; */
     140             :   NS_IMETHOD GetHexDSASubPrime(nsACString & aHexDSASubPrime) = 0;
     141             : 
     142             :   /* readonly attribute AUTF8String hexDSAGenerator; */
     143             :   NS_IMETHOD GetHexDSAGenerator(nsACString & aHexDSAGenerator) = 0;
     144             : 
     145             :   /* readonly attribute AUTF8String hexDSAPublicValue; */
     146             :   NS_IMETHOD GetHexDSAPublicValue(nsACString & aHexDSAPublicValue) = 0;
     147             : 
     148             :   /* void sign (in AUTF8String aText, in nsIIdentitySignCallback callback); */
     149             :   NS_IMETHOD Sign(const nsACString & aText, nsIIdentitySignCallback *callback) = 0;
     150             : 
     151             : };
     152             : 
     153             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIIdentityKeyPair, NS_IIDENTITYKEYPAIR_IID)
     154             : 
     155             : /* Use this macro when declaring classes that implement this interface. */
     156             : #define NS_DECL_NSIIDENTITYKEYPAIR \
     157             :   NS_IMETHOD GetKeyType(nsACString & aKeyType) override; \
     158             :   NS_IMETHOD GetHexRSAPublicKeyExponent(nsACString & aHexRSAPublicKeyExponent) override; \
     159             :   NS_IMETHOD GetHexRSAPublicKeyModulus(nsACString & aHexRSAPublicKeyModulus) override; \
     160             :   NS_IMETHOD GetHexDSAPrime(nsACString & aHexDSAPrime) override; \
     161             :   NS_IMETHOD GetHexDSASubPrime(nsACString & aHexDSASubPrime) override; \
     162             :   NS_IMETHOD GetHexDSAGenerator(nsACString & aHexDSAGenerator) override; \
     163             :   NS_IMETHOD GetHexDSAPublicValue(nsACString & aHexDSAPublicValue) override; \
     164             :   NS_IMETHOD Sign(const nsACString & aText, nsIIdentitySignCallback *callback) override; 
     165             : 
     166             : /* Use this macro when declaring the members of this interface when the
     167             :    class doesn't implement the interface. This is useful for forwarding. */
     168             : #define NS_DECL_NON_VIRTUAL_NSIIDENTITYKEYPAIR \
     169             :   nsresult GetKeyType(nsACString & aKeyType); \
     170             :   nsresult GetHexRSAPublicKeyExponent(nsACString & aHexRSAPublicKeyExponent); \
     171             :   nsresult GetHexRSAPublicKeyModulus(nsACString & aHexRSAPublicKeyModulus); \
     172             :   nsresult GetHexDSAPrime(nsACString & aHexDSAPrime); \
     173             :   nsresult GetHexDSASubPrime(nsACString & aHexDSASubPrime); \
     174             :   nsresult GetHexDSAGenerator(nsACString & aHexDSAGenerator); \
     175             :   nsresult GetHexDSAPublicValue(nsACString & aHexDSAPublicValue); \
     176             :   nsresult Sign(const nsACString & aText, nsIIdentitySignCallback *callback); 
     177             : 
     178             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     179             : #define NS_FORWARD_NSIIDENTITYKEYPAIR(_to) \
     180             :   NS_IMETHOD GetKeyType(nsACString & aKeyType) override { return _to GetKeyType(aKeyType); } \
     181             :   NS_IMETHOD GetHexRSAPublicKeyExponent(nsACString & aHexRSAPublicKeyExponent) override { return _to GetHexRSAPublicKeyExponent(aHexRSAPublicKeyExponent); } \
     182             :   NS_IMETHOD GetHexRSAPublicKeyModulus(nsACString & aHexRSAPublicKeyModulus) override { return _to GetHexRSAPublicKeyModulus(aHexRSAPublicKeyModulus); } \
     183             :   NS_IMETHOD GetHexDSAPrime(nsACString & aHexDSAPrime) override { return _to GetHexDSAPrime(aHexDSAPrime); } \
     184             :   NS_IMETHOD GetHexDSASubPrime(nsACString & aHexDSASubPrime) override { return _to GetHexDSASubPrime(aHexDSASubPrime); } \
     185             :   NS_IMETHOD GetHexDSAGenerator(nsACString & aHexDSAGenerator) override { return _to GetHexDSAGenerator(aHexDSAGenerator); } \
     186             :   NS_IMETHOD GetHexDSAPublicValue(nsACString & aHexDSAPublicValue) override { return _to GetHexDSAPublicValue(aHexDSAPublicValue); } \
     187             :   NS_IMETHOD Sign(const nsACString & aText, nsIIdentitySignCallback *callback) override { return _to Sign(aText, callback); } 
     188             : 
     189             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     190             : #define NS_FORWARD_SAFE_NSIIDENTITYKEYPAIR(_to) \
     191             :   NS_IMETHOD GetKeyType(nsACString & aKeyType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyType(aKeyType); } \
     192             :   NS_IMETHOD GetHexRSAPublicKeyExponent(nsACString & aHexRSAPublicKeyExponent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHexRSAPublicKeyExponent(aHexRSAPublicKeyExponent); } \
     193             :   NS_IMETHOD GetHexRSAPublicKeyModulus(nsACString & aHexRSAPublicKeyModulus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHexRSAPublicKeyModulus(aHexRSAPublicKeyModulus); } \
     194             :   NS_IMETHOD GetHexDSAPrime(nsACString & aHexDSAPrime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHexDSAPrime(aHexDSAPrime); } \
     195             :   NS_IMETHOD GetHexDSASubPrime(nsACString & aHexDSASubPrime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHexDSASubPrime(aHexDSASubPrime); } \
     196             :   NS_IMETHOD GetHexDSAGenerator(nsACString & aHexDSAGenerator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHexDSAGenerator(aHexDSAGenerator); } \
     197             :   NS_IMETHOD GetHexDSAPublicValue(nsACString & aHexDSAPublicValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHexDSAPublicValue(aHexDSAPublicValue); } \
     198             :   NS_IMETHOD Sign(const nsACString & aText, nsIIdentitySignCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Sign(aText, callback); } 
     199             : 
     200             : #if 0
     201             : /* Use the code below as a template for the implementation class for this interface. */
     202             : 
     203             : /* Header file */
     204             : class nsIdentityKeyPair : public nsIIdentityKeyPair
     205             : {
     206             : public:
     207             :   NS_DECL_ISUPPORTS
     208             :   NS_DECL_NSIIDENTITYKEYPAIR
     209             : 
     210             :   nsIdentityKeyPair();
     211             : 
     212             : private:
     213             :   ~nsIdentityKeyPair();
     214             : 
     215             : protected:
     216             :   /* additional members */
     217             : };
     218             : 
     219             : /* Implementation file */
     220             : NS_IMPL_ISUPPORTS(nsIdentityKeyPair, nsIIdentityKeyPair)
     221             : 
     222             : nsIdentityKeyPair::nsIdentityKeyPair()
     223             : {
     224             :   /* member initializers and constructor code */
     225             : }
     226             : 
     227             : nsIdentityKeyPair::~nsIdentityKeyPair()
     228             : {
     229             :   /* destructor code */
     230             : }
     231             : 
     232             : /* readonly attribute AUTF8String keyType; */
     233             : NS_IMETHODIMP nsIdentityKeyPair::GetKeyType(nsACString & aKeyType)
     234             : {
     235             :     return NS_ERROR_NOT_IMPLEMENTED;
     236             : }
     237             : 
     238             : /* readonly attribute AUTF8String hexRSAPublicKeyExponent; */
     239             : NS_IMETHODIMP nsIdentityKeyPair::GetHexRSAPublicKeyExponent(nsACString & aHexRSAPublicKeyExponent)
     240             : {
     241             :     return NS_ERROR_NOT_IMPLEMENTED;
     242             : }
     243             : 
     244             : /* readonly attribute AUTF8String hexRSAPublicKeyModulus; */
     245             : NS_IMETHODIMP nsIdentityKeyPair::GetHexRSAPublicKeyModulus(nsACString & aHexRSAPublicKeyModulus)
     246             : {
     247             :     return NS_ERROR_NOT_IMPLEMENTED;
     248             : }
     249             : 
     250             : /* readonly attribute AUTF8String hexDSAPrime; */
     251             : NS_IMETHODIMP nsIdentityKeyPair::GetHexDSAPrime(nsACString & aHexDSAPrime)
     252             : {
     253             :     return NS_ERROR_NOT_IMPLEMENTED;
     254             : }
     255             : 
     256             : /* readonly attribute AUTF8String hexDSASubPrime; */
     257             : NS_IMETHODIMP nsIdentityKeyPair::GetHexDSASubPrime(nsACString & aHexDSASubPrime)
     258             : {
     259             :     return NS_ERROR_NOT_IMPLEMENTED;
     260             : }
     261             : 
     262             : /* readonly attribute AUTF8String hexDSAGenerator; */
     263             : NS_IMETHODIMP nsIdentityKeyPair::GetHexDSAGenerator(nsACString & aHexDSAGenerator)
     264             : {
     265             :     return NS_ERROR_NOT_IMPLEMENTED;
     266             : }
     267             : 
     268             : /* readonly attribute AUTF8String hexDSAPublicValue; */
     269             : NS_IMETHODIMP nsIdentityKeyPair::GetHexDSAPublicValue(nsACString & aHexDSAPublicValue)
     270             : {
     271             :     return NS_ERROR_NOT_IMPLEMENTED;
     272             : }
     273             : 
     274             : /* void sign (in AUTF8String aText, in nsIIdentitySignCallback callback); */
     275             : NS_IMETHODIMP nsIdentityKeyPair::Sign(const nsACString & aText, nsIIdentitySignCallback *callback)
     276             : {
     277             :     return NS_ERROR_NOT_IMPLEMENTED;
     278             : }
     279             : 
     280             : /* End of implementation class template. */
     281             : #endif
     282             : 
     283             : 
     284             : /* starting interface:    nsIIdentityKeyGenCallback */
     285             : #define NS_IIDENTITYKEYGENCALLBACK_IID_STR "90f24ca2-2b05-4ca9-8aec-89d38e2f905a"
     286             : 
     287             : #define NS_IIDENTITYKEYGENCALLBACK_IID \
     288             :   {0x90f24ca2, 0x2b05, 0x4ca9, \
     289             :     { 0x8a, 0xec, 0x89, 0xd3, 0x8e, 0x2f, 0x90, 0x5a }}
     290             : 
     291             : class NS_NO_VTABLE nsIIdentityKeyGenCallback : public nsISupports {
     292             :  public:
     293             : 
     294             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDENTITYKEYGENCALLBACK_IID)
     295             : 
     296             :   /* void generateKeyPairFinished (in nsresult rv, in nsIIdentityKeyPair keyPair); */
     297             :   NS_IMETHOD GenerateKeyPairFinished(nsresult rv, nsIIdentityKeyPair *keyPair) = 0;
     298             : 
     299             : };
     300             : 
     301             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIIdentityKeyGenCallback, NS_IIDENTITYKEYGENCALLBACK_IID)
     302             : 
     303             : /* Use this macro when declaring classes that implement this interface. */
     304             : #define NS_DECL_NSIIDENTITYKEYGENCALLBACK \
     305             :   NS_IMETHOD GenerateKeyPairFinished(nsresult rv, nsIIdentityKeyPair *keyPair) override; 
     306             : 
     307             : /* Use this macro when declaring the members of this interface when the
     308             :    class doesn't implement the interface. This is useful for forwarding. */
     309             : #define NS_DECL_NON_VIRTUAL_NSIIDENTITYKEYGENCALLBACK \
     310             :   nsresult GenerateKeyPairFinished(nsresult rv, nsIIdentityKeyPair *keyPair); 
     311             : 
     312             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     313             : #define NS_FORWARD_NSIIDENTITYKEYGENCALLBACK(_to) \
     314             :   NS_IMETHOD GenerateKeyPairFinished(nsresult rv, nsIIdentityKeyPair *keyPair) override { return _to GenerateKeyPairFinished(rv, keyPair); } 
     315             : 
     316             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     317             : #define NS_FORWARD_SAFE_NSIIDENTITYKEYGENCALLBACK(_to) \
     318             :   NS_IMETHOD GenerateKeyPairFinished(nsresult rv, nsIIdentityKeyPair *keyPair) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateKeyPairFinished(rv, keyPair); } 
     319             : 
     320             : #if 0
     321             : /* Use the code below as a template for the implementation class for this interface. */
     322             : 
     323             : /* Header file */
     324             : class nsIdentityKeyGenCallback : public nsIIdentityKeyGenCallback
     325             : {
     326             : public:
     327             :   NS_DECL_ISUPPORTS
     328             :   NS_DECL_NSIIDENTITYKEYGENCALLBACK
     329             : 
     330             :   nsIdentityKeyGenCallback();
     331             : 
     332             : private:
     333             :   ~nsIdentityKeyGenCallback();
     334             : 
     335             : protected:
     336             :   /* additional members */
     337             : };
     338             : 
     339             : /* Implementation file */
     340             : NS_IMPL_ISUPPORTS(nsIdentityKeyGenCallback, nsIIdentityKeyGenCallback)
     341             : 
     342             : nsIdentityKeyGenCallback::nsIdentityKeyGenCallback()
     343             : {
     344             :   /* member initializers and constructor code */
     345             : }
     346             : 
     347             : nsIdentityKeyGenCallback::~nsIdentityKeyGenCallback()
     348             : {
     349             :   /* destructor code */
     350             : }
     351             : 
     352             : /* void generateKeyPairFinished (in nsresult rv, in nsIIdentityKeyPair keyPair); */
     353             : NS_IMETHODIMP nsIdentityKeyGenCallback::GenerateKeyPairFinished(nsresult rv, nsIIdentityKeyPair *keyPair)
     354             : {
     355             :     return NS_ERROR_NOT_IMPLEMENTED;
     356             : }
     357             : 
     358             : /* End of implementation class template. */
     359             : #endif
     360             : 
     361             : 
     362             : /* starting interface:    nsIIdentitySignCallback */
     363             : #define NS_IIDENTITYSIGNCALLBACK_IID_STR "2d3e5036-374b-4b47-a430-1196b67b890f"
     364             : 
     365             : #define NS_IIDENTITYSIGNCALLBACK_IID \
     366             :   {0x2d3e5036, 0x374b, 0x4b47, \
     367             :     { 0xa4, 0x30, 0x11, 0x96, 0xb6, 0x7b, 0x89, 0x0f }}
     368             : 
     369             : class NS_NO_VTABLE nsIIdentitySignCallback : public nsISupports {
     370             :  public:
     371             : 
     372             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDENTITYSIGNCALLBACK_IID)
     373             : 
     374             :   /* void signFinished (in nsresult rv, in ACString base64urlSignature); */
     375             :   NS_IMETHOD SignFinished(nsresult rv, const nsACString & base64urlSignature) = 0;
     376             : 
     377             : };
     378             : 
     379             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIIdentitySignCallback, NS_IIDENTITYSIGNCALLBACK_IID)
     380             : 
     381             : /* Use this macro when declaring classes that implement this interface. */
     382             : #define NS_DECL_NSIIDENTITYSIGNCALLBACK \
     383             :   NS_IMETHOD SignFinished(nsresult rv, const nsACString & base64urlSignature) override; 
     384             : 
     385             : /* Use this macro when declaring the members of this interface when the
     386             :    class doesn't implement the interface. This is useful for forwarding. */
     387             : #define NS_DECL_NON_VIRTUAL_NSIIDENTITYSIGNCALLBACK \
     388             :   nsresult SignFinished(nsresult rv, const nsACString & base64urlSignature); 
     389             : 
     390             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     391             : #define NS_FORWARD_NSIIDENTITYSIGNCALLBACK(_to) \
     392             :   NS_IMETHOD SignFinished(nsresult rv, const nsACString & base64urlSignature) override { return _to SignFinished(rv, base64urlSignature); } 
     393             : 
     394             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     395             : #define NS_FORWARD_SAFE_NSIIDENTITYSIGNCALLBACK(_to) \
     396             :   NS_IMETHOD SignFinished(nsresult rv, const nsACString & base64urlSignature) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SignFinished(rv, base64urlSignature); } 
     397             : 
     398             : #if 0
     399             : /* Use the code below as a template for the implementation class for this interface. */
     400             : 
     401             : /* Header file */
     402             : class nsIdentitySignCallback : public nsIIdentitySignCallback
     403             : {
     404             : public:
     405             :   NS_DECL_ISUPPORTS
     406             :   NS_DECL_NSIIDENTITYSIGNCALLBACK
     407             : 
     408             :   nsIdentitySignCallback();
     409             : 
     410             : private:
     411             :   ~nsIdentitySignCallback();
     412             : 
     413             : protected:
     414             :   /* additional members */
     415             : };
     416             : 
     417             : /* Implementation file */
     418             : NS_IMPL_ISUPPORTS(nsIdentitySignCallback, nsIIdentitySignCallback)
     419             : 
     420             : nsIdentitySignCallback::nsIdentitySignCallback()
     421             : {
     422             :   /* member initializers and constructor code */
     423             : }
     424             : 
     425             : nsIdentitySignCallback::~nsIdentitySignCallback()
     426             : {
     427             :   /* destructor code */
     428             : }
     429             : 
     430             : /* void signFinished (in nsresult rv, in ACString base64urlSignature); */
     431             : NS_IMETHODIMP nsIdentitySignCallback::SignFinished(nsresult rv, const nsACString & base64urlSignature)
     432             : {
     433             :     return NS_ERROR_NOT_IMPLEMENTED;
     434             : }
     435             : 
     436             : /* End of implementation class template. */
     437             : #endif
     438             : 
     439             : 
     440             : #endif /* __gen_nsIIdentityCryptoService_h__ */

Generated by: LCOV version 1.13