moved variables from FE to BE, reviewed by dfm

This commit is contained in:
morse%netscape.com 1998-07-24 07:29:38 +00:00
parent 800956409c
commit 288ce755f2
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;
}