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

nsIContentPrefCallback

nsIContentPrefObserver

nsIContentPrefService

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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIContentPrefService.idl
 */

#ifndef __gen_nsIContentPrefService_h__
#define __gen_nsIContentPrefService_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 nsIPropertyBag2; /* forward declaration */

class nsIContentURIGrouper; /* forward declaration */

class nsILoadContext; /* forward declaration */

class mozIStorageConnection; /* forward declaration */


/* starting interface:    nsIContentPrefObserver */
#define NS_ICONTENTPREFOBSERVER_IID_STR "43635c53-b445-4c4e-8cc5-562697299b55"

#define NS_ICONTENTPREFOBSERVER_IID \
  {0x43635c53, 0xb445, 0x4c4e, \
    { 0x8c, 0xc5, 0x56, 0x26, 0x97, 0x29, 0x9b, 0x55 }}

class NS_NO_VTABLE nsIContentPrefObserver : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPREFOBSERVER_IID)

  /* void onContentPrefSet (in AString aGroup, in AString aName, in nsIVariant aValue, [optional] in boolean aIsPrivate); */
  NS_IMETHOD OnContentPrefSet(const nsAString & aGroup, const nsAString & aName, nsIVariant *aValue, bool aIsPrivate) = 0;

  /* void onContentPrefRemoved (in AString aGroup, in AString aName, [optional] in boolean aIsPrivate); */
  NS_IMETHOD OnContentPrefRemoved(const nsAString & aGroup, const nsAString & aName, bool aIsPrivate) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPrefObserver, NS_ICONTENTPREFOBSERVER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTPREFOBSERVER \
  NS_IMETHOD OnContentPrefSet(const nsAString & aGroup, const nsAString & aName, nsIVariant *aValue, bool aIsPrivate) override; \
  NS_IMETHOD OnContentPrefRemoved(const nsAString & aGroup, const nsAString & aName, bool aIsPrivate) 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_NSICONTENTPREFOBSERVER \
  nsresult OnContentPrefSet(const nsAString & aGroup, const nsAString & aName, nsIVariant *aValue, bool aIsPrivate); \
  nsresult OnContentPrefRemoved(const nsAString & aGroup, const nsAString & aName, bool aIsPrivate); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTPREFOBSERVER(_to) \
  NS_IMETHOD OnContentPrefSet(const nsAString & aGroup, const nsAString & aName, nsIVariant *aValue, bool aIsPrivate) override { return _to OnContentPrefSet(aGroup, aName, aValue, aIsPrivate); } \
  NS_IMETHOD OnContentPrefRemoved(const nsAString & aGroup, const nsAString & aName, bool aIsPrivate) override { return _to OnContentPrefRemoved(aGroup, aName, aIsPrivate); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTPREFOBSERVER(_to) \
  NS_IMETHOD OnContentPrefSet(const nsAString & aGroup, const nsAString & aName, nsIVariant *aValue, bool aIsPrivate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnContentPrefSet(aGroup, aName, aValue, aIsPrivate); } \
  NS_IMETHOD OnContentPrefRemoved(const nsAString & aGroup, const nsAString & aName, bool aIsPrivate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnContentPrefRemoved(aGroup, aName, aIsPrivate); } 

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

/* Header file */
class nsContentPrefObserver : public nsIContentPrefObserver
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICONTENTPREFOBSERVER

  nsContentPrefObserver();

private:
  ~nsContentPrefObserver();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsContentPrefObserver, nsIContentPrefObserver)

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

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

/* void onContentPrefSet (in AString aGroup, in AString aName, in nsIVariant aValue, [optional] in boolean aIsPrivate); */
NS_IMETHODIMP nsContentPrefObserver::OnContentPrefSet(const nsAString & aGroup, const nsAString & aName, nsIVariant *aValue, bool aIsPrivate)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onContentPrefRemoved (in AString aGroup, in AString aName, [optional] in boolean aIsPrivate); */
NS_IMETHODIMP nsContentPrefObserver::OnContentPrefRemoved(const nsAString & aGroup, const nsAString & aName, bool aIsPrivate)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIContentPrefCallback */
#define NS_ICONTENTPREFCALLBACK_IID_STR "c1b3d6df-5373-4606-8494-8bcf14a7fc62"

#define NS_ICONTENTPREFCALLBACK_IID \
  {0xc1b3d6df, 0x5373, 0x4606, \
    { 0x84, 0x94, 0x8b, 0xcf, 0x14, 0xa7, 0xfc, 0x62 }}

class NS_NO_VTABLE nsIContentPrefCallback : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPREFCALLBACK_IID)

  /* void onResult (in nsIVariant aResult); */
  NS_IMETHOD OnResult(nsIVariant *aResult) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPrefCallback, NS_ICONTENTPREFCALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTPREFCALLBACK \
  NS_IMETHOD OnResult(nsIVariant *aResult) 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_NSICONTENTPREFCALLBACK \
  nsresult OnResult(nsIVariant *aResult); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTPREFCALLBACK(_to) \
  NS_IMETHOD OnResult(nsIVariant *aResult) override { return _to OnResult(aResult); } 

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

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

/* Header file */
class nsContentPrefCallback : public nsIContentPrefCallback
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICONTENTPREFCALLBACK

  nsContentPrefCallback();

private:
  ~nsContentPrefCallback();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsContentPrefCallback, nsIContentPrefCallback)

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

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

/* void onResult (in nsIVariant aResult); */
NS_IMETHODIMP nsContentPrefCallback::OnResult(nsIVariant *aResult)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIContentPrefService */
#define NS_ICONTENTPREFSERVICE_IID_STR "e3f772f3-023f-4b32-b074-36cf0fd5d414"

#define NS_ICONTENTPREFSERVICE_IID \
  {0xe3f772f3, 0x023f, 0x4b32, \
    { 0xb0, 0x74, 0x36, 0xcf, 0x0f, 0xd5, 0xd4, 0x14 }}

class NS_NO_VTABLE nsIContentPrefService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPREFSERVICE_IID)

  /* nsIVariant getPref (in nsIVariant aGroup, in AString aName, in nsILoadContext aPrivacyContext, [optional] in nsIContentPrefCallback aCallback); */
  NS_IMETHOD GetPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aPrivacyContext, nsIContentPrefCallback *aCallback, nsIVariant * *_retval) = 0;

  /* void setPref (in nsIVariant aGroup, in AString aName, in nsIVariant aValue, in nsILoadContext aPrivacyContext); */
  NS_IMETHOD SetPref(nsIVariant *aGroup, const nsAString & aName, nsIVariant *aValue, nsILoadContext *aPrivacyContext) = 0;

  /* boolean hasPref (in nsIVariant aGroup, in AString aName, in nsILoadContext aContext); */
  NS_IMETHOD HasPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext, bool *_retval) = 0;

  /* boolean hasCachedPref (in nsIVariant aGroup, in AString aName, in nsILoadContext aContext); */
  NS_IMETHOD HasCachedPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext, bool *_retval) = 0;

  /* void removePref (in nsIVariant aGroup, in AString aName, in nsILoadContext aContext); */
  NS_IMETHOD RemovePref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext) = 0;

  /* void removeGroupedPrefs (in nsILoadContext aContext); */
  NS_IMETHOD RemoveGroupedPrefs(nsILoadContext *aContext) = 0;

  /* void removePrefsByName (in AString aName, in nsILoadContext aContext); */
  NS_IMETHOD RemovePrefsByName(const nsAString & aName, nsILoadContext *aContext) = 0;

  /* nsIPropertyBag2 getPrefs (in nsIVariant aGroup, in nsILoadContext aContext); */
  NS_IMETHOD GetPrefs(nsIVariant *aGroup, nsILoadContext *aContext, nsIPropertyBag2 * *_retval) = 0;

  /* nsIPropertyBag2 getPrefsByName (in AString aName, in nsILoadContext aContext); */
  NS_IMETHOD GetPrefsByName(const nsAString & aName, nsILoadContext *aContext, nsIPropertyBag2 * *_retval) = 0;

  /* void addObserver (in AString aName, in nsIContentPrefObserver aObserver); */
  NS_IMETHOD AddObserver(const nsAString & aName, nsIContentPrefObserver *aObserver) = 0;

  /* void removeObserver (in AString aName, in nsIContentPrefObserver aObserver); */
  NS_IMETHOD RemoveObserver(const nsAString & aName, nsIContentPrefObserver *aObserver) = 0;

  /* readonly attribute nsIContentURIGrouper grouper; */
  NS_IMETHOD GetGrouper(nsIContentURIGrouper * *aGrouper) = 0;

  /* readonly attribute mozIStorageConnection DBConnection; */
  NS_IMETHOD GetDBConnection(mozIStorageConnection * *aDBConnection) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPrefService, NS_ICONTENTPREFSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTPREFSERVICE \
  NS_IMETHOD GetPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aPrivacyContext, nsIContentPrefCallback *aCallback, nsIVariant * *_retval) override; \
  NS_IMETHOD SetPref(nsIVariant *aGroup, const nsAString & aName, nsIVariant *aValue, nsILoadContext *aPrivacyContext) override; \
  NS_IMETHOD HasPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext, bool *_retval) override; \
  NS_IMETHOD HasCachedPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext, bool *_retval) override; \
  NS_IMETHOD RemovePref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext) override; \
  NS_IMETHOD RemoveGroupedPrefs(nsILoadContext *aContext) override; \
  NS_IMETHOD RemovePrefsByName(const nsAString & aName, nsILoadContext *aContext) override; \
  NS_IMETHOD GetPrefs(nsIVariant *aGroup, nsILoadContext *aContext, nsIPropertyBag2 * *_retval) override; \
  NS_IMETHOD GetPrefsByName(const nsAString & aName, nsILoadContext *aContext, nsIPropertyBag2 * *_retval) override; \
  NS_IMETHOD AddObserver(const nsAString & aName, nsIContentPrefObserver *aObserver) override; \
  NS_IMETHOD RemoveObserver(const nsAString & aName, nsIContentPrefObserver *aObserver) override; \
  NS_IMETHOD GetGrouper(nsIContentURIGrouper * *aGrouper) override; \
  NS_IMETHOD GetDBConnection(mozIStorageConnection * *aDBConnection) 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_NSICONTENTPREFSERVICE \
  nsresult GetPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aPrivacyContext, nsIContentPrefCallback *aCallback, nsIVariant * *_retval); \
  nsresult SetPref(nsIVariant *aGroup, const nsAString & aName, nsIVariant *aValue, nsILoadContext *aPrivacyContext); \
  nsresult HasPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext, bool *_retval); \
  nsresult HasCachedPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext, bool *_retval); \
  nsresult RemovePref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext); \
  nsresult RemoveGroupedPrefs(nsILoadContext *aContext); \
  nsresult RemovePrefsByName(const nsAString & aName, nsILoadContext *aContext); \
  nsresult GetPrefs(nsIVariant *aGroup, nsILoadContext *aContext, nsIPropertyBag2 * *_retval); \
  nsresult GetPrefsByName(const nsAString & aName, nsILoadContext *aContext, nsIPropertyBag2 * *_retval); \
  nsresult AddObserver(const nsAString & aName, nsIContentPrefObserver *aObserver); \
  nsresult RemoveObserver(const nsAString & aName, nsIContentPrefObserver *aObserver); \
  nsresult GetGrouper(nsIContentURIGrouper * *aGrouper); \
  nsresult GetDBConnection(mozIStorageConnection * *aDBConnection); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTPREFSERVICE(_to) \
  NS_IMETHOD GetPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aPrivacyContext, nsIContentPrefCallback *aCallback, nsIVariant * *_retval) override { return _to GetPref(aGroup, aName, aPrivacyContext, aCallback, _retval); } \
  NS_IMETHOD SetPref(nsIVariant *aGroup, const nsAString & aName, nsIVariant *aValue, nsILoadContext *aPrivacyContext) override { return _to SetPref(aGroup, aName, aValue, aPrivacyContext); } \
  NS_IMETHOD HasPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext, bool *_retval) override { return _to HasPref(aGroup, aName, aContext, _retval); } \
  NS_IMETHOD HasCachedPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext, bool *_retval) override { return _to HasCachedPref(aGroup, aName, aContext, _retval); } \
  NS_IMETHOD RemovePref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext) override { return _to RemovePref(aGroup, aName, aContext); } \
  NS_IMETHOD RemoveGroupedPrefs(nsILoadContext *aContext) override { return _to RemoveGroupedPrefs(aContext); } \
  NS_IMETHOD RemovePrefsByName(const nsAString & aName, nsILoadContext *aContext) override { return _to RemovePrefsByName(aName, aContext); } \
  NS_IMETHOD GetPrefs(nsIVariant *aGroup, nsILoadContext *aContext, nsIPropertyBag2 * *_retval) override { return _to GetPrefs(aGroup, aContext, _retval); } \
  NS_IMETHOD GetPrefsByName(const nsAString & aName, nsILoadContext *aContext, nsIPropertyBag2 * *_retval) override { return _to GetPrefsByName(aName, aContext, _retval); } \
  NS_IMETHOD AddObserver(const nsAString & aName, nsIContentPrefObserver *aObserver) override { return _to AddObserver(aName, aObserver); } \
  NS_IMETHOD RemoveObserver(const nsAString & aName, nsIContentPrefObserver *aObserver) override { return _to RemoveObserver(aName, aObserver); } \
  NS_IMETHOD GetGrouper(nsIContentURIGrouper * *aGrouper) override { return _to GetGrouper(aGrouper); } \
  NS_IMETHOD GetDBConnection(mozIStorageConnection * *aDBConnection) override { return _to GetDBConnection(aDBConnection); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTPREFSERVICE(_to) \
  NS_IMETHOD GetPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aPrivacyContext, nsIContentPrefCallback *aCallback, nsIVariant * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPref(aGroup, aName, aPrivacyContext, aCallback, _retval); } \
  NS_IMETHOD SetPref(nsIVariant *aGroup, const nsAString & aName, nsIVariant *aValue, nsILoadContext *aPrivacyContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPref(aGroup, aName, aValue, aPrivacyContext); } \
  NS_IMETHOD HasPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasPref(aGroup, aName, aContext, _retval); } \
  NS_IMETHOD HasCachedPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasCachedPref(aGroup, aName, aContext, _retval); } \
  NS_IMETHOD RemovePref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemovePref(aGroup, aName, aContext); } \
  NS_IMETHOD RemoveGroupedPrefs(nsILoadContext *aContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveGroupedPrefs(aContext); } \
  NS_IMETHOD RemovePrefsByName(const nsAString & aName, nsILoadContext *aContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemovePrefsByName(aName, aContext); } \
  NS_IMETHOD GetPrefs(nsIVariant *aGroup, nsILoadContext *aContext, nsIPropertyBag2 * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrefs(aGroup, aContext, _retval); } \
  NS_IMETHOD GetPrefsByName(const nsAString & aName, nsILoadContext *aContext, nsIPropertyBag2 * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrefsByName(aName, aContext, _retval); } \
  NS_IMETHOD AddObserver(const nsAString & aName, nsIContentPrefObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(aName, aObserver); } \
  NS_IMETHOD RemoveObserver(const nsAString & aName, nsIContentPrefObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(aName, aObserver); } \
  NS_IMETHOD GetGrouper(nsIContentURIGrouper * *aGrouper) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGrouper(aGrouper); } \
  NS_IMETHOD GetDBConnection(mozIStorageConnection * *aDBConnection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDBConnection(aDBConnection); } 

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

/* Header file */
class nsContentPrefService : public nsIContentPrefService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICONTENTPREFSERVICE

  nsContentPrefService();

private:
  ~nsContentPrefService();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsContentPrefService, nsIContentPrefService)

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

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

/* nsIVariant getPref (in nsIVariant aGroup, in AString aName, in nsILoadContext aPrivacyContext, [optional] in nsIContentPrefCallback aCallback); */
NS_IMETHODIMP nsContentPrefService::GetPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aPrivacyContext, nsIContentPrefCallback *aCallback, nsIVariant * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setPref (in nsIVariant aGroup, in AString aName, in nsIVariant aValue, in nsILoadContext aPrivacyContext); */
NS_IMETHODIMP nsContentPrefService::SetPref(nsIVariant *aGroup, const nsAString & aName, nsIVariant *aValue, nsILoadContext *aPrivacyContext)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean hasPref (in nsIVariant aGroup, in AString aName, in nsILoadContext aContext); */
NS_IMETHODIMP nsContentPrefService::HasPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean hasCachedPref (in nsIVariant aGroup, in AString aName, in nsILoadContext aContext); */
NS_IMETHODIMP nsContentPrefService::HasCachedPref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removePref (in nsIVariant aGroup, in AString aName, in nsILoadContext aContext); */
NS_IMETHODIMP nsContentPrefService::RemovePref(nsIVariant *aGroup, const nsAString & aName, nsILoadContext *aContext)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeGroupedPrefs (in nsILoadContext aContext); */
NS_IMETHODIMP nsContentPrefService::RemoveGroupedPrefs(nsILoadContext *aContext)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removePrefsByName (in AString aName, in nsILoadContext aContext); */
NS_IMETHODIMP nsContentPrefService::RemovePrefsByName(const nsAString & aName, nsILoadContext *aContext)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIPropertyBag2 getPrefs (in nsIVariant aGroup, in nsILoadContext aContext); */
NS_IMETHODIMP nsContentPrefService::GetPrefs(nsIVariant *aGroup, nsILoadContext *aContext, nsIPropertyBag2 * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIPropertyBag2 getPrefsByName (in AString aName, in nsILoadContext aContext); */
NS_IMETHODIMP nsContentPrefService::GetPrefsByName(const nsAString & aName, nsILoadContext *aContext, nsIPropertyBag2 * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addObserver (in AString aName, in nsIContentPrefObserver aObserver); */
NS_IMETHODIMP nsContentPrefService::AddObserver(const nsAString & aName, nsIContentPrefObserver *aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeObserver (in AString aName, in nsIContentPrefObserver aObserver); */
NS_IMETHODIMP nsContentPrefService::RemoveObserver(const nsAString & aName, nsIContentPrefObserver *aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIContentURIGrouper grouper; */
NS_IMETHODIMP nsContentPrefService::GetGrouper(nsIContentURIGrouper * *aGrouper)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute mozIStorageConnection DBConnection; */
NS_IMETHODIMP nsContentPrefService::GetDBConnection(mozIStorageConnection * *aDBConnection)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

// The contractID for the generic implementation built in to xpcom.
#define NS_CONTENT_PREF_SERVICE_CONTRACTID "@mozilla.org/content-pref/service;1"

#endif /* __gen_nsIContentPrefService_h__ */