Home | History | Annotate | Download | only in cookies

Lines Matching defs:cc

1092   scoped_ptr<CanonicalCookie> cc;
1093 cc.reset(CanonicalCookie::Create(url, name, value, domain, path,
1097 if (!cc.get())
1102 return SetCanonicalCookie(&cc, creation_time, options);
1198 CanonicalCookie* cc = curit->second;
1201 if (cc->CreationDate() >= delete_begin &&
1202 (delete_end.is_null() || cc->CreationDate() < delete_end)) {
1232 const CanonicalCookie* const cc = curit->second;
1235 if (cc->IsHostCookie() && cc->IsDomainMatch(host) &&
1236 cc->CreationDate() >= delete_begin &&
1239 (delete_end.is_null() || cc->CreationDate() < delete_end)) {
1371 CanonicalCookie* cc = curit->second;
1374 if (!cc->IsPersistent()) {
1713 CanonicalCookie* cc = curit->second;
1717 if (cc->IsExpired(current) && !keep_expired_cookies_) {
1725 if (!cc->IncludeForRequestURL(url, options))
1731 InternalUpdateCookieAccessTime(cc, current);
1733 cookies->push_back(cc);
1748 CanonicalCookie* cc = curit->second;
1751 if (ecc.IsEquivalent(*cc)) {
1756 if (skip_httponly && cc->IsHttpOnly()) {
1770 CanonicalCookie* cc,
1774 if ((cc->IsPersistent() || persist_session_cookies_) && store_.get() &&
1776 store_->AddCookie(*cc);
1778 cookies_.insert(CookieMap::value_type(key, cc));
1781 *cc, false, CookieMonsterDelegate::CHANGE_COOKIE_EXPLICIT);
1802 scoped_ptr<CanonicalCookie> cc(
1805 if (!cc.get()) {
1809 return SetCanonicalCookie(&cc, creation_time, options);
1812 bool CookieMonster::SetCanonicalCookie(scoped_ptr<CanonicalCookie>* cc,
1815 const std::string key(GetKey((*cc)->Domain()));
1816 bool already_expired = (*cc)->IsExpired(creation_time);
1817 if (DeleteAnyEquivalentCookie(key, **cc, options.exclude_httponly(),
1823 VLOG(kVlogSetCookies) << "SetCookie() key: " << key << " cc: "
1824 << (*cc)->DebugString();
1830 if ((*cc)->IsPersistent()) {
1832 ((*cc)->ExpiryDate() - creation_time).InMinutes());
1835 InternalInsertCookie(key, cc->release(), true);
1850 void CookieMonster::InternalUpdateCookieAccessTime(CanonicalCookie* cc,
1858 if ((current - cc->LastAccessDate()) < last_access_threshold_)
1863 (current - cc->LastAccessDate()).InMinutes());
1865 cc->SetLastAccessDate(current);
1866 if ((cc->IsPersistent() || persist_session_cookies_) && store_.get())
1867 store_->UpdateCookieAccessTime(*cc);
1887 CanonicalCookie* cc = it->second;
1888 VLOG(kVlogSetCookies) << "InternalDeleteCookie() cc: " << cc->DebugString();
1890 if ((cc->IsPersistent() || persist_session_cookies_) && store_.get() &&
1892 store_->DeleteCookie(*cc);
1897 delegate_->OnCookieChanged(*cc, true, mapping.cause);
1900 delete cc;
2271 CanonicalCookie* cc = curit->second;
2273 duplicated_cookies.push_back(cc->Duplicate());