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

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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/security/manager/ssl/nsIContentSignatureVerifier.idl
 */

#ifndef __gen_nsIContentSignatureVerifier_h__
#define __gen_nsIContentSignatureVerifier_h__


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

#include "js/GCAnnotations.h"

/* 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)

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

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

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

  /* [must_use] void update (in ACString aData); */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD Update(const nsACString& aData) = 0;

  /* [must_use] boolean end (); */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE 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 \
  MOZ_MUST_USE NS_IMETHOD VerifyContentSignature(const nsACString& aData, const nsACString& aContentSignatureHeader, const nsACString& aCertificateChain, const nsACString& aName, bool *_retval) override; \
  MOZ_MUST_USE NS_IMETHOD CreateContext(const nsACString& aData, const nsACString& aContentSignatureHeader, const nsACString& aCertificateChain, const nsACString& aName) override; \
  MOZ_MUST_USE NS_IMETHOD CreateContextWithoutCertChain(nsIContentSignatureReceiverCallback *aCallback, const nsACString& aContentSignatureHeader, const nsACString& aName) override; \
  MOZ_MUST_USE NS_IMETHOD Update(const nsACString& aData) override; \
  MOZ_MUST_USE 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 \
  MOZ_MUST_USE nsresult VerifyContentSignature(const nsACString& aData, const nsACString& aContentSignatureHeader, const nsACString& aCertificateChain, const nsACString& aName, bool *_retval); \
  MOZ_MUST_USE nsresult CreateContext(const nsACString& aData, const nsACString& aContentSignatureHeader, const nsACString& aCertificateChain, const nsACString& aName); \
  MOZ_MUST_USE nsresult CreateContextWithoutCertChain(nsIContentSignatureReceiverCallback *aCallback, const nsACString& aContentSignatureHeader, const nsACString& aName); \
  MOZ_MUST_USE nsresult Update(const nsACString& aData); \
  MOZ_MUST_USE 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) \
  MOZ_MUST_USE 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); } \
  MOZ_MUST_USE NS_IMETHOD CreateContext(const nsACString& aData, const nsACString& aContentSignatureHeader, const nsACString& aCertificateChain, const nsACString& aName) override { return _to CreateContext(aData, aContentSignatureHeader, aCertificateChain, aName); } \
  MOZ_MUST_USE NS_IMETHOD CreateContextWithoutCertChain(nsIContentSignatureReceiverCallback *aCallback, const nsACString& aContentSignatureHeader, const nsACString& aName) override { return _to CreateContextWithoutCertChain(aCallback, aContentSignatureHeader, aName); } \
  MOZ_MUST_USE NS_IMETHOD Update(const nsACString& aData) override { return _to Update(aData); } \
  MOZ_MUST_USE 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) \
  MOZ_MUST_USE 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); } \
  MOZ_MUST_USE 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); } \
  MOZ_MUST_USE NS_IMETHOD CreateContextWithoutCertChain(nsIContentSignatureReceiverCallback *aCallback, const nsACString& aContentSignatureHeader, const nsACString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateContextWithoutCertChain(aCallback, aContentSignatureHeader, aName); } \
  MOZ_MUST_USE NS_IMETHOD Update(const nsACString& aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Update(aData); } \
  MOZ_MUST_USE NS_IMETHOD End(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->End(_retval); } 


/* 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); */
  JS_HAZ_CAN_RUN_SCRIPT 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); } 


#endif /* __gen_nsIContentSignatureVerifier_h__ */