Home | History | Annotate | Download | only in base

Lines Matching refs:cookies

74 // and we would have been purging the same amount of cookies.  We're just
76 static const size_t kNumCookiesPerHost = 70; // ~50 cookies
78 static const size_t kNumCookiesTotal = 3300; // ~3000 cookies
116 // Initialize the store and sync in any saved persistent cookies. We don't
119 std::vector<KeyedCanonicalCookie> cookies;
120 // Reserve space for the maximum amount of cookies a database should have.
121 // This prevents multiple vector growth / copies as we append cookies.
122 cookies.reserve(kNumCookiesTotal);
123 store_->Load(&cookies);
124 for (std::vector<KeyedCanonicalCookie>::const_iterator it = cookies.begin();
125 it != cookies.end(); ++it) {
138 // set cookies that result in the same system time. When this happens, we
314 return false; // IP addresses/intranet hosts can't set domain cookies.
338 // to be generous and accept cookies with an invalid path attribute, and
478 // and we will purge the expired cookies in GetCookies().
531 "Duplicate equivalent cookies found, cookie store is corrupted.";
539 // Speed optimization: No point looping through the rest of the cookies
572 // Cookies accessed less recently should be deleted first.
576 // In rare cases we might have two cookies with identical last access times.
578 // older cookies over newer ones. CreationDate() is guaranteed to be unique.
590 // If the range still has too many cookies, delete the least recently used.
593 // Purge down to (|num_max| - |num_purge|) total cookies.
705 // components and probe for cookies until we reach the TLD, where we stop.
721 // Get the cookies for this host and its domain(s).
722 std::vector<CanonicalCookie*> cookies;
723 FindCookiesForHostAndDomain(url, options, &cookies);
724 std::sort(cookies.begin(), cookies.end(), CookieSorter);
727 for (std::vector<CanonicalCookie*>::const_iterator it = cookies.begin();
728 it != cookies.end(); ++it) {
729 if (it != cookies.begin())
751 // Get the cookies for this host and its domain(s).
752 std::vector<CanonicalCookie*> cookies;
753 FindCookiesForHostAndDomain(url, options, &cookies);
756 for (std::vector<CanonicalCookie*>::const_iterator it = cookies.begin();
757 it != cookies.end(); ++it) {
778 // or similar. We shouldn't show expired cookies in this list since it will
781 // the expired cookies now.
783 // Note that this does not prune cookies to be below our limits (if we've
800 // Do not return removed cookies.
815 // See if we can search for domain cookies, i.e. if the host has a TLD + 1.
835 std::vector<CanonicalCookie*>* cookies) {
843 FindCookiesForKey(key, url, options, current_time, cookies);
845 // See if we can search for domain cookies, i.e. if the host has a TLD + 1.
855 // domain + registry; we can't write cookies past this point, and with some
857 // cookies.
859 FindCookiesForKey(key, url, options, current_time, cookies);
870 std::vector<CanonicalCookie*>* cookies) {
885 // Filter out HttpOnly cookies, per options.
889 // Filter out secure cookies unless we're https.
896 // Add this cookie to the set of matching cookies. Since we're reading the
899 cookies->push_back(cc);
1027 // set 2 different cookies, and setting "BBB" will then replace "AAA".
1057 // implemented cookies, and they seem very distant from the reality of
1059 // from Netscape is possibly what is closest to the cookies used today.
1066 // and reduces the possibility for invalid cookies, where other browsers
1067 // like Opera currently reject those invalid cookies (ex A="B" "C";).