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

#ifndef __gen_nsIOSKeyStore_h__
#define __gen_nsIOSKeyStore_h__


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

#include "js/Value.h"

#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

/* starting interface:    nsIOSKeyStore */
#define NS_IOSKEYSTORE_IID_STR "57972956-5718-42d2-8070-b3fc72212eaf"

#define NS_IOSKEYSTORE_IID \
  {0x57972956, 0x5718, 0x42d2, \
    { 0x80, 0x70, 0xb3, 0xfc, 0x72, 0x21, 0x2e, 0xaf }}

class NS_NO_VTABLE nsIOSKeyStore : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IOSKEYSTORE_IID)

  /* [implicit_jscontext,must_use] Promise asyncGenerateSecret (in ACString label); */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD AsyncGenerateSecret(const nsACString& label, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;

  /* [implicit_jscontext,must_use] Promise asyncSecretAvailable (in ACString label); */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD AsyncSecretAvailable(const nsACString& label, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;

  /* [implicit_jscontext,must_use] Promise asyncRecoverSecret (in ACString label, in ACString recoveryPhrase); */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD AsyncRecoverSecret(const nsACString& label, const nsACString& recoveryPhrase, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;

  /* [implicit_jscontext,must_use] Promise asyncDeleteSecret (in ACString label); */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD AsyncDeleteSecret(const nsACString& label, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;

  /* [implicit_jscontext,must_use] Promise asyncEncryptBytes (in ACString label, in unsigned long inLen, [array, size_is (inLen)] in uint8_t inBytes); */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD AsyncEncryptBytes(const nsACString& label, uint32_t inLen, uint8_t *inBytes, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;

  /* [implicit_jscontext,must_use] Promise asyncDecryptBytes (in ACString label, in ACString encryptedBase64Text); */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD AsyncDecryptBytes(const nsACString& label, const nsACString& encryptedBase64Text, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;

  /* [implicit_jscontext,must_use] Promise asyncLock (); */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD AsyncLock(JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;

  /* [implicit_jscontext,must_use] Promise asyncUnlock (); */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD AsyncUnlock(JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;

  /* readonly attribute bool isNSSKeyStore; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsNSSKeyStore(bool *aIsNSSKeyStore) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIOSKeyStore, NS_IOSKEYSTORE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIOSKEYSTORE \
  MOZ_MUST_USE NS_IMETHOD AsyncGenerateSecret(const nsACString& label, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
  MOZ_MUST_USE NS_IMETHOD AsyncSecretAvailable(const nsACString& label, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
  MOZ_MUST_USE NS_IMETHOD AsyncRecoverSecret(const nsACString& label, const nsACString& recoveryPhrase, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
  MOZ_MUST_USE NS_IMETHOD AsyncDeleteSecret(const nsACString& label, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
  MOZ_MUST_USE NS_IMETHOD AsyncEncryptBytes(const nsACString& label, uint32_t inLen, uint8_t *inBytes, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
  MOZ_MUST_USE NS_IMETHOD AsyncDecryptBytes(const nsACString& label, const nsACString& encryptedBase64Text, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
  MOZ_MUST_USE NS_IMETHOD AsyncLock(JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
  MOZ_MUST_USE NS_IMETHOD AsyncUnlock(JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
  NS_IMETHOD GetIsNSSKeyStore(bool *aIsNSSKeyStore) 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_NSIOSKEYSTORE \
  MOZ_MUST_USE nsresult AsyncGenerateSecret(const nsACString& label, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
  MOZ_MUST_USE nsresult AsyncSecretAvailable(const nsACString& label, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
  MOZ_MUST_USE nsresult AsyncRecoverSecret(const nsACString& label, const nsACString& recoveryPhrase, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
  MOZ_MUST_USE nsresult AsyncDeleteSecret(const nsACString& label, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
  MOZ_MUST_USE nsresult AsyncEncryptBytes(const nsACString& label, uint32_t inLen, uint8_t *inBytes, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
  MOZ_MUST_USE nsresult AsyncDecryptBytes(const nsACString& label, const nsACString& encryptedBase64Text, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
  MOZ_MUST_USE nsresult AsyncLock(JSContext* cx, ::mozilla::dom::Promise * * _retval); \
  MOZ_MUST_USE nsresult AsyncUnlock(JSContext* cx, ::mozilla::dom::Promise * * _retval); \
  nsresult GetIsNSSKeyStore(bool *aIsNSSKeyStore); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIOSKEYSTORE(_to) \
  MOZ_MUST_USE NS_IMETHOD AsyncGenerateSecret(const nsACString& label, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to AsyncGenerateSecret(label, cx, _retval); } \
  MOZ_MUST_USE NS_IMETHOD AsyncSecretAvailable(const nsACString& label, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to AsyncSecretAvailable(label, cx, _retval); } \
  MOZ_MUST_USE NS_IMETHOD AsyncRecoverSecret(const nsACString& label, const nsACString& recoveryPhrase, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to AsyncRecoverSecret(label, recoveryPhrase, cx, _retval); } \
  MOZ_MUST_USE NS_IMETHOD AsyncDeleteSecret(const nsACString& label, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to AsyncDeleteSecret(label, cx, _retval); } \
  MOZ_MUST_USE NS_IMETHOD AsyncEncryptBytes(const nsACString& label, uint32_t inLen, uint8_t *inBytes, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to AsyncEncryptBytes(label, inLen, inBytes, cx, _retval); } \
  MOZ_MUST_USE NS_IMETHOD AsyncDecryptBytes(const nsACString& label, const nsACString& encryptedBase64Text, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to AsyncDecryptBytes(label, encryptedBase64Text, cx, _retval); } \
  MOZ_MUST_USE NS_IMETHOD AsyncLock(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to AsyncLock(cx, _retval); } \
  MOZ_MUST_USE NS_IMETHOD AsyncUnlock(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to AsyncUnlock(cx, _retval); } \
  NS_IMETHOD GetIsNSSKeyStore(bool *aIsNSSKeyStore) override { return _to GetIsNSSKeyStore(aIsNSSKeyStore); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIOSKEYSTORE(_to) \
  MOZ_MUST_USE NS_IMETHOD AsyncGenerateSecret(const nsACString& label, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncGenerateSecret(label, cx, _retval); } \
  MOZ_MUST_USE NS_IMETHOD AsyncSecretAvailable(const nsACString& label, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncSecretAvailable(label, cx, _retval); } \
  MOZ_MUST_USE NS_IMETHOD AsyncRecoverSecret(const nsACString& label, const nsACString& recoveryPhrase, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncRecoverSecret(label, recoveryPhrase, cx, _retval); } \
  MOZ_MUST_USE NS_IMETHOD AsyncDeleteSecret(const nsACString& label, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncDeleteSecret(label, cx, _retval); } \
  MOZ_MUST_USE NS_IMETHOD AsyncEncryptBytes(const nsACString& label, uint32_t inLen, uint8_t *inBytes, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncEncryptBytes(label, inLen, inBytes, cx, _retval); } \
  MOZ_MUST_USE NS_IMETHOD AsyncDecryptBytes(const nsACString& label, const nsACString& encryptedBase64Text, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncDecryptBytes(label, encryptedBase64Text, cx, _retval); } \
  MOZ_MUST_USE NS_IMETHOD AsyncLock(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncLock(cx, _retval); } \
  MOZ_MUST_USE NS_IMETHOD AsyncUnlock(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncUnlock(cx, _retval); } \
  NS_IMETHOD GetIsNSSKeyStore(bool *aIsNSSKeyStore) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsNSSKeyStore(aIsNSSKeyStore); } 


#endif /* __gen_nsIOSKeyStore_h__ */