PageRenderTime 17ms CodeModel.GetById 12ms RepoModel.GetById 1ms 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. #ifndef __gen_nsIDOMStorageWindow_h__
  5. #define __gen_nsIDOMStorageWindow_h__
  6. #ifndef __gen_domstubs_h__
  7. #include "domstubs.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. class nsIDOMStorage; /* forward declaration */
  14. class nsIDOMStorageList; /* forward declaration */
  15. /* starting interface: nsIDOMStorageWindow */
  16. #define NS_IDOMSTORAGEWINDOW_IID_STR "55e9c181-2476-47cf-97f8-efdaaf7b6f7a"
  17. #define NS_IDOMSTORAGEWINDOW_IID \
  18. {0x55e9c181, 0x2476, 0x47cf, \
  19. { 0x97, 0xf8, 0xef, 0xda, 0xaf, 0x7b, 0x6f, 0x7a }}
  20. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMStorageWindow : public nsISupports {
  21. public:
  22. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSTORAGEWINDOW_IID)
  23. /**
  24. * Session storage for the current browsing context.
  25. */
  26. /* readonly attribute nsIDOMStorage sessionStorage; */
  27. NS_SCRIPTABLE NS_IMETHOD GetSessionStorage(nsIDOMStorage * *aSessionStorage) = 0;
  28. /**
  29. * Global storage, accessible by domain.
  30. */
  31. /* readonly attribute nsIDOMStorageList globalStorage; */
  32. NS_SCRIPTABLE NS_IMETHOD GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage) = 0;
  33. };
  34. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMStorageWindow, NS_IDOMSTORAGEWINDOW_IID)
  35. /* Use this macro when declaring classes that implement this interface. */
  36. #define NS_DECL_NSIDOMSTORAGEWINDOW \
  37. NS_SCRIPTABLE NS_IMETHOD GetSessionStorage(nsIDOMStorage * *aSessionStorage); \
  38. NS_SCRIPTABLE NS_IMETHOD GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage);
  39. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  40. #define NS_FORWARD_NSIDOMSTORAGEWINDOW(_to) \
  41. NS_SCRIPTABLE NS_IMETHOD GetSessionStorage(nsIDOMStorage * *aSessionStorage) { return _to GetSessionStorage(aSessionStorage); } \
  42. NS_SCRIPTABLE NS_IMETHOD GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage) { return _to GetGlobalStorage(aGlobalStorage); }
  43. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  44. #define NS_FORWARD_SAFE_NSIDOMSTORAGEWINDOW(_to) \
  45. NS_SCRIPTABLE NS_IMETHOD GetSessionStorage(nsIDOMStorage * *aSessionStorage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSessionStorage(aSessionStorage); } \
  46. NS_SCRIPTABLE NS_IMETHOD GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalStorage(aGlobalStorage); }
  47. #if 0
  48. /* Use the code below as a template for the implementation class for this interface. */
  49. /* Header file */
  50. class nsDOMStorageWindow : public nsIDOMStorageWindow
  51. {
  52. public:
  53. NS_DECL_ISUPPORTS
  54. NS_DECL_NSIDOMSTORAGEWINDOW
  55. nsDOMStorageWindow();
  56. private:
  57. ~nsDOMStorageWindow();
  58. protected:
  59. /* additional members */
  60. };
  61. /* Implementation file */
  62. NS_IMPL_ISUPPORTS1(nsDOMStorageWindow, nsIDOMStorageWindow)
  63. nsDOMStorageWindow::nsDOMStorageWindow()
  64. {
  65. /* member initializers and constructor code */
  66. }
  67. nsDOMStorageWindow::~nsDOMStorageWindow()
  68. {
  69. /* destructor code */
  70. }
  71. /* readonly attribute nsIDOMStorage sessionStorage; */
  72. NS_IMETHODIMP nsDOMStorageWindow::GetSessionStorage(nsIDOMStorage * *aSessionStorage)
  73. {
  74. return NS_ERROR_NOT_IMPLEMENTED;
  75. }
  76. /* readonly attribute nsIDOMStorageList globalStorage; */
  77. NS_IMETHODIMP nsDOMStorageWindow::GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage)
  78. {
  79. return NS_ERROR_NOT_IMPLEMENTED;
  80. }
  81. /* End of implementation class template. */
  82. #endif
  83. #endif /* __gen_nsIDOMStorageWindow_h__ */