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

nsIContentPref

nsIContentPrefCallback2

nsIContentPrefService2

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 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIContentPrefService2.idl
 */

#ifndef __gen_nsIContentPrefService2_h__
#define __gen_nsIContentPrefService2_h__


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

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

class nsIContentPrefObserver; /* forward declaration */

class nsIContentPrefCallback2; /* forward declaration */

class nsILoadContext; /* forward declaration */

class nsIContentPref; /* forward declaration */


/* starting interface:    nsIContentPrefService2 */
#define NS_ICONTENTPREFSERVICE2_IID_STR "bed98666-d995-470f-bebd-62476d318576"

#define NS_ICONTENTPREFSERVICE2_IID \
  {0xbed98666, 0xd995, 0x470f, \
    { 0xbe, 0xbd, 0x62, 0x47, 0x6d, 0x31, 0x85, 0x76 }}

class NS_NO_VTABLE nsIContentPrefService2 : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPREFSERVICE2_IID)

  /* void getByName (in AString name, in nsILoadContext context, in nsIContentPrefCallback2 callback); */
  NS_IMETHOD GetByName(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) = 0;

  /* void getByDomainAndName (in AString domain, in AString name, in nsILoadContext context, in nsIContentPrefCallback2 callback); */
  NS_IMETHOD GetByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) = 0;

  /* void getBySubdomainAndName (in AString domain, in AString name, in nsILoadContext context, in nsIContentPrefCallback2 callback); */
  NS_IMETHOD GetBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) = 0;

  /* void getGlobal (in AString name, in nsILoadContext context, in nsIContentPrefCallback2 callback); */
  NS_IMETHOD GetGlobal(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) = 0;

  /* nsIContentPref getCachedByDomainAndName (in AString domain, in AString name, in nsILoadContext context); */
  NS_IMETHOD GetCachedByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPref * *_retval) = 0;

  /* void getCachedBySubdomainAndName (in AString domain, in AString name, in nsILoadContext context, [optional] out unsigned long len, [array, size_is (len), retval] out nsIContentPref prefs); */
  NS_IMETHOD GetCachedBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, uint32_t *len, nsIContentPref * **prefs) = 0;

  /* nsIContentPref getCachedGlobal (in AString name, in nsILoadContext context); */
  NS_IMETHOD GetCachedGlobal(const nsAString & name, nsILoadContext *context, nsIContentPref * *_retval) = 0;

  /* void set (in AString domain, in AString name, in nsIVariant value, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
  NS_IMETHOD Set(const nsAString & domain, const nsAString & name, nsIVariant *value, nsILoadContext *context, nsIContentPrefCallback2 *callback) = 0;

  /* void setGlobal (in AString name, in nsIVariant value, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
  NS_IMETHOD SetGlobal(const nsAString & name, nsIVariant *value, nsILoadContext *context, nsIContentPrefCallback2 *callback) = 0;

  /* void removeByDomainAndName (in AString domain, in AString name, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
  NS_IMETHOD RemoveByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) = 0;

  /* void removeBySubdomainAndName (in AString domain, in AString name, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
  NS_IMETHOD RemoveBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) = 0;

  /* void removeGlobal (in AString name, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
  NS_IMETHOD RemoveGlobal(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) = 0;

  /* void removeByDomain (in AString domain, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
  NS_IMETHOD RemoveByDomain(const nsAString & domain, nsILoadContext *context, nsIContentPrefCallback2 *callback) = 0;

  /* void removeBySubdomain (in AString domain, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
  NS_IMETHOD RemoveBySubdomain(const nsAString & domain, nsILoadContext *context, nsIContentPrefCallback2 *callback) = 0;

  /* void removeByName (in AString name, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
  NS_IMETHOD RemoveByName(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) = 0;

  /* void removeAllDomains (in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
  NS_IMETHOD RemoveAllDomains(nsILoadContext *context, nsIContentPrefCallback2 *callback) = 0;

  /* void removeAllDomainsSince (in unsigned long long since, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
  NS_IMETHOD RemoveAllDomainsSince(uint64_t since, nsILoadContext *context, nsIContentPrefCallback2 *callback) = 0;

  /* void removeAllGlobals (in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
  NS_IMETHOD RemoveAllGlobals(nsILoadContext *context, nsIContentPrefCallback2 *callback) = 0;

  /* void addObserverForName (in AString name, in nsIContentPrefObserver observer); */
  NS_IMETHOD AddObserverForName(const nsAString & name, nsIContentPrefObserver *observer) = 0;

  /* void removeObserverForName (in AString name, in nsIContentPrefObserver observer); */
  NS_IMETHOD RemoveObserverForName(const nsAString & name, nsIContentPrefObserver *observer) = 0;

  /* AString extractDomain (in AString str); */
  NS_IMETHOD ExtractDomain(const nsAString & str, nsAString & _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPrefService2, NS_ICONTENTPREFSERVICE2_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTPREFSERVICE2 \
  NS_IMETHOD GetByName(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override; \
  NS_IMETHOD GetByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override; \
  NS_IMETHOD GetBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override; \
  NS_IMETHOD GetGlobal(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override; \
  NS_IMETHOD GetCachedByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPref * *_retval) override; \
  NS_IMETHOD GetCachedBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, uint32_t *len, nsIContentPref * **prefs) override; \
  NS_IMETHOD GetCachedGlobal(const nsAString & name, nsILoadContext *context, nsIContentPref * *_retval) override; \
  NS_IMETHOD Set(const nsAString & domain, const nsAString & name, nsIVariant *value, nsILoadContext *context, nsIContentPrefCallback2 *callback) override; \
  NS_IMETHOD SetGlobal(const nsAString & name, nsIVariant *value, nsILoadContext *context, nsIContentPrefCallback2 *callback) override; \
  NS_IMETHOD RemoveByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override; \
  NS_IMETHOD RemoveBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override; \
  NS_IMETHOD RemoveGlobal(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override; \
  NS_IMETHOD RemoveByDomain(const nsAString & domain, nsILoadContext *context, nsIContentPrefCallback2 *callback) override; \
  NS_IMETHOD RemoveBySubdomain(const nsAString & domain, nsILoadContext *context, nsIContentPrefCallback2 *callback) override; \
  NS_IMETHOD RemoveByName(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override; \
  NS_IMETHOD RemoveAllDomains(nsILoadContext *context, nsIContentPrefCallback2 *callback) override; \
  NS_IMETHOD RemoveAllDomainsSince(uint64_t since, nsILoadContext *context, nsIContentPrefCallback2 *callback) override; \
  NS_IMETHOD RemoveAllGlobals(nsILoadContext *context, nsIContentPrefCallback2 *callback) override; \
  NS_IMETHOD AddObserverForName(const nsAString & name, nsIContentPrefObserver *observer) override; \
  NS_IMETHOD RemoveObserverForName(const nsAString & name, nsIContentPrefObserver *observer) override; \
  NS_IMETHOD ExtractDomain(const nsAString & str, 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_NSICONTENTPREFSERVICE2 \
  nsresult GetByName(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback); \
  nsresult GetByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback); \
  nsresult GetBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback); \
  nsresult GetGlobal(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback); \
  nsresult GetCachedByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPref * *_retval); \
  nsresult GetCachedBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, uint32_t *len, nsIContentPref * **prefs); \
  nsresult GetCachedGlobal(const nsAString & name, nsILoadContext *context, nsIContentPref * *_retval); \
  nsresult Set(const nsAString & domain, const nsAString & name, nsIVariant *value, nsILoadContext *context, nsIContentPrefCallback2 *callback); \
  nsresult SetGlobal(const nsAString & name, nsIVariant *value, nsILoadContext *context, nsIContentPrefCallback2 *callback); \
  nsresult RemoveByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback); \
  nsresult RemoveBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback); \
  nsresult RemoveGlobal(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback); \
  nsresult RemoveByDomain(const nsAString & domain, nsILoadContext *context, nsIContentPrefCallback2 *callback); \
  nsresult RemoveBySubdomain(const nsAString & domain, nsILoadContext *context, nsIContentPrefCallback2 *callback); \
  nsresult RemoveByName(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback); \
  nsresult RemoveAllDomains(nsILoadContext *context, nsIContentPrefCallback2 *callback); \
  nsresult RemoveAllDomainsSince(uint64_t since, nsILoadContext *context, nsIContentPrefCallback2 *callback); \
  nsresult RemoveAllGlobals(nsILoadContext *context, nsIContentPrefCallback2 *callback); \
  nsresult AddObserverForName(const nsAString & name, nsIContentPrefObserver *observer); \
  nsresult RemoveObserverForName(const nsAString & name, nsIContentPrefObserver *observer); \
  nsresult ExtractDomain(const nsAString & str, nsAString & _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTPREFSERVICE2(_to) \
  NS_IMETHOD GetByName(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return _to GetByName(name, context, callback); } \
  NS_IMETHOD GetByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return _to GetByDomainAndName(domain, name, context, callback); } \
  NS_IMETHOD GetBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return _to GetBySubdomainAndName(domain, name, context, callback); } \
  NS_IMETHOD GetGlobal(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return _to GetGlobal(name, context, callback); } \
  NS_IMETHOD GetCachedByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPref * *_retval) override { return _to GetCachedByDomainAndName(domain, name, context, _retval); } \
  NS_IMETHOD GetCachedBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, uint32_t *len, nsIContentPref * **prefs) override { return _to GetCachedBySubdomainAndName(domain, name, context, len, prefs); } \
  NS_IMETHOD GetCachedGlobal(const nsAString & name, nsILoadContext *context, nsIContentPref * *_retval) override { return _to GetCachedGlobal(name, context, _retval); } \
  NS_IMETHOD Set(const nsAString & domain, const nsAString & name, nsIVariant *value, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return _to Set(domain, name, value, context, callback); } \
  NS_IMETHOD SetGlobal(const nsAString & name, nsIVariant *value, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return _to SetGlobal(name, value, context, callback); } \
  NS_IMETHOD RemoveByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return _to RemoveByDomainAndName(domain, name, context, callback); } \
  NS_IMETHOD RemoveBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return _to RemoveBySubdomainAndName(domain, name, context, callback); } \
  NS_IMETHOD RemoveGlobal(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return _to RemoveGlobal(name, context, callback); } \
  NS_IMETHOD RemoveByDomain(const nsAString & domain, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return _to RemoveByDomain(domain, context, callback); } \
  NS_IMETHOD RemoveBySubdomain(const nsAString & domain, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return _to RemoveBySubdomain(domain, context, callback); } \
  NS_IMETHOD RemoveByName(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return _to RemoveByName(name, context, callback); } \
  NS_IMETHOD RemoveAllDomains(nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return _to RemoveAllDomains(context, callback); } \
  NS_IMETHOD RemoveAllDomainsSince(uint64_t since, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return _to RemoveAllDomainsSince(since, context, callback); } \
  NS_IMETHOD RemoveAllGlobals(nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return _to RemoveAllGlobals(context, callback); } \
  NS_IMETHOD AddObserverForName(const nsAString & name, nsIContentPrefObserver *observer) override { return _to AddObserverForName(name, observer); } \
  NS_IMETHOD RemoveObserverForName(const nsAString & name, nsIContentPrefObserver *observer) override { return _to RemoveObserverForName(name, observer); } \
  NS_IMETHOD ExtractDomain(const nsAString & str, nsAString & _retval) override { return _to ExtractDomain(str, _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_NSICONTENTPREFSERVICE2(_to) \
  NS_IMETHOD GetByName(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetByName(name, context, callback); } \
  NS_IMETHOD GetByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetByDomainAndName(domain, name, context, callback); } \
  NS_IMETHOD GetBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBySubdomainAndName(domain, name, context, callback); } \
  NS_IMETHOD GetGlobal(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobal(name, context, callback); } \
  NS_IMETHOD GetCachedByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPref * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCachedByDomainAndName(domain, name, context, _retval); } \
  NS_IMETHOD GetCachedBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, uint32_t *len, nsIContentPref * **prefs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCachedBySubdomainAndName(domain, name, context, len, prefs); } \
  NS_IMETHOD GetCachedGlobal(const nsAString & name, nsILoadContext *context, nsIContentPref * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCachedGlobal(name, context, _retval); } \
  NS_IMETHOD Set(const nsAString & domain, const nsAString & name, nsIVariant *value, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Set(domain, name, value, context, callback); } \
  NS_IMETHOD SetGlobal(const nsAString & name, nsIVariant *value, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetGlobal(name, value, context, callback); } \
  NS_IMETHOD RemoveByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveByDomainAndName(domain, name, context, callback); } \
  NS_IMETHOD RemoveBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveBySubdomainAndName(domain, name, context, callback); } \
  NS_IMETHOD RemoveGlobal(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveGlobal(name, context, callback); } \
  NS_IMETHOD RemoveByDomain(const nsAString & domain, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveByDomain(domain, context, callback); } \
  NS_IMETHOD RemoveBySubdomain(const nsAString & domain, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveBySubdomain(domain, context, callback); } \
  NS_IMETHOD RemoveByName(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveByName(name, context, callback); } \
  NS_IMETHOD RemoveAllDomains(nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAllDomains(context, callback); } \
  NS_IMETHOD RemoveAllDomainsSince(uint64_t since, nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAllDomainsSince(since, context, callback); } \
  NS_IMETHOD RemoveAllGlobals(nsILoadContext *context, nsIContentPrefCallback2 *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAllGlobals(context, callback); } \
  NS_IMETHOD AddObserverForName(const nsAString & name, nsIContentPrefObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserverForName(name, observer); } \
  NS_IMETHOD RemoveObserverForName(const nsAString & name, nsIContentPrefObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserverForName(name, observer); } \
  NS_IMETHOD ExtractDomain(const nsAString & str, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExtractDomain(str, _retval); } 

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

/* Header file */
class nsContentPrefService2 : public nsIContentPrefService2
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICONTENTPREFSERVICE2

  nsContentPrefService2();

private:
  ~nsContentPrefService2();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsContentPrefService2, nsIContentPrefService2)

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

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

/* void getByName (in AString name, in nsILoadContext context, in nsIContentPrefCallback2 callback); */
NS_IMETHODIMP nsContentPrefService2::GetByName(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getByDomainAndName (in AString domain, in AString name, in nsILoadContext context, in nsIContentPrefCallback2 callback); */
NS_IMETHODIMP nsContentPrefService2::GetByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getBySubdomainAndName (in AString domain, in AString name, in nsILoadContext context, in nsIContentPrefCallback2 callback); */
NS_IMETHODIMP nsContentPrefService2::GetBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getGlobal (in AString name, in nsILoadContext context, in nsIContentPrefCallback2 callback); */
NS_IMETHODIMP nsContentPrefService2::GetGlobal(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIContentPref getCachedByDomainAndName (in AString domain, in AString name, in nsILoadContext context); */
NS_IMETHODIMP nsContentPrefService2::GetCachedByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPref * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getCachedBySubdomainAndName (in AString domain, in AString name, in nsILoadContext context, [optional] out unsigned long len, [array, size_is (len), retval] out nsIContentPref prefs); */
NS_IMETHODIMP nsContentPrefService2::GetCachedBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, uint32_t *len, nsIContentPref * **prefs)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIContentPref getCachedGlobal (in AString name, in nsILoadContext context); */
NS_IMETHODIMP nsContentPrefService2::GetCachedGlobal(const nsAString & name, nsILoadContext *context, nsIContentPref * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void set (in AString domain, in AString name, in nsIVariant value, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
NS_IMETHODIMP nsContentPrefService2::Set(const nsAString & domain, const nsAString & name, nsIVariant *value, nsILoadContext *context, nsIContentPrefCallback2 *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setGlobal (in AString name, in nsIVariant value, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
NS_IMETHODIMP nsContentPrefService2::SetGlobal(const nsAString & name, nsIVariant *value, nsILoadContext *context, nsIContentPrefCallback2 *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeByDomainAndName (in AString domain, in AString name, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
NS_IMETHODIMP nsContentPrefService2::RemoveByDomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeBySubdomainAndName (in AString domain, in AString name, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
NS_IMETHODIMP nsContentPrefService2::RemoveBySubdomainAndName(const nsAString & domain, const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeGlobal (in AString name, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
NS_IMETHODIMP nsContentPrefService2::RemoveGlobal(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeByDomain (in AString domain, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
NS_IMETHODIMP nsContentPrefService2::RemoveByDomain(const nsAString & domain, nsILoadContext *context, nsIContentPrefCallback2 *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeBySubdomain (in AString domain, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
NS_IMETHODIMP nsContentPrefService2::RemoveBySubdomain(const nsAString & domain, nsILoadContext *context, nsIContentPrefCallback2 *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeByName (in AString name, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
NS_IMETHODIMP nsContentPrefService2::RemoveByName(const nsAString & name, nsILoadContext *context, nsIContentPrefCallback2 *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeAllDomains (in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
NS_IMETHODIMP nsContentPrefService2::RemoveAllDomains(nsILoadContext *context, nsIContentPrefCallback2 *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeAllDomainsSince (in unsigned long long since, in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
NS_IMETHODIMP nsContentPrefService2::RemoveAllDomainsSince(uint64_t since, nsILoadContext *context, nsIContentPrefCallback2 *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeAllGlobals (in nsILoadContext context, [optional] in nsIContentPrefCallback2 callback); */
NS_IMETHODIMP nsContentPrefService2::RemoveAllGlobals(nsILoadContext *context, nsIContentPrefCallback2 *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addObserverForName (in AString name, in nsIContentPrefObserver observer); */
NS_IMETHODIMP nsContentPrefService2::AddObserverForName(const nsAString & name, nsIContentPrefObserver *observer)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeObserverForName (in AString name, in nsIContentPrefObserver observer); */
NS_IMETHODIMP nsContentPrefService2::RemoveObserverForName(const nsAString & name, nsIContentPrefObserver *observer)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString extractDomain (in AString str); */
NS_IMETHODIMP nsContentPrefService2::ExtractDomain(const nsAString & str, nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIContentPrefCallback2 */
#define NS_ICONTENTPREFCALLBACK2_IID_STR "1a12cf41-79e8-4d0f-9899-2f7b27c5d9a1"

#define NS_ICONTENTPREFCALLBACK2_IID \
  {0x1a12cf41, 0x79e8, 0x4d0f, \
    { 0x98, 0x99, 0x2f, 0x7b, 0x27, 0xc5, 0xd9, 0xa1 }}

class NS_NO_VTABLE nsIContentPrefCallback2 : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPREFCALLBACK2_IID)

  /* void handleResult (in nsIContentPref pref); */
  NS_IMETHOD HandleResult(nsIContentPref *pref) = 0;

  /* void handleError (in nsresult error); */
  NS_IMETHOD HandleError(nsresult error) = 0;

  /* void handleCompletion (in unsigned short reason); */
  NS_IMETHOD HandleCompletion(uint16_t reason) = 0;

  enum {
    COMPLETE_OK = 0U,
    COMPLETE_ERROR = 1U
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPrefCallback2, NS_ICONTENTPREFCALLBACK2_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTPREFCALLBACK2 \
  NS_IMETHOD HandleResult(nsIContentPref *pref) override; \
  NS_IMETHOD HandleError(nsresult error) override; \
  NS_IMETHOD HandleCompletion(uint16_t reason) 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_NSICONTENTPREFCALLBACK2 \
  nsresult HandleResult(nsIContentPref *pref); \
  nsresult HandleError(nsresult error); \
  nsresult HandleCompletion(uint16_t reason); \

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTPREFCALLBACK2(_to) \
  NS_IMETHOD HandleResult(nsIContentPref *pref) override { return _to HandleResult(pref); } \
  NS_IMETHOD HandleError(nsresult error) override { return _to HandleError(error); } \
  NS_IMETHOD HandleCompletion(uint16_t reason) override { return _to HandleCompletion(reason); } \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTPREFCALLBACK2(_to) \
  NS_IMETHOD HandleResult(nsIContentPref *pref) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleResult(pref); } \
  NS_IMETHOD HandleError(nsresult error) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleError(error); } \
  NS_IMETHOD HandleCompletion(uint16_t reason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleCompletion(reason); } \

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

/* Header file */
class nsContentPrefCallback2 : public nsIContentPrefCallback2
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICONTENTPREFCALLBACK2

  nsContentPrefCallback2();

private:
  ~nsContentPrefCallback2();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsContentPrefCallback2, nsIContentPrefCallback2)

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

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

/* void handleResult (in nsIContentPref pref); */
NS_IMETHODIMP nsContentPrefCallback2::HandleResult(nsIContentPref *pref)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void handleError (in nsresult error); */
NS_IMETHODIMP nsContentPrefCallback2::HandleError(nsresult error)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void handleCompletion (in unsigned short reason); */
NS_IMETHODIMP nsContentPrefCallback2::HandleCompletion(uint16_t reason)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIContentPref */
#define NS_ICONTENTPREF_IID_STR "9f24948d-24b5-4b1b-b554-7dbd58c1d792"

#define NS_ICONTENTPREF_IID \
  {0x9f24948d, 0x24b5, 0x4b1b, \
    { 0xb5, 0x54, 0x7d, 0xbd, 0x58, 0xc1, 0xd7, 0x92 }}

class NS_NO_VTABLE nsIContentPref : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPREF_IID)

  /* readonly attribute AString domain; */
  NS_IMETHOD GetDomain(nsAString & aDomain) = 0;

  /* readonly attribute AString name; */
  NS_IMETHOD GetName(nsAString & aName) = 0;

  /* readonly attribute nsIVariant value; */
  NS_IMETHOD GetValue(nsIVariant * *aValue) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPref, NS_ICONTENTPREF_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTPREF \
  NS_IMETHOD GetDomain(nsAString & aDomain) override; \
  NS_IMETHOD GetName(nsAString & aName) override; \
  NS_IMETHOD GetValue(nsIVariant * *aValue) 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_NSICONTENTPREF \
  nsresult GetDomain(nsAString & aDomain); \
  nsresult GetName(nsAString & aName); \
  nsresult GetValue(nsIVariant * *aValue); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTPREF(_to) \
  NS_IMETHOD GetDomain(nsAString & aDomain) override { return _to GetDomain(aDomain); } \
  NS_IMETHOD GetName(nsAString & aName) override { return _to GetName(aName); } \
  NS_IMETHOD GetValue(nsIVariant * *aValue) override { return _to GetValue(aValue); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTPREF(_to) \
  NS_IMETHOD GetDomain(nsAString & aDomain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomain(aDomain); } \
  NS_IMETHOD GetName(nsAString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD GetValue(nsIVariant * *aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } 

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

/* Header file */
class nsContentPref : public nsIContentPref
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICONTENTPREF

  nsContentPref();

private:
  ~nsContentPref();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsContentPref, nsIContentPref)

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

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

/* readonly attribute AString domain; */
NS_IMETHODIMP nsContentPref::GetDomain(nsAString & aDomain)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString name; */
NS_IMETHODIMP nsContentPref::GetName(nsAString & aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIVariant value; */
NS_IMETHODIMP nsContentPref::GetValue(nsIVariant * *aValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIContentPrefService2_h__ */