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:
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user