wallet_OKToCapture(const nsAFlatCString& url, nsIDOMWindowInternal* window) {
wallet_OKToCapture(char* urlName, nsIDOMWindowInternal* window) { nsAutoString url; url.AssignWithConversion(urlName);
wallet_OKToCapture(const nsAFlatCString& url, nsIDOMWindowInternal* window) {  /* exit if pref is not set */  if (!wallet_GetFormsCapturingPref() || !wallet_GetEnabledPref()) {    return PR_FALSE;  }  /* see if this url is already on list of url's for which we don't want to capture */  wallet_InitializeURLList();  nsVoidArray* dummy;  nsCAutoString urlPermissions;  if (wallet_ReadFromList(url, urlPermissions, dummy, wallet_URL_list, PR_FALSE)) {    if (urlPermissions.Equals(permission_Capture_Preview) ||        urlPermissions.Equals(permission_Capture_NoPreview)) {      return PR_FALSE;    }  }  /* ask user if we should capture the values on this form */  PRUnichar * message = Wallet_Localize("WantToCaptureForm?");  PRInt32 button = Wallet_3ButtonConfirm(message, window);  if (button == NEVER_BUTTON) {    /* add URL to list with NO_CAPTURE indicator set */    wallet_SetNoCapture(nsCAutoString(urlPermissions), 'y');    if (wallet_WriteToList(url.get(), urlPermissions.get(), dummy, wallet_URL_list, PR_FALSE, DUP_OVERWRITE)) {      wallet_WriteToFile(URLFileName, wallet_URL_list);    }  }  WALLET_FREE(message);  return (button == YES_BUTTON);}