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

nsIContentPermissionPrompt

nsIContentPermissionRequest

nsIContentPermissionRequestCallback

nsIContentPermissionRequester

nsIContentPermissionType

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 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIContentPermissionPrompt.idl
 */

#ifndef __gen_nsIContentPermissionPrompt_h__
#define __gen_nsIContentPermissionPrompt_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 nsIPrincipal; /* forward declaration */

class mozIDOMWindow; /* forward declaration */

class nsIDOMElement; /* forward declaration */

class nsIArray; /* forward declaration */


/* starting interface:    nsIContentPermissionType */
#define NS_ICONTENTPERMISSIONTYPE_IID_STR "ef4db3b8-ca9c-4b1d-8f81-fd88ec32af13"

#define NS_ICONTENTPERMISSIONTYPE_IID \
  {0xef4db3b8, 0xca9c, 0x4b1d, \
    { 0x8f, 0x81, 0xfd, 0x88, 0xec, 0x32, 0xaf, 0x13 }}

class NS_NO_VTABLE nsIContentPermissionType : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPERMISSIONTYPE_IID)

  /* readonly attribute ACString type; */
  NS_IMETHOD GetType(nsACString & aType) = 0;

  /* readonly attribute ACString access; */
  NS_IMETHOD GetAccess(nsACString & aAccess) = 0;

  /* readonly attribute nsIArray options; */
  NS_IMETHOD GetOptions(nsIArray * *aOptions) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPermissionType, NS_ICONTENTPERMISSIONTYPE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTPERMISSIONTYPE \
  NS_IMETHOD GetType(nsACString & aType) override; \
  NS_IMETHOD GetAccess(nsACString & aAccess) override; \
  NS_IMETHOD GetOptions(nsIArray * *aOptions) 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_NSICONTENTPERMISSIONTYPE \
  nsresult GetType(nsACString & aType); \
  nsresult GetAccess(nsACString & aAccess); \
  nsresult GetOptions(nsIArray * *aOptions); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTPERMISSIONTYPE(_to) \
  NS_IMETHOD GetType(nsACString & aType) override { return _to GetType(aType); } \
  NS_IMETHOD GetAccess(nsACString & aAccess) override { return _to GetAccess(aAccess); } \
  NS_IMETHOD GetOptions(nsIArray * *aOptions) override { return _to GetOptions(aOptions); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTPERMISSIONTYPE(_to) \
  NS_IMETHOD GetType(nsACString & aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  NS_IMETHOD GetAccess(nsACString & aAccess) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccess(aAccess); } \
  NS_IMETHOD GetOptions(nsIArray * *aOptions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOptions(aOptions); } 

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

/* Header file */
class nsContentPermissionType : public nsIContentPermissionType
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICONTENTPERMISSIONTYPE

  nsContentPermissionType();

private:
  ~nsContentPermissionType();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsContentPermissionType, nsIContentPermissionType)

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

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

/* readonly attribute ACString type; */
NS_IMETHODIMP nsContentPermissionType::GetType(nsACString & aType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute ACString access; */
NS_IMETHODIMP nsContentPermissionType::GetAccess(nsACString & aAccess)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIArray options; */
NS_IMETHODIMP nsContentPermissionType::GetOptions(nsIArray * *aOptions)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIContentPermissionRequestCallback */
#define NS_ICONTENTPERMISSIONREQUESTCALLBACK_IID_STR "5fb5bb60-7069-11e4-9803-0800200c9a66"

#define NS_ICONTENTPERMISSIONREQUESTCALLBACK_IID \
  {0x5fb5bb60, 0x7069, 0x11e4, \
    { 0x98, 0x03, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}

class NS_NO_VTABLE nsIContentPermissionRequestCallback : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPERMISSIONREQUESTCALLBACK_IID)

  /* void notifyVisibility (in boolean isVisible); */
  NS_IMETHOD NotifyVisibility(bool isVisible) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPermissionRequestCallback, NS_ICONTENTPERMISSIONREQUESTCALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTPERMISSIONREQUESTCALLBACK \
  NS_IMETHOD NotifyVisibility(bool isVisible) 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_NSICONTENTPERMISSIONREQUESTCALLBACK \
  nsresult NotifyVisibility(bool isVisible); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTPERMISSIONREQUESTCALLBACK(_to) \
  NS_IMETHOD NotifyVisibility(bool isVisible) override { return _to NotifyVisibility(isVisible); } 

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

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

/* Header file */
class nsContentPermissionRequestCallback : public nsIContentPermissionRequestCallback
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICONTENTPERMISSIONREQUESTCALLBACK

  nsContentPermissionRequestCallback();

private:
  ~nsContentPermissionRequestCallback();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsContentPermissionRequestCallback, nsIContentPermissionRequestCallback)

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

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

/* void notifyVisibility (in boolean isVisible); */
NS_IMETHODIMP nsContentPermissionRequestCallback::NotifyVisibility(bool isVisible)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIContentPermissionRequester */
#define NS_ICONTENTPERMISSIONREQUESTER_IID_STR "f8577124-6a5f-486f-ae04-c5bcae911eb5"

#define NS_ICONTENTPERMISSIONREQUESTER_IID \
  {0xf8577124, 0x6a5f, 0x486f, \
    { 0xae, 0x04, 0xc5, 0xbc, 0xae, 0x91, 0x1e, 0xb5 }}

class NS_NO_VTABLE nsIContentPermissionRequester : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPERMISSIONREQUESTER_IID)

  /* void getVisibility (in nsIContentPermissionRequestCallback callback); */
  NS_IMETHOD GetVisibility(nsIContentPermissionRequestCallback *callback) = 0;

  /* attribute nsIContentPermissionRequestCallback onVisibilityChange; */
  NS_IMETHOD GetOnVisibilityChange(nsIContentPermissionRequestCallback * *aOnVisibilityChange) = 0;
  NS_IMETHOD SetOnVisibilityChange(nsIContentPermissionRequestCallback *aOnVisibilityChange) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPermissionRequester, NS_ICONTENTPERMISSIONREQUESTER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTPERMISSIONREQUESTER \
  NS_IMETHOD GetVisibility(nsIContentPermissionRequestCallback *callback) override; \
  NS_IMETHOD GetOnVisibilityChange(nsIContentPermissionRequestCallback * *aOnVisibilityChange) override; \
  NS_IMETHOD SetOnVisibilityChange(nsIContentPermissionRequestCallback *aOnVisibilityChange) 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_NSICONTENTPERMISSIONREQUESTER \
  nsresult GetVisibility(nsIContentPermissionRequestCallback *callback); \
  nsresult GetOnVisibilityChange(nsIContentPermissionRequestCallback * *aOnVisibilityChange); \
  nsresult SetOnVisibilityChange(nsIContentPermissionRequestCallback *aOnVisibilityChange); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTPERMISSIONREQUESTER(_to) \
  NS_IMETHOD GetVisibility(nsIContentPermissionRequestCallback *callback) override { return _to GetVisibility(callback); } \
  NS_IMETHOD GetOnVisibilityChange(nsIContentPermissionRequestCallback * *aOnVisibilityChange) override { return _to GetOnVisibilityChange(aOnVisibilityChange); } \
  NS_IMETHOD SetOnVisibilityChange(nsIContentPermissionRequestCallback *aOnVisibilityChange) override { return _to SetOnVisibilityChange(aOnVisibilityChange); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTPERMISSIONREQUESTER(_to) \
  NS_IMETHOD GetVisibility(nsIContentPermissionRequestCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisibility(callback); } \
  NS_IMETHOD GetOnVisibilityChange(nsIContentPermissionRequestCallback * *aOnVisibilityChange) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnVisibilityChange(aOnVisibilityChange); } \
  NS_IMETHOD SetOnVisibilityChange(nsIContentPermissionRequestCallback *aOnVisibilityChange) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnVisibilityChange(aOnVisibilityChange); } 

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

/* Header file */
class nsContentPermissionRequester : public nsIContentPermissionRequester
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICONTENTPERMISSIONREQUESTER

  nsContentPermissionRequester();

private:
  ~nsContentPermissionRequester();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsContentPermissionRequester, nsIContentPermissionRequester)

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

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

/* void getVisibility (in nsIContentPermissionRequestCallback callback); */
NS_IMETHODIMP nsContentPermissionRequester::GetVisibility(nsIContentPermissionRequestCallback *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIContentPermissionRequestCallback onVisibilityChange; */
NS_IMETHODIMP nsContentPermissionRequester::GetOnVisibilityChange(nsIContentPermissionRequestCallback * *aOnVisibilityChange)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsContentPermissionRequester::SetOnVisibilityChange(nsIContentPermissionRequestCallback *aOnVisibilityChange)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIContentPermissionRequest */
#define NS_ICONTENTPERMISSIONREQUEST_IID_STR "875733da-0ac0-4a26-8c76-70a30876be46"

#define NS_ICONTENTPERMISSIONREQUEST_IID \
  {0x875733da, 0x0ac0, 0x4a26, \
    { 0x8c, 0x76, 0x70, 0xa3, 0x08, 0x76, 0xbe, 0x46 }}

class NS_NO_VTABLE nsIContentPermissionRequest : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPERMISSIONREQUEST_IID)

  /* readonly attribute nsIArray types; */
  NS_IMETHOD GetTypes(nsIArray * *aTypes) = 0;

  /* readonly attribute nsIPrincipal principal; */
  NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) = 0;

  /* readonly attribute mozIDOMWindow window; */
  NS_IMETHOD GetWindow(mozIDOMWindow * *aWindow) = 0;

  /* readonly attribute nsIDOMElement element; */
  NS_IMETHOD GetElement(nsIDOMElement * *aElement) = 0;

  /* readonly attribute nsIContentPermissionRequester requester; */
  NS_IMETHOD GetRequester(nsIContentPermissionRequester * *aRequester) = 0;

  /* void cancel (); */
  NS_IMETHOD Cancel(void) = 0;

  /* void allow ([optional] in jsval choices); */
  NS_IMETHOD Allow(JS::HandleValue choices) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPermissionRequest, NS_ICONTENTPERMISSIONREQUEST_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTPERMISSIONREQUEST \
  NS_IMETHOD GetTypes(nsIArray * *aTypes) override; \
  NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override; \
  NS_IMETHOD GetWindow(mozIDOMWindow * *aWindow) override; \
  NS_IMETHOD GetElement(nsIDOMElement * *aElement) override; \
  NS_IMETHOD GetRequester(nsIContentPermissionRequester * *aRequester) override; \
  NS_IMETHOD Cancel(void) override; \
  NS_IMETHOD Allow(JS::HandleValue choices) 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_NSICONTENTPERMISSIONREQUEST \
  nsresult GetTypes(nsIArray * *aTypes); \
  nsresult GetPrincipal(nsIPrincipal * *aPrincipal); \
  nsresult GetWindow(mozIDOMWindow * *aWindow); \
  nsresult GetElement(nsIDOMElement * *aElement); \
  nsresult GetRequester(nsIContentPermissionRequester * *aRequester); \
  nsresult Cancel(void); \
  nsresult Allow(JS::HandleValue choices); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTPERMISSIONREQUEST(_to) \
  NS_IMETHOD GetTypes(nsIArray * *aTypes) override { return _to GetTypes(aTypes); } \
  NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override { return _to GetPrincipal(aPrincipal); } \
  NS_IMETHOD GetWindow(mozIDOMWindow * *aWindow) override { return _to GetWindow(aWindow); } \
  NS_IMETHOD GetElement(nsIDOMElement * *aElement) override { return _to GetElement(aElement); } \
  NS_IMETHOD GetRequester(nsIContentPermissionRequester * *aRequester) override { return _to GetRequester(aRequester); } \
  NS_IMETHOD Cancel(void) override { return _to Cancel(); } \
  NS_IMETHOD Allow(JS::HandleValue choices) override { return _to Allow(choices); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTPERMISSIONREQUEST(_to) \
  NS_IMETHOD GetTypes(nsIArray * *aTypes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypes(aTypes); } \
  NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrincipal(aPrincipal); } \
  NS_IMETHOD GetWindow(mozIDOMWindow * *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindow(aWindow); } \
  NS_IMETHOD GetElement(nsIDOMElement * *aElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElement(aElement); } \
  NS_IMETHOD GetRequester(nsIContentPermissionRequester * *aRequester) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequester(aRequester); } \
  NS_IMETHOD Cancel(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(); } \
  NS_IMETHOD Allow(JS::HandleValue choices) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Allow(choices); } 

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

/* Header file */
class nsContentPermissionRequest : public nsIContentPermissionRequest
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICONTENTPERMISSIONREQUEST

  nsContentPermissionRequest();

private:
  ~nsContentPermissionRequest();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsContentPermissionRequest, nsIContentPermissionRequest)

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

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

/* readonly attribute nsIArray types; */
NS_IMETHODIMP nsContentPermissionRequest::GetTypes(nsIArray * *aTypes)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIPrincipal principal; */
NS_IMETHODIMP nsContentPermissionRequest::GetPrincipal(nsIPrincipal * *aPrincipal)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute mozIDOMWindow window; */
NS_IMETHODIMP nsContentPermissionRequest::GetWindow(mozIDOMWindow * *aWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIDOMElement element; */
NS_IMETHODIMP nsContentPermissionRequest::GetElement(nsIDOMElement * *aElement)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIContentPermissionRequester requester; */
NS_IMETHODIMP nsContentPermissionRequest::GetRequester(nsIContentPermissionRequester * *aRequester)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void cancel (); */
NS_IMETHODIMP nsContentPermissionRequest::Cancel()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void allow ([optional] in jsval choices); */
NS_IMETHODIMP nsContentPermissionRequest::Allow(JS::HandleValue choices)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIContentPermissionPrompt */
#define NS_ICONTENTPERMISSIONPROMPT_IID_STR "f72de90d-e954-4e69-9a61-917303029301"

#define NS_ICONTENTPERMISSIONPROMPT_IID \
  {0xf72de90d, 0xe954, 0x4e69, \
    { 0x9a, 0x61, 0x91, 0x73, 0x03, 0x02, 0x93, 0x01 }}

class NS_NO_VTABLE nsIContentPermissionPrompt : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPERMISSIONPROMPT_IID)

  /* void prompt (in nsIContentPermissionRequest request); */
  NS_IMETHOD Prompt(nsIContentPermissionRequest *request) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPermissionPrompt, NS_ICONTENTPERMISSIONPROMPT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTPERMISSIONPROMPT \
  NS_IMETHOD Prompt(nsIContentPermissionRequest *request) 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_NSICONTENTPERMISSIONPROMPT \
  nsresult Prompt(nsIContentPermissionRequest *request); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTPERMISSIONPROMPT(_to) \
  NS_IMETHOD Prompt(nsIContentPermissionRequest *request) override { return _to Prompt(request); } 

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

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

/* Header file */
class nsContentPermissionPrompt : public nsIContentPermissionPrompt
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICONTENTPERMISSIONPROMPT

  nsContentPermissionPrompt();

private:
  ~nsContentPermissionPrompt();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsContentPermissionPrompt, nsIContentPermissionPrompt)

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

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

/* void prompt (in nsIContentPermissionRequest request); */
NS_IMETHODIMP nsContentPermissionPrompt::Prompt(nsIContentPermissionRequest *request)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

#define NS_CONTENT_PERMISSION_PROMPT_CONTRACTID   "@mozilla.org/content-permission/prompt;1"

#endif /* __gen_nsIContentPermissionPrompt_h__ */