DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

nsIContentSignatureReceiverCallback

nsIContentSignatureVerifier

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIContentSignatureVerifier.idl
 */

#ifndef __gen_nsIContentSignatureVerifier_h__
#define __gen_nsIContentSignatureVerifier_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIContentSignatureReceiverCallback; /* forward declaration */


/* starting interface:    nsIContentSignatureVerifier */
#define NS_ICONTENTSIGNATUREVERIFIER_IID_STR "45a5fe2f-c350-4b86-962d-02d5aaaa955a"

#define NS_ICONTENTSIGNATUREVERIFIER_IID \
  {0x45a5fe2f, 0xc350, 0x4b86, \
    { 0x96, 0x2d, 0x02, 0xd5, 0xaa, 0xaa, 0x95, 0x5a }}

class NS_NO_VTABLE nsIContentSignatureVerifier : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTSIGNATUREVERIFIER_IID)

  /* boolean verifyContentSignature (in ACString aData, in ACString aContentSignatureHeader, in ACString aCertificateChain, in ACString aName); */
  NS_IMETHOD VerifyContentSignature(const nsACString & aData, const nsACString & aContentSignatureHeader, const nsACString & aCertificateChain, const nsACString & aName, bool *_retval) = 0;

  /* void createContext (in ACString aData, in ACString aContentSignatureHeader, in ACString aCertificateChain, in ACString aName); */
  NS_IMETHOD CreateContext(const nsACString & aData, const nsACString & aContentSignatureHeader, const nsACString & aCertificateChain, const nsACString & aName) = 0;

  /* void createContextWithoutCertChain (in nsIContentSignatureReceiverCallback aCallback, in ACString aContentSignatureHeader, in ACString aName); */
  NS_IMETHOD CreateContextWithoutCertChain(nsIContentSignatureReceiverCallback *aCallback, const nsACString & aContentSignatureHeader, const nsACString & aName) = 0;

  /* void update (in ACString aData); */
  NS_IMETHOD Update(const nsACString & aData) = 0;

  /* boolean end (); */
  NS_IMETHOD End(bool *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentSignatureVerifier, NS_ICONTENTSIGNATUREVERIFIER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTSIGNATUREVERIFIER \
  NS_IMETHOD VerifyContentSignature(const nsACString & aData, const nsACString & aContentSignatureHeader, const nsACString & aCertificateChain, const nsACString & aName, bool *_retval) override; \
  NS_IMETHOD CreateContext(const nsACString & aData, const nsACString & aContentSignatureHeader, const nsACString & aCertificateChain, const nsACString & aName) override; \
  NS_IMETHOD CreateContextWithoutCertChain(nsIContentSignatureReceiverCallback *aCallback, const nsACString & aContentSignatureHeader, const nsACString & aName) override; \
  NS_IMETHOD Update(const nsACString & aData) override; \
  NS_IMETHOD End(bool *_retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICONTENTSIGNATUREVERIFIER \
  nsresult VerifyContentSignature(const nsACString & aData, const nsACString & aContentSignatureHeader, const nsACString & aCertificateChain, const nsACString & aName, bool *_retval); \
  nsresult CreateContext(const nsACString & aData, const nsACString & aContentSignatureHeader, const nsACString & aCertificateChain, const nsACString & aName); \
  nsresult CreateContextWithoutCertChain(nsIContentSignatureReceiverCallback *aCallback, const nsACString & aContentSignatureHeader, const nsACString & aName); \
  nsresult Update(const nsACString & aData); \
  nsresult End(bool *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTSIGNATUREVERIFIER(_to) \
  NS_IMETHOD VerifyContentSignature(const nsACString & aData, const nsACString & aContentSignatureHeader, const nsACString & aCertificateChain, const nsACString & aName, bool *_retval) override { return _to VerifyContentSignature(aData, aContentSignatureHeader, aCertificateChain, aName, _retval); } \
  NS_IMETHOD CreateContext(const nsACString & aData, const nsACString & aContentSignatureHeader, const nsACString & aCertificateChain, const nsACString & aName) override { return _to CreateContext(aData, aContentSignatureHeader, aCertificateChain, aName); } \
  NS_IMETHOD CreateContextWithoutCertChain(nsIContentSignatureReceiverCallback *aCallback, const nsACString & aContentSignatureHeader, const nsACString & aName) override { return _to CreateContextWithoutCertChain(aCallback, aContentSignatureHeader, aName); } \
  NS_IMETHOD Update(const nsACString & aData) override { return _to Update(aData); } \
  NS_IMETHOD End(bool *_retval) override { return _to End(_retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTSIGNATUREVERIFIER(_to) \
  NS_IMETHOD VerifyContentSignature(const nsACString & aData, const nsACString & aContentSignatureHeader, const nsACString & aCertificateChain, const nsACString & aName, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->VerifyContentSignature(aData, aContentSignatureHeader, aCertificateChain, aName, _retval); } \
  NS_IMETHOD CreateContext(const nsACString & aData, const nsACString & aContentSignatureHeader, const nsACString & aCertificateChain, const nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateContext(aData, aContentSignatureHeader, aCertificateChain, aName); } \
  NS_IMETHOD CreateContextWithoutCertChain(nsIContentSignatureReceiverCallback *aCallback, const nsACString & aContentSignatureHeader, const nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateContextWithoutCertChain(aCallback, aContentSignatureHeader, aName); } \
  NS_IMETHOD Update(const nsACString & aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Update(aData); } \
  NS_IMETHOD End(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->End(_retval); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsContentSignatureVerifier : public nsIContentSignatureVerifier
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICONTENTSIGNATUREVERIFIER

  nsContentSignatureVerifier();

private:
  ~nsContentSignatureVerifier();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsContentSignatureVerifier, nsIContentSignatureVerifier)

nsContentSignatureVerifier::nsContentSignatureVerifier()
{
  /* member initializers and constructor code */
}

nsContentSignatureVerifier::~nsContentSignatureVerifier()
{
  /* destructor code */
}

/* boolean verifyContentSignature (in ACString aData, in ACString aContentSignatureHeader, in ACString aCertificateChain, in ACString aName); */
NS_IMETHODIMP nsContentSignatureVerifier::VerifyContentSignature(const nsACString & aData, const nsACString & aContentSignatureHeader, const nsACString & aCertificateChain, const nsACString & aName, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void createContext (in ACString aData, in ACString aContentSignatureHeader, in ACString aCertificateChain, in ACString aName); */
NS_IMETHODIMP nsContentSignatureVerifier::CreateContext(const nsACString & aData, const nsACString & aContentSignatureHeader, const nsACString & aCertificateChain, const nsACString & aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void createContextWithoutCertChain (in nsIContentSignatureReceiverCallback aCallback, in ACString aContentSignatureHeader, in ACString aName); */
NS_IMETHODIMP nsContentSignatureVerifier::CreateContextWithoutCertChain(nsIContentSignatureReceiverCallback *aCallback, const nsACString & aContentSignatureHeader, const nsACString & aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void update (in ACString aData); */
NS_IMETHODIMP nsContentSignatureVerifier::Update(const nsACString & aData)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean end (); */
NS_IMETHODIMP nsContentSignatureVerifier::End(bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIContentSignatureReceiverCallback */
#define NS_ICONTENTSIGNATURERECEIVERCALLBACK_IID_STR "1eb90707-df59-48b7-9d42-d8bf630ae744"

#define NS_ICONTENTSIGNATURERECEIVERCALLBACK_IID \
  {0x1eb90707, 0xdf59, 0x48b7, \
    { 0x9d, 0x42, 0xd8, 0xbf, 0x63, 0x0a, 0xe7, 0x44 }}

class NS_NO_VTABLE nsIContentSignatureReceiverCallback : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTSIGNATURERECEIVERCALLBACK_IID)

  /* void contextCreated (in boolean successful); */
  NS_IMETHOD ContextCreated(bool successful) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentSignatureReceiverCallback, NS_ICONTENTSIGNATURERECEIVERCALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTSIGNATURERECEIVERCALLBACK \
  NS_IMETHOD ContextCreated(bool successful) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICONTENTSIGNATURERECEIVERCALLBACK \
  nsresult ContextCreated(bool successful); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTSIGNATURERECEIVERCALLBACK(_to) \
  NS_IMETHOD ContextCreated(bool successful) override { return _to ContextCreated(successful); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTSIGNATURERECEIVERCALLBACK(_to) \
  NS_IMETHOD ContextCreated(bool successful) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ContextCreated(successful); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsContentSignatureReceiverCallback : public nsIContentSignatureReceiverCallback
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICONTENTSIGNATURERECEIVERCALLBACK

  nsContentSignatureReceiverCallback();

private:
  ~nsContentSignatureReceiverCallback();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsContentSignatureReceiverCallback, nsIContentSignatureReceiverCallback)

nsContentSignatureReceiverCallback::nsContentSignatureReceiverCallback()
{
  /* member initializers and constructor code */
}

nsContentSignatureReceiverCallback::~nsContentSignatureReceiverCallback()
{
  /* destructor code */
}

/* void contextCreated (in boolean successful); */
NS_IMETHODIMP nsContentSignatureReceiverCallback::ContextCreated(bool successful)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIContentSignatureVerifier_h__ */