Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsDOMStorage.h File Reference
#include "nscore.h"
#include "nsAutoPtr.h"
#include "nsIDOMStorage.h"
#include "nsIDOMStorageList.h"
#include "nsIDOMStorageItem.h"
#include "nsInterfaceHashtable.h"
#include "nsVoidArray.h"
#include "nsPIDOMStorage.h"
#include "nsIDOMToString.h"
#include "nsDOMEvent.h"
#include "nsIDOMStorageEvent.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsDOMStorageEntry
class  nsSessionStorageEntry
class  nsDOMStorageManager
class  nsDOMStorage
class  nsDOMStorageList
class  nsDOMStorageItem
class  nsDOMStorageEvent

Functions

NS_IMETHODIMP NS_NewDOMStorage (nsISupports *aOuter, REFNSIID aIID, void **aResult)
nsresult NS_NewDOMStorageList (nsIDOMStorageList **aResult)

Function Documentation

NS_IMETHODIMP NS_NewDOMStorage ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
)

Definition at line 247 of file nsDOMStorage.cpp.

{
  nsDOMStorage* storage = new nsDOMStorage();
  if (!storage)
    return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(storage);
  *aResult = storage;

  return NS_OK;
}

Here is the call graph for this function:

Definition at line 1018 of file nsDOMStorage.cpp.

{
  *aResult = new nsDOMStorageList();
  if (!*aResult)
    return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(*aResult);
  return NS_OK;
}

Here is the call graph for this function: