Home | History | Annotate | Download | only in base

Lines Matching full:time

63 using base::Time;
102 // sorts by creation time (oldest first).
125 // {list of cookies with this signature, sorted by creation time}.
127 // most recent creation time, and delete the others.
280 Time CanonExpirationInternal(const CookieMonster::ParsedCookie& pc,
281 const Time& current) {
299 return Time();
302 Time CanonExpiration(const CookieMonster::ParsedCookie& pc,
303 const Time& current,
305 Time expiration_time = CanonExpirationInternal(pc, current);
311 return Time();
321 // access time, least recently accessed first. The access time of the least
329 Time* lra_removed,
338 // Add 1 so that we can get the last time left in the store.
395 last_statistic_record_time_(Time::Now()),
410 last_statistic_record_time_(base::Time::Now()),
416 // Parse a cookie expiration time. We try to be lenient, but we need to
421 // - The time must be of the format hh:mm:ss.
424 Time CookieMonster::ParseCookieTime(const std::string& time_string) {
437 Time::Exploded exploded = {0};
465 // the time zone name. According to the RFC and my experiments with
483 // We should only ever encounter one time-like thing. If we're here,
510 return Time();
519 // If our values are within their correct ranges, we got our time.
524 return Time::FromUTCExploded(exploded);
531 return Time();
541 const base::Time& expiration_time, bool secure, bool http_only) {
549 Time creation_time = CurrentTime();
574 // is already slow enough) that it's OK to take the time to garbage collect
579 GarbageCollectExpired(Time::Now(),
643 int CookieMonster::DeleteAllCreatedBetween(const Time& delete_begin,
644 const Time& delete_end,
665 int CookieMonster::DeleteAllCreatedAfter(const Time& delete_begin,
667 return DeleteAllCreatedBetween(delete_begin, Time(), sync_to_store);
766 return SetCookieWithCreationTimeAndOptions(url, cookie_line, Time(), options);
848 const base::Time& creation_time) {
879 // Presumably later than any access time in the store.
880 Time earliest_access_time;
888 const Time cookie_access_time((*it)->LastAccessDate());
944 // Set of cookies ordered by creation time.
994 // Since |dups| is sorted by creation time (descending), the first cookie
1008 // list of iterators one at a time, since |cookies_| is a multimap (they
1042 const Time current_time(CurrentTime());
1089 const Time& current,
1127 // time if we've been requested to do so.
1183 const Time& creation_time_or_null,
1189 Time creation_time = creation_time_or_null;
1216 Time cookie_expires = CanonExpiration(pc, creation_time, options);
1231 const Time& creation_time,
1267 const Time& current) {
1271 // don't bother updating its access time again. This reduces the number of
1321 int CookieMonster::GarbageCollect(const Time& current,
1334 base::Time oldest_removed;
1342 Time::Now() - TimeDelta::FromDays(kSafeFromGlobalPurgeDays),
1352 Time(),
1364 Time::Now() - TimeDelta::FromDays(kSafeFromGlobalPurgeDays))) {
1367 base::Time oldest_left;
1373 Time oldest_safe_cookie(
1375 (Time::Now() - TimeDelta::FromDays(kSafeFromGlobalPurgeDays)) :
1376 Time()); // Null time == ignore access time.
1383 // If no cookies were preserved by the time limit, the global last
1385 // If the time limit preserved some cookies, we use the last access of
1401 const Time& current,
1426 const Time& current,
1427 const Time& keep_accessed_after,
1461 // store load time). This would require either changing the backing store
1507 void CookieMonster::RecordPeriodicStats(const base::Time& current_time) {
1548 << "Time for recording cookie stats (us): "
1626 // set cookies that result in the same system time. When this happens, we
1627 // increment by one Time unit. Let's hope computers don't get too fast.
1628 Time CookieMonster::CurrentTime() {
1629 return std::max(Time::Now(),
1630 Time::FromInternalValue(last_time_seen_.ToInternalValue() + 1));
1868 // For the first time around, we want to treat single values
1945 const base::Time& creation,
1946 const base::Time& expiration,
1947 const base::Time& last_access,
1970 creation_date_(Time::Now()),
1971 last_access_date_(Time()),
2014 const base::Time& creation,
2015 const base::Time& expiration,