PageRenderTime 52ms CodeModel.GetById 30ms app.highlight 3ms RepoModel.GetById 17ms app.codeStats 0ms

/gecko_api/include/nsIDOMStorageWindow.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 113 lines | 58 code | 30 blank | 25 comment | 0 complexity | 6f818517773623b157b414b1d1353aa0 MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/dom/public/idl/storage/nsIDOMStorageWindow.idl
  3 */
  4
  5#ifndef __gen_nsIDOMStorageWindow_h__
  6#define __gen_nsIDOMStorageWindow_h__
  7
  8
  9#ifndef __gen_domstubs_h__
 10#include "domstubs.h"
 11#endif
 12
 13/* For IDL files that don't want to include root IDL files. */
 14#ifndef NS_NO_VTABLE
 15#define NS_NO_VTABLE
 16#endif
 17class nsIDOMStorage; /* forward declaration */
 18
 19class nsIDOMStorageList; /* forward declaration */
 20
 21
 22/* starting interface:    nsIDOMStorageWindow */
 23#define NS_IDOMSTORAGEWINDOW_IID_STR "55e9c181-2476-47cf-97f8-efdaaf7b6f7a"
 24
 25#define NS_IDOMSTORAGEWINDOW_IID \
 26  {0x55e9c181, 0x2476, 0x47cf, \
 27    { 0x97, 0xf8, 0xef, 0xda, 0xaf, 0x7b, 0x6f, 0x7a }}
 28
 29class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMStorageWindow : public nsISupports {
 30 public: 
 31
 32  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSTORAGEWINDOW_IID)
 33
 34  /**
 35   * Session storage for the current browsing context.
 36   */
 37  /* readonly attribute nsIDOMStorage sessionStorage; */
 38  NS_SCRIPTABLE NS_IMETHOD GetSessionStorage(nsIDOMStorage * *aSessionStorage) = 0;
 39
 40  /**
 41   * Global storage, accessible by domain.
 42   */
 43  /* readonly attribute nsIDOMStorageList globalStorage; */
 44  NS_SCRIPTABLE NS_IMETHOD GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage) = 0;
 45
 46};
 47
 48  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMStorageWindow, NS_IDOMSTORAGEWINDOW_IID)
 49
 50/* Use this macro when declaring classes that implement this interface. */
 51#define NS_DECL_NSIDOMSTORAGEWINDOW \
 52  NS_SCRIPTABLE NS_IMETHOD GetSessionStorage(nsIDOMStorage * *aSessionStorage); \
 53  NS_SCRIPTABLE NS_IMETHOD GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage); 
 54
 55/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 56#define NS_FORWARD_NSIDOMSTORAGEWINDOW(_to) \
 57  NS_SCRIPTABLE NS_IMETHOD GetSessionStorage(nsIDOMStorage * *aSessionStorage) { return _to GetSessionStorage(aSessionStorage); } \
 58  NS_SCRIPTABLE NS_IMETHOD GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage) { return _to GetGlobalStorage(aGlobalStorage); } 
 59
 60/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 61#define NS_FORWARD_SAFE_NSIDOMSTORAGEWINDOW(_to) \
 62  NS_SCRIPTABLE NS_IMETHOD GetSessionStorage(nsIDOMStorage * *aSessionStorage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSessionStorage(aSessionStorage); } \
 63  NS_SCRIPTABLE NS_IMETHOD GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalStorage(aGlobalStorage); } 
 64
 65#if 0
 66/* Use the code below as a template for the implementation class for this interface. */
 67
 68/* Header file */
 69class nsDOMStorageWindow : public nsIDOMStorageWindow
 70{
 71public:
 72  NS_DECL_ISUPPORTS
 73  NS_DECL_NSIDOMSTORAGEWINDOW
 74
 75  nsDOMStorageWindow();
 76
 77private:
 78  ~nsDOMStorageWindow();
 79
 80protected:
 81  /* additional members */
 82};
 83
 84/* Implementation file */
 85NS_IMPL_ISUPPORTS1(nsDOMStorageWindow, nsIDOMStorageWindow)
 86
 87nsDOMStorageWindow::nsDOMStorageWindow()
 88{
 89  /* member initializers and constructor code */
 90}
 91
 92nsDOMStorageWindow::~nsDOMStorageWindow()
 93{
 94  /* destructor code */
 95}
 96
 97/* readonly attribute nsIDOMStorage sessionStorage; */
 98NS_IMETHODIMP nsDOMStorageWindow::GetSessionStorage(nsIDOMStorage * *aSessionStorage)
 99{
100    return NS_ERROR_NOT_IMPLEMENTED;
101}
102
103/* readonly attribute nsIDOMStorageList globalStorage; */
104NS_IMETHODIMP nsDOMStorageWindow::GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage)
105{
106    return NS_ERROR_NOT_IMPLEMENTED;
107}
108
109/* End of implementation class template. */
110#endif
111
112
113#endif /* __gen_nsIDOMStorageWindow_h__ */