Fixes for 32878, 37739. Added PR_CALLBACK macros. Changed security.principal pref syntax to a nicer syntax. Removed "security.checkxpconnect" hack.

git-svn-id: svn://10.0.0.236/trunk@69963 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mstoltz%netscape.com
2000-05-16 03:40:51 +00:00
parent 24fcf27eea
commit a24d345d24
14 changed files with 329 additions and 257 deletions

View File

@@ -30,6 +30,7 @@
#include "nsBasePrincipal.h"
#include "nsICodebasePrincipal.h"
#include "nsIURI.h"
#include "nsCOMPtr.h"
#define NS_CODEBASEPRINCIPAL_CID \
{ 0x7ee2a400, 0x0b91, 0xaad3, \
@@ -46,9 +47,10 @@ public:
NS_IMETHOD ToString(char **result);
NS_IMETHOD ToUserVisibleString(char **result);
NS_IMETHOD ToStreamableForm(char** aName, char** aData);
NS_IMETHOD GetPreferences(char** aPrefName, char** aID,
char** aGrantedList, char** aDeniedList);
NS_IMETHOD Equals(nsIPrincipal *other, PRBool *result);
NS_IMETHOD HashValue(PRUint32 *result);
@@ -61,12 +63,13 @@ public:
Init(nsIURI *uri);
nsresult
InitFromPersistent(const char *name, const char* data);
InitFromPersistent(const char* aPrefName, const char* aID,
const char* aGrantedList, const char* aDeniedList);
virtual ~nsCodebasePrincipal(void);
protected:
nsIURI *mURI;
nsCOMPtr<nsIURI> mURI;
};
#endif // _NS_CODEBASE_PRINCIPAL_H_