moved variables from FE to BE, reviewed by dfm

git-svn-id: svn://10.0.0.236/trunk@6386 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
morse%netscape.com
1998-07-24 07:29:38 +00:00
parent 4f1c5ed789
commit 00f1429fcc
2 changed files with 31 additions and 1 deletions

View File

@@ -45,9 +45,16 @@ PRVCY_GetCurrentPrivacyPolicyURL(MWContext * ctxt);
extern Bool
PRVCY_PrivacyPolicyConfirmSubmit(MWContext *ctxt,
LO_FormElementStruct *form_element);
extern char *
PRVCY_TutorialURL();
extern void
PRVCY_ToggleAnonymous();
extern Bool
PRVCY_IsAnonymous();
XP_END_PROTOS
#endif /* !_PRIVACY_H */

View File

@@ -161,10 +161,33 @@ PRVCY_PrivacyPolicyConfirmSubmit(MWContext *ctxt,
}
/*
Return the URL of the privacy tutorial
Returns the URL of the privacy tutorial
*/
PUBLIC char *
PRVCY_TutorialURL()
{
return "http://people.netscape.com/morse/privacy/index.html";
}
PRIVATE Bool anonymous = FALSE;
/*
Toggles the anonymous state
*/
PUBLIC void
PRVCY_ToggleAnonymous() {
if (anonymous) {
NET_UnanonymizeCookies();
} else {
NET_AnonymizeCookies();
}
anonymous = !anonymous;
}
/*
Returns the anonymous state
*/
PUBLIC Bool
PRVCY_IsAnonymous() {
return anonymous;
}