Mozilla/mozilla/java/dom/JavaDOMSecurityContext.h
sdv%sparc.spb.su 0ed196bba9 Added code to use OJI on win nt.
Added methods of latest dom java-binding
Fixes to bugs 22192, 22193


git-svn-id: svn://10.0.0.236/trunk@59013 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 03:45:01 +00:00

30 lines
990 B
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
*/
#include "nsISecurityContext.h"
class JavaDOMSecurityContext : public nsISecurityContext {
public:
////////////////////////////////////////////////////////////////////////////
// from nsISupports
NS_DECL_ISUPPORTS
////////////////////////////////////////////////////////////////////////////
// from nsISecurityContext:
/**
* Get the security context to be used in LiveConnect.
* This is used for JavaScript <--> Java.
*
* @param target -- Possible target.
* @param action -- Possible action on the target.
* @return -- NS_OK if the target and action is permitted on the security context.
* -- NS_FALSE otherwise.
*/
NS_IMETHOD Implies(const char* target, const char* action, PRBool *bAllowedAccess);
JavaDOMSecurityContext();
virtual ~JavaDOMSecurityContext();
};