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

nsIBlocklistPrompt

nsIBlocklistService

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 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIBlocklistService.idl
 */

#ifndef __gen_nsIBlocklistService_h__
#define __gen_nsIBlocklistService_h__


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

#include "js/Value.h"

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

class nsIVariant; /* forward declaration */


/* starting interface:    nsIBlocklistService */
#define NS_IBLOCKLISTSERVICE_IID_STR "a6dcc76e-9f62-4cc1-a470-b483a1a6f096"

#define NS_IBLOCKLISTSERVICE_IID \
  {0xa6dcc76e, 0x9f62, 0x4cc1, \
    { 0xa4, 0x70, 0xb4, 0x83, 0xa1, 0xa6, 0xf0, 0x96 }}

class NS_NO_VTABLE nsIBlocklistService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBLOCKLISTSERVICE_IID)

  enum {
    STATE_NOT_BLOCKED = 0U,
    STATE_SOFTBLOCKED = 1U,
    STATE_BLOCKED = 2U,
    STATE_OUTDATED = 3U,
    STATE_VULNERABLE_UPDATE_AVAILABLE = 4U,
    STATE_VULNERABLE_NO_UPDATE = 5U
  };

  /* boolean isAddonBlocklisted (in jsval addon, [optional] in AString appVersion, [optional] in AString toolkitVersion); */
  NS_IMETHOD IsAddonBlocklisted(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, bool *_retval) = 0;

  /* unsigned long getAddonBlocklistState (in jsval addon, [optional] in AString appVersion, [optional] in AString toolkitVersion); */
  NS_IMETHOD GetAddonBlocklistState(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, uint32_t *_retval) = 0;

  /* unsigned long getPluginBlocklistState (in nsIPluginTag plugin, [optional] in AString appVersion, [optional] in AString toolkitVersion); */
  NS_IMETHOD GetPluginBlocklistState(nsIPluginTag *plugin, const nsAString & appVersion, const nsAString & toolkitVersion, uint32_t *_retval) = 0;

  /* AString getAddonBlocklistURL (in jsval addon, [optional] in AString appVersion, [optional] in AString toolkitVersion); */
  NS_IMETHOD GetAddonBlocklistURL(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, nsAString & _retval) = 0;

  /* AString getPluginBlocklistURL (in nsIPluginTag plugin); */
  NS_IMETHOD GetPluginBlocklistURL(nsIPluginTag *plugin, nsAString & _retval) = 0;

  /* AString getPluginInfoURL (in nsIPluginTag plugin); */
  NS_IMETHOD GetPluginInfoURL(nsIPluginTag *plugin, nsAString & _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIBlocklistService, NS_IBLOCKLISTSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIBLOCKLISTSERVICE \
  NS_IMETHOD IsAddonBlocklisted(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, bool *_retval) override; \
  NS_IMETHOD GetAddonBlocklistState(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, uint32_t *_retval) override; \
  NS_IMETHOD GetPluginBlocklistState(nsIPluginTag *plugin, const nsAString & appVersion, const nsAString & toolkitVersion, uint32_t *_retval) override; \
  NS_IMETHOD GetAddonBlocklistURL(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, nsAString & _retval) override; \
  NS_IMETHOD GetPluginBlocklistURL(nsIPluginTag *plugin, nsAString & _retval) override; \
  NS_IMETHOD GetPluginInfoURL(nsIPluginTag *plugin, nsAString & _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_NSIBLOCKLISTSERVICE \
  nsresult IsAddonBlocklisted(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, bool *_retval); \
  nsresult GetAddonBlocklistState(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, uint32_t *_retval); \
  nsresult GetPluginBlocklistState(nsIPluginTag *plugin, const nsAString & appVersion, const nsAString & toolkitVersion, uint32_t *_retval); \
  nsresult GetAddonBlocklistURL(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, nsAString & _retval); \
  nsresult GetPluginBlocklistURL(nsIPluginTag *plugin, nsAString & _retval); \
  nsresult GetPluginInfoURL(nsIPluginTag *plugin, nsAString & _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIBLOCKLISTSERVICE(_to) \
  NS_IMETHOD IsAddonBlocklisted(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, bool *_retval) override { return _to IsAddonBlocklisted(addon, appVersion, toolkitVersion, _retval); } \
  NS_IMETHOD GetAddonBlocklistState(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, uint32_t *_retval) override { return _to GetAddonBlocklistState(addon, appVersion, toolkitVersion, _retval); } \
  NS_IMETHOD GetPluginBlocklistState(nsIPluginTag *plugin, const nsAString & appVersion, const nsAString & toolkitVersion, uint32_t *_retval) override { return _to GetPluginBlocklistState(plugin, appVersion, toolkitVersion, _retval); } \
  NS_IMETHOD GetAddonBlocklistURL(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, nsAString & _retval) override { return _to GetAddonBlocklistURL(addon, appVersion, toolkitVersion, _retval); } \
  NS_IMETHOD GetPluginBlocklistURL(nsIPluginTag *plugin, nsAString & _retval) override { return _to GetPluginBlocklistURL(plugin, _retval); } \
  NS_IMETHOD GetPluginInfoURL(nsIPluginTag *plugin, nsAString & _retval) override { return _to GetPluginInfoURL(plugin, _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_NSIBLOCKLISTSERVICE(_to) \
  NS_IMETHOD IsAddonBlocklisted(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsAddonBlocklisted(addon, appVersion, toolkitVersion, _retval); } \
  NS_IMETHOD GetAddonBlocklistState(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddonBlocklistState(addon, appVersion, toolkitVersion, _retval); } \
  NS_IMETHOD GetPluginBlocklistState(nsIPluginTag *plugin, const nsAString & appVersion, const nsAString & toolkitVersion, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPluginBlocklistState(plugin, appVersion, toolkitVersion, _retval); } \
  NS_IMETHOD GetAddonBlocklistURL(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddonBlocklistURL(addon, appVersion, toolkitVersion, _retval); } \
  NS_IMETHOD GetPluginBlocklistURL(nsIPluginTag *plugin, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPluginBlocklistURL(plugin, _retval); } \
  NS_IMETHOD GetPluginInfoURL(nsIPluginTag *plugin, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPluginInfoURL(plugin, _retval); } 

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

/* Header file */
class nsBlocklistService : public nsIBlocklistService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIBLOCKLISTSERVICE

  nsBlocklistService();

private:
  ~nsBlocklistService();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsBlocklistService, nsIBlocklistService)

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

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

/* boolean isAddonBlocklisted (in jsval addon, [optional] in AString appVersion, [optional] in AString toolkitVersion); */
NS_IMETHODIMP nsBlocklistService::IsAddonBlocklisted(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* unsigned long getAddonBlocklistState (in jsval addon, [optional] in AString appVersion, [optional] in AString toolkitVersion); */
NS_IMETHODIMP nsBlocklistService::GetAddonBlocklistState(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, uint32_t *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* unsigned long getPluginBlocklistState (in nsIPluginTag plugin, [optional] in AString appVersion, [optional] in AString toolkitVersion); */
NS_IMETHODIMP nsBlocklistService::GetPluginBlocklistState(nsIPluginTag *plugin, const nsAString & appVersion, const nsAString & toolkitVersion, uint32_t *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString getAddonBlocklistURL (in jsval addon, [optional] in AString appVersion, [optional] in AString toolkitVersion); */
NS_IMETHODIMP nsBlocklistService::GetAddonBlocklistURL(JS::HandleValue addon, const nsAString & appVersion, const nsAString & toolkitVersion, nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString getPluginBlocklistURL (in nsIPluginTag plugin); */
NS_IMETHODIMP nsBlocklistService::GetPluginBlocklistURL(nsIPluginTag *plugin, nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString getPluginInfoURL (in nsIPluginTag plugin); */
NS_IMETHODIMP nsBlocklistService::GetPluginInfoURL(nsIPluginTag *plugin, nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIBlocklistPrompt */
#define NS_IBLOCKLISTPROMPT_IID_STR "ba915921-b9c0-400d-8e4f-ca1b80c5699a"

#define NS_IBLOCKLISTPROMPT_IID \
  {0xba915921, 0xb9c0, 0x400d, \
    { 0x8e, 0x4f, 0xca, 0x1b, 0x80, 0xc5, 0x69, 0x9a }}

class NS_NO_VTABLE nsIBlocklistPrompt : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBLOCKLISTPROMPT_IID)

  /* void prompt ([array, size_is (aCount)] in nsIVariant aAddons, [optional] in uint32_t aCount); */
  NS_IMETHOD Prompt(nsIVariant **aAddons, uint32_t aCount) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIBlocklistPrompt, NS_IBLOCKLISTPROMPT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIBLOCKLISTPROMPT \
  NS_IMETHOD Prompt(nsIVariant **aAddons, uint32_t aCount) 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_NSIBLOCKLISTPROMPT \
  nsresult Prompt(nsIVariant **aAddons, uint32_t aCount); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIBLOCKLISTPROMPT(_to) \
  NS_IMETHOD Prompt(nsIVariant **aAddons, uint32_t aCount) override { return _to Prompt(aAddons, aCount); } 

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

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

/* Header file */
class nsBlocklistPrompt : public nsIBlocklistPrompt
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIBLOCKLISTPROMPT

  nsBlocklistPrompt();

private:
  ~nsBlocklistPrompt();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsBlocklistPrompt, nsIBlocklistPrompt)

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

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

/* void prompt ([array, size_is (aCount)] in nsIVariant aAddons, [optional] in uint32_t aCount); */
NS_IMETHODIMP nsBlocklistPrompt::Prompt(nsIVariant **aAddons, uint32_t aCount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIBlocklistService_h__ */