DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/dom/interfaces/storage/nsIDOMStorageManager.idl
 */

#ifndef __gen_nsIDOMStorageManager_h__
#define __gen_nsIDOMStorageManager_h__


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

#include "js/GCAnnotations.h"

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

class nsIPrincipal; /* forward declaration */

class mozIDOMWindow; /* forward declaration */


/* starting interface:    nsIDOMStorageManager */
#define NS_IDOMSTORAGEMANAGER_IID_STR "a20c742e-3ed1-44fb-b897-4080a75b1662"

#define NS_IDOMSTORAGEMANAGER_IID \
  {0xa20c742e, 0x3ed1, 0x44fb, \
    { 0xb8, 0x97, 0x40, 0x80, 0xa7, 0x5b, 0x16, 0x62 }}

class NS_NO_VTABLE nsIDOMStorageManager : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSTORAGEMANAGER_IID)

  /* nsIDOMStorage precacheStorage (in nsIPrincipal aPrincipal); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PrecacheStorage(nsIPrincipal *aPrincipal, nsIDOMStorage **_retval) = 0;

  /* nsIDOMStorage createStorage (in mozIDOMWindow aWindow, in nsIPrincipal aPrincipal, in DOMString aDocumentURI, [optional] in bool aPrivate); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, const nsAString& aDocumentURI, bool aPrivate, nsIDOMStorage **_retval) = 0;

  /* nsIDOMStorage getStorage (in mozIDOMWindow aWindow, in nsIPrincipal aPrincipal, [optional] in bool aPrivate); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, bool aPrivate, nsIDOMStorage **_retval) = 0;

  /* void cloneStorage (in nsIDOMStorage aStorageToCloneFrom); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CloneStorage(nsIDOMStorage *aStorageToCloneFrom) = 0;

  /* bool checkStorage (in nsIPrincipal aPrincipal, in nsIDOMStorage aStorage); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CheckStorage(nsIPrincipal *aPrincipal, nsIDOMStorage *aStorage, bool *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMStorageManager, NS_IDOMSTORAGEMANAGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMSTORAGEMANAGER \
  NS_IMETHOD PrecacheStorage(nsIPrincipal *aPrincipal, nsIDOMStorage **_retval) override; \
  NS_IMETHOD CreateStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, const nsAString& aDocumentURI, bool aPrivate, nsIDOMStorage **_retval) override; \
  NS_IMETHOD GetStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, bool aPrivate, nsIDOMStorage **_retval) override; \
  NS_IMETHOD CloneStorage(nsIDOMStorage *aStorageToCloneFrom) override; \
  NS_IMETHOD CheckStorage(nsIPrincipal *aPrincipal, nsIDOMStorage *aStorage, bool *_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_NSIDOMSTORAGEMANAGER \
  nsresult PrecacheStorage(nsIPrincipal *aPrincipal, nsIDOMStorage **_retval); \
  nsresult CreateStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, const nsAString& aDocumentURI, bool aPrivate, nsIDOMStorage **_retval); \
  nsresult GetStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, bool aPrivate, nsIDOMStorage **_retval); \
  nsresult CloneStorage(nsIDOMStorage *aStorageToCloneFrom); \
  nsresult CheckStorage(nsIPrincipal *aPrincipal, nsIDOMStorage *aStorage, bool *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMSTORAGEMANAGER(_to) \
  NS_IMETHOD PrecacheStorage(nsIPrincipal *aPrincipal, nsIDOMStorage **_retval) override { return _to PrecacheStorage(aPrincipal, _retval); } \
  NS_IMETHOD CreateStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, const nsAString& aDocumentURI, bool aPrivate, nsIDOMStorage **_retval) override { return _to CreateStorage(aWindow, aPrincipal, aDocumentURI, aPrivate, _retval); } \
  NS_IMETHOD GetStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, bool aPrivate, nsIDOMStorage **_retval) override { return _to GetStorage(aWindow, aPrincipal, aPrivate, _retval); } \
  NS_IMETHOD CloneStorage(nsIDOMStorage *aStorageToCloneFrom) override { return _to CloneStorage(aStorageToCloneFrom); } \
  NS_IMETHOD CheckStorage(nsIPrincipal *aPrincipal, nsIDOMStorage *aStorage, bool *_retval) override { return _to CheckStorage(aPrincipal, aStorage, _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_NSIDOMSTORAGEMANAGER(_to) \
  NS_IMETHOD PrecacheStorage(nsIPrincipal *aPrincipal, nsIDOMStorage **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PrecacheStorage(aPrincipal, _retval); } \
  NS_IMETHOD CreateStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, const nsAString& aDocumentURI, bool aPrivate, nsIDOMStorage **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateStorage(aWindow, aPrincipal, aDocumentURI, aPrivate, _retval); } \
  NS_IMETHOD GetStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, bool aPrivate, nsIDOMStorage **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStorage(aWindow, aPrincipal, aPrivate, _retval); } \
  NS_IMETHOD CloneStorage(nsIDOMStorage *aStorageToCloneFrom) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneStorage(aStorageToCloneFrom); } \
  NS_IMETHOD CheckStorage(nsIPrincipal *aPrincipal, nsIDOMStorage *aStorage, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckStorage(aPrincipal, aStorage, _retval); } 


#endif /* __gen_nsIDOMStorageManager_h__ */