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 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/security/manager/ssl/nsICertTree.idl
 */

#ifndef __gen_nsICertTree_h__
#define __gen_nsICertTree_h__


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

#ifndef __gen_nsITreeView_h__
#include "nsITreeView.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 nsIX509Cert; /* forward declaration */

class nsIX509CertList; /* forward declaration */


/* starting interface:    nsICertTreeItem */
#define NS_ICERTTREEITEM_IID_STR "d0180863-606e-49e6-8324-cf45ed4dd891"

#define NS_ICERTTREEITEM_IID \
  {0xd0180863, 0x606e, 0x49e6, \
    { 0x83, 0x24, 0xcf, 0x45, 0xed, 0x4d, 0xd8, 0x91 }}

class NS_NO_VTABLE nsICertTreeItem : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICERTTREEITEM_IID)

  /* [must_use] readonly attribute nsIX509Cert cert; */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD GetCert(nsIX509Cert **aCert) = 0;

  /* [must_use] readonly attribute AString hostPort; */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD GetHostPort(nsAString& aHostPort) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICertTreeItem, NS_ICERTTREEITEM_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICERTTREEITEM \
  MOZ_MUST_USE NS_IMETHOD GetCert(nsIX509Cert **aCert) override; \
  MOZ_MUST_USE NS_IMETHOD GetHostPort(nsAString& aHostPort) 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_NSICERTTREEITEM \
  MOZ_MUST_USE nsresult GetCert(nsIX509Cert **aCert); \
  MOZ_MUST_USE nsresult GetHostPort(nsAString& aHostPort); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICERTTREEITEM(_to) \
  MOZ_MUST_USE NS_IMETHOD GetCert(nsIX509Cert **aCert) override { return _to GetCert(aCert); } \
  MOZ_MUST_USE NS_IMETHOD GetHostPort(nsAString& aHostPort) override { return _to GetHostPort(aHostPort); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICERTTREEITEM(_to) \
  MOZ_MUST_USE NS_IMETHOD GetCert(nsIX509Cert **aCert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCert(aCert); } \
  MOZ_MUST_USE NS_IMETHOD GetHostPort(nsAString& aHostPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHostPort(aHostPort); } 


/* starting interface:    nsICertTree */
#define NS_ICERTTREE_IID_STR "55d5ad6b-5572-47fe-941c-f01fe723659e"

#define NS_ICERTTREE_IID \
  {0x55d5ad6b, 0x5572, 0x47fe, \
    { 0x94, 0x1c, 0xf0, 0x1f, 0xe7, 0x23, 0x65, 0x9e }}

class NS_NO_VTABLE nsICertTree : public nsITreeView {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICERTTREE_IID)

  /* [must_use] void loadCerts (in unsigned long type); */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD LoadCerts(uint32_t type) = 0;

  /* [must_use] void loadCertsFromCache (in nsIX509CertList cache, in unsigned long type); */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD LoadCertsFromCache(nsIX509CertList *cache, uint32_t type) = 0;

  /* [must_use] nsIX509Cert getCert (in unsigned long index); */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD GetCert(uint32_t index, nsIX509Cert **_retval) = 0;

  /* [must_use] nsICertTreeItem getTreeItem (in unsigned long index); */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD GetTreeItem(uint32_t index, nsICertTreeItem **_retval) = 0;

  /* [must_use] void deleteEntryObject (in unsigned long index); */
  JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD DeleteEntryObject(uint32_t index) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICertTree, NS_ICERTTREE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICERTTREE \
  MOZ_MUST_USE NS_IMETHOD LoadCerts(uint32_t type) override; \
  MOZ_MUST_USE NS_IMETHOD LoadCertsFromCache(nsIX509CertList *cache, uint32_t type) override; \
  MOZ_MUST_USE NS_IMETHOD GetCert(uint32_t index, nsIX509Cert **_retval) override; \
  MOZ_MUST_USE NS_IMETHOD GetTreeItem(uint32_t index, nsICertTreeItem **_retval) override; \
  MOZ_MUST_USE NS_IMETHOD DeleteEntryObject(uint32_t index) 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_NSICERTTREE \
  MOZ_MUST_USE nsresult LoadCerts(uint32_t type); \
  MOZ_MUST_USE nsresult LoadCertsFromCache(nsIX509CertList *cache, uint32_t type); \
  MOZ_MUST_USE nsresult GetCert(uint32_t index, nsIX509Cert **_retval); \
  MOZ_MUST_USE nsresult GetTreeItem(uint32_t index, nsICertTreeItem **_retval); \
  MOZ_MUST_USE nsresult DeleteEntryObject(uint32_t index); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICERTTREE(_to) \
  MOZ_MUST_USE NS_IMETHOD LoadCerts(uint32_t type) override { return _to LoadCerts(type); } \
  MOZ_MUST_USE NS_IMETHOD LoadCertsFromCache(nsIX509CertList *cache, uint32_t type) override { return _to LoadCertsFromCache(cache, type); } \
  MOZ_MUST_USE NS_IMETHOD GetCert(uint32_t index, nsIX509Cert **_retval) override { return _to GetCert(index, _retval); } \
  MOZ_MUST_USE NS_IMETHOD GetTreeItem(uint32_t index, nsICertTreeItem **_retval) override { return _to GetTreeItem(index, _retval); } \
  MOZ_MUST_USE NS_IMETHOD DeleteEntryObject(uint32_t index) override { return _to DeleteEntryObject(index); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICERTTREE(_to) \
  MOZ_MUST_USE NS_IMETHOD LoadCerts(uint32_t type) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadCerts(type); } \
  MOZ_MUST_USE NS_IMETHOD LoadCertsFromCache(nsIX509CertList *cache, uint32_t type) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadCertsFromCache(cache, type); } \
  MOZ_MUST_USE NS_IMETHOD GetCert(uint32_t index, nsIX509Cert **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCert(index, _retval); } \
  MOZ_MUST_USE NS_IMETHOD GetTreeItem(uint32_t index, nsICertTreeItem **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTreeItem(index, _retval); } \
  MOZ_MUST_USE NS_IMETHOD DeleteEntryObject(uint32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteEntryObject(index); } 


#define NS_CERTTREE_CID { 0x4ea60761, 0x31d6, 0x491d, \
                         { 0x9e, 0x34, 0x4b, 0x53, 0xa2, 0x6c, 0x41, 0x6c } }
#define NS_CERTTREE_CONTRACTID "@mozilla.org/security/nsCertTree;1"

#endif /* __gen_nsICertTree_h__ */