Teach the script object factory to create the crypto and pkcs11 objects. r-jst@netscape.com

This commit is contained in:
javi%netscape.com 2000-05-11 19:21:49 +00:00
Родитель 769af07e62
Коммит 9c8910f046
1 изменённых файлов: 45 добавлений и 0 удалений

Просмотреть файл

@ -135,6 +135,9 @@
#include "nsIDOMSelection.h"
#include "nsIDOMSelectionListener.h"
#include "nsIDOMMediaList.h"
#include "nsIDOMCrypto.h"
#include "nsIDOMCRMFObject.h"
#include "nsIDOMPkcs11.h"
#include "plhash.h"
static NS_DEFINE_IID(kIDOMNativeObjectRegistry, NS_IDOM_NATIVE_OBJECT_REGISTRY_IID);
@ -303,6 +306,21 @@ public:
nsISupports *aPI,
nsISupports *aParent,
void** aReturn);
NS_IMETHOD NewScriptCrypto(nsIScriptContext *aContext,
nsISupports *aPI,
nsISupports *aParent,
void** aReturn);
NS_IMETHOD NewScriptCRMFObject(nsIScriptContext *aContext,
nsISupports *aPI,
nsISupports *aParent,
void** aReturn);
NS_IMETHOD NewScriptPkcs11(nsIScriptContext *aContext,
nsISupports *aPI,
nsISupports *aParent,
void** aReturn);
};
@ -605,6 +623,33 @@ nsDOMScriptObjectFactory::NewScriptNotation(nsIScriptContext *aContext,
return NS_NewScriptNotation(aContext, aPI, aParent, aReturn);
}
NS_IMETHODIMP
nsDOMScriptObjectFactory::NewScriptCrypto(nsIScriptContext *aContext,
nsISupports *aPI,
nsISupports *aParent,
void** aReturn)
{
return NS_NewScriptCrypto(aContext, aPI, aParent, aReturn);
}
NS_IMETHODIMP
nsDOMScriptObjectFactory::NewScriptCRMFObject(nsIScriptContext *aContext,
nsISupports *aPI,
nsISupports *aParent,
void** aReturn)
{
return NS_NewScriptCRMFObject(aContext, aPI, aParent, aReturn);
}
NS_IMETHODIMP
nsDOMScriptObjectFactory::NewScriptPkcs11(nsIScriptContext *aContext,
nsISupports *aPI,
nsISupports *aParent,
void** aReturn)
{
return NS_NewScriptPkcs11(aContext, aPI, aParent, aReturn);
}
//////////////////////////////////////////////////////////////////////