/gecko_api/include/nsIDOMStorageWindow.h
C Header | 113 lines | 58 code | 30 blank | 25 comment | 0 complexity | 6f818517773623b157b414b1d1353aa0 MD5 | raw file
- /*
- * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/dom/public/idl/storage/nsIDOMStorageWindow.idl
- */
- #ifndef __gen_nsIDOMStorageWindow_h__
- #define __gen_nsIDOMStorageWindow_h__
- #ifndef __gen_domstubs_h__
- #include "domstubs.h"
- #endif
- /* 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 nsIDOMStorageList; /* forward declaration */
- /* starting interface: nsIDOMStorageWindow */
- #define NS_IDOMSTORAGEWINDOW_IID_STR "55e9c181-2476-47cf-97f8-efdaaf7b6f7a"
- #define NS_IDOMSTORAGEWINDOW_IID \
- {0x55e9c181, 0x2476, 0x47cf, \
- { 0x97, 0xf8, 0xef, 0xda, 0xaf, 0x7b, 0x6f, 0x7a }}
- class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMStorageWindow : public nsISupports {
- public:
- NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSTORAGEWINDOW_IID)
- /**
- * Session storage for the current browsing context.
- */
- /* readonly attribute nsIDOMStorage sessionStorage; */
- NS_SCRIPTABLE NS_IMETHOD GetSessionStorage(nsIDOMStorage * *aSessionStorage) = 0;
- /**
- * Global storage, accessible by domain.
- */
- /* readonly attribute nsIDOMStorageList globalStorage; */
- NS_SCRIPTABLE NS_IMETHOD GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage) = 0;
- };
- NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMStorageWindow, NS_IDOMSTORAGEWINDOW_IID)
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSIDOMSTORAGEWINDOW \
- NS_SCRIPTABLE NS_IMETHOD GetSessionStorage(nsIDOMStorage * *aSessionStorage); \
- NS_SCRIPTABLE NS_IMETHOD GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSIDOMSTORAGEWINDOW(_to) \
- NS_SCRIPTABLE NS_IMETHOD GetSessionStorage(nsIDOMStorage * *aSessionStorage) { return _to GetSessionStorage(aSessionStorage); } \
- NS_SCRIPTABLE NS_IMETHOD GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage) { return _to GetGlobalStorage(aGlobalStorage); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSIDOMSTORAGEWINDOW(_to) \
- NS_SCRIPTABLE NS_IMETHOD GetSessionStorage(nsIDOMStorage * *aSessionStorage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSessionStorage(aSessionStorage); } \
- NS_SCRIPTABLE NS_IMETHOD GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalStorage(aGlobalStorage); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsDOMStorageWindow : public nsIDOMStorageWindow
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSIDOMSTORAGEWINDOW
- nsDOMStorageWindow();
- private:
- ~nsDOMStorageWindow();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsDOMStorageWindow, nsIDOMStorageWindow)
- nsDOMStorageWindow::nsDOMStorageWindow()
- {
- /* member initializers and constructor code */
- }
- nsDOMStorageWindow::~nsDOMStorageWindow()
- {
- /* destructor code */
- }
- /* readonly attribute nsIDOMStorage sessionStorage; */
- NS_IMETHODIMP nsDOMStorageWindow::GetSessionStorage(nsIDOMStorage * *aSessionStorage)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* readonly attribute nsIDOMStorageList globalStorage; */
- NS_IMETHODIMP nsDOMStorageWindow::GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- #endif /* __gen_nsIDOMStorageWindow_h__ */