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 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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/toolkit/components/reputationservice/nsILoginReputation.idl
 */

#ifndef __gen_nsILoginReputation_h__
#define __gen_nsILoginReputation_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 nsIURI; /* forward declaration */

namespace mozilla {
namespace dom {
class HTMLInputElement; /* webidl HTMLInputElement */
} // namespace dom
} // namespace mozilla


/* starting interface:    nsILoginReputationVerdictType */
#define NS_ILOGINREPUTATIONVERDICTTYPE_IID_STR "6219f9da-297e-446d-8d47-ccdd8e72a1d5"

#define NS_ILOGINREPUTATIONVERDICTTYPE_IID \
  {0x6219f9da, 0x297e, 0x446d, \
    { 0x8d, 0x47, 0xcc, 0xdd, 0x8e, 0x72, 0xa1, 0xd5 }}

class NS_NO_VTABLE nsILoginReputationVerdictType : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOGINREPUTATIONVERDICTTYPE_IID)

  enum {
    UNSPECIFIED = 0U,
    SAFE = 1U,
    LOW_REPUTATION = 2U,
    PHISHING = 3U
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsILoginReputationVerdictType, NS_ILOGINREPUTATIONVERDICTTYPE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILOGINREPUTATIONVERDICTTYPE \

/* 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_NSILOGINREPUTATIONVERDICTTYPE \

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILOGINREPUTATIONVERDICTTYPE(_to) \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSILOGINREPUTATIONVERDICTTYPE(_to) \


/* starting interface:    nsILoginReputationQuery */
#define NS_ILOGINREPUTATIONQUERY_IID_STR "c21ffe59-595f-46c8-9052-fefb639e196e"

#define NS_ILOGINREPUTATIONQUERY_IID \
  {0xc21ffe59, 0x595f, 0x46c8, \
    { 0x90, 0x52, 0xfe, 0xfb, 0x63, 0x9e, 0x19, 0x6e }}

class NS_NO_VTABLE nsILoginReputationQuery : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOGINREPUTATIONQUERY_IID)

  /* readonly attribute nsIURI formURI; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFormURI(nsIURI **aFormURI) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsILoginReputationQuery, NS_ILOGINREPUTATIONQUERY_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILOGINREPUTATIONQUERY \
  NS_IMETHOD GetFormURI(nsIURI **aFormURI) 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_NSILOGINREPUTATIONQUERY \
  nsresult GetFormURI(nsIURI **aFormURI); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILOGINREPUTATIONQUERY(_to) \
  NS_IMETHOD GetFormURI(nsIURI **aFormURI) override { return _to GetFormURI(aFormURI); } 

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


/* starting interface:    nsILoginReputationQueryCallback */
#define NS_ILOGINREPUTATIONQUERYCALLBACK_IID_STR "b527be1e-8fbb-41d9-bee4-267a71236368"

#define NS_ILOGINREPUTATIONQUERYCALLBACK_IID \
  {0xb527be1e, 0x8fbb, 0x41d9, \
    { 0xbe, 0xe4, 0x26, 0x7a, 0x71, 0x23, 0x63, 0x68 }}

class NS_NO_VTABLE nsILoginReputationQueryCallback : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOGINREPUTATIONQUERYCALLBACK_IID)

  /* void onComplete (in nsresult aStatus, in unsigned long aVerdict); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnComplete(nsresult aStatus, uint32_t aVerdict) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsILoginReputationQueryCallback, NS_ILOGINREPUTATIONQUERYCALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILOGINREPUTATIONQUERYCALLBACK \
  NS_IMETHOD OnComplete(nsresult aStatus, uint32_t aVerdict) 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_NSILOGINREPUTATIONQUERYCALLBACK \
  nsresult OnComplete(nsresult aStatus, uint32_t aVerdict); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILOGINREPUTATIONQUERYCALLBACK(_to) \
  NS_IMETHOD OnComplete(nsresult aStatus, uint32_t aVerdict) override { return _to OnComplete(aStatus, aVerdict); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSILOGINREPUTATIONQUERYCALLBACK(_to) \
  NS_IMETHOD OnComplete(nsresult aStatus, uint32_t aVerdict) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnComplete(aStatus, aVerdict); } 


/* starting interface:    nsILoginReputationService */
#define NS_ILOGINREPUTATIONSERVICE_IID_STR "1b3f1dfe-ce3a-486b-953e-ce5ac863eff9"

#define NS_ILOGINREPUTATIONSERVICE_IID \
  {0x1b3f1dfe, 0xce3a, 0x486b, \
    { 0x95, 0x3e, 0xce, 0x5a, 0xc8, 0x63, 0xef, 0xf9 }}

class NS_NO_VTABLE nsILoginReputationService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOGINREPUTATIONSERVICE_IID)

  /* void init (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(void) = 0;

  /* void queryReputationAsync (in HTMLInputElement aInput, in nsILoginReputationQueryCallback aCallback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD QueryReputationAsync(mozilla::dom::HTMLInputElement *aInput, nsILoginReputationQueryCallback *aCallback) = 0;

  /* void queryReputation (in nsILoginReputationQuery aQuery, in nsILoginReputationQueryCallback aCallback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD QueryReputation(nsILoginReputationQuery *aQuery, nsILoginReputationQueryCallback *aCallback) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsILoginReputationService, NS_ILOGINREPUTATIONSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILOGINREPUTATIONSERVICE \
  NS_IMETHOD Init(void) override; \
  NS_IMETHOD QueryReputationAsync(mozilla::dom::HTMLInputElement *aInput, nsILoginReputationQueryCallback *aCallback) override; \
  NS_IMETHOD QueryReputation(nsILoginReputationQuery *aQuery, nsILoginReputationQueryCallback *aCallback) 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_NSILOGINREPUTATIONSERVICE \
  nsresult Init(void); \
  nsresult QueryReputationAsync(mozilla::dom::HTMLInputElement *aInput, nsILoginReputationQueryCallback *aCallback); \
  nsresult QueryReputation(nsILoginReputationQuery *aQuery, nsILoginReputationQueryCallback *aCallback); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILOGINREPUTATIONSERVICE(_to) \
  NS_IMETHOD Init(void) override { return _to Init(); } \
  NS_IMETHOD QueryReputationAsync(mozilla::dom::HTMLInputElement *aInput, nsILoginReputationQueryCallback *aCallback) override { return _to QueryReputationAsync(aInput, aCallback); } \
  NS_IMETHOD QueryReputation(nsILoginReputationQuery *aQuery, nsILoginReputationQueryCallback *aCallback) override { return _to QueryReputation(aQuery, aCallback); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSILOGINREPUTATIONSERVICE(_to) \
  NS_IMETHOD Init(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
  NS_IMETHOD QueryReputationAsync(mozilla::dom::HTMLInputElement *aInput, nsILoginReputationQueryCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->QueryReputationAsync(aInput, aCallback); } \
  NS_IMETHOD QueryReputation(nsILoginReputationQuery *aQuery, nsILoginReputationQueryCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->QueryReputation(aQuery, aCallback); } 


#endif /* __gen_nsILoginReputation_h__ */