Exemplo n.º 1
0
void HistoryItem::recordVisitAtTime(double time)
{
    padDailyCountsForNewVisit(time);

    m_lastVisitedTime = time;
    m_visitCount++;

    m_dailyVisitCounts[0]++;

    collapseDailyVisitsToWeekly();
}
Exemplo n.º 2
0
void HistoryItem::recordVisitAtTime(double time, VisitCountBehavior visitCountBehavior)
{
    padDailyCountsForNewVisit(time);

    m_lastVisitedTime = time;

    if (visitCountBehavior == IncreaseVisitCount) {
        ++m_visitCount;
        ++m_dailyVisitCounts[0];
    }

    collapseDailyVisitsToWeekly();
}