static void removeSessionCookies(WebCookieJar* cookieJar)
{
  CookieMonster* cookieMonster = cookieJar->cookieStore()->GetCookieMonster();
  CookieList cookies = cookieMonster->GetAllCookies();
  for (CookieList::const_iterator iter = cookies.begin(); iter != cookies.end(); ++iter) {
    if (iter->IsSessionCookie())
      cookieMonster->DeleteCanonicalCookie(*iter);
  }
}
예제 #2
0
// SAMSUNG_CHANGE : get_cookie_size >>
static int getCookieSize(JNIEnv* env)
{
  int size = 0;
  CookieMonster* cookieMonster = WebCookieJar::get(false)->cookieStore()->GetCookieMonster();
  CookieList cookies = cookieMonster->GetAllCookies();
  for (CookieList::const_iterator iter = cookies.begin(); iter != cookies.end(); ++iter) {
      size += iter->Name().length() + iter->Value().length();
  }
  return size;
}
예제 #3
0
static int getCookieNumber(JNIEnv* env)
{
  CookieMonster* cookieMonster = WebCookieJar::get(false)->cookieStore()->GetCookieMonster();
  CookieList cookies = cookieMonster->GetAllCookies();
  return cookies.size();
}