Home | History | Annotate | Download | only in history

Lines Matching defs:visits

43 // Reads all types of visits starting from beginning of time to the given end
49 VisitVector* visits,
52 DCHECK(visits) << "visit vector has to exist in order to populate it";
54 db->GetAllVisitsInRange(base::Time(), end_time, max_visits, visits);
55 // When we got the maximum number of visits we asked for, we say there could
57 return static_cast<int>(visits->size()) == max_visits;
61 // Reads only AUTO_SUBFRAME visits, within a computed range. The range is
64 // there are no more additional visits to expire by this reader.
71 VisitVector* visits,
74 DCHECK(visits) << "visit vector has to exist in order to populate it";
90 visits);
91 bool more = static_cast<int>(visits->size()) == max_visits;
99 // The number of visits we will expire very time we check for old items. This
164 // Collect all the visits and delete them. Note that we don't give up if
165 // there are no visits, since the URL could still have an entry that we
167 VisitVector visits;
168 main_db_->GetVisitsForURL(url_row.id(), &visits);
170 DeleteVisitRelatedInfo(visits, &effects);
173 // URL, and not starting with visits in a given time range). We
193 // Find the affected visits and delete them.
194 VisitVector visits;
195 main_db_->GetAllVisitsInRange(begin_time, end_time, 0, &visits);
202 all_visits.swap(visits);
206 visits.push_back(*visit);
209 ExpireVisits(visits);
225 // Find the affected visits and delete them.
226 VisitVector visits;
227 main_db_->GetVisitsForTimes(times, &visits);
228 ExpireVisits(visits);
231 void ExpireHistoryBackend::ExpireVisits(const VisitVector& visits) {
232 if (visits.empty())
236 DeleteVisitRelatedInfo(visits, &effects);
241 ExpireURLsForVisits(visits, &effects);
286 // reader types (in case we want to expire different types of visits in
340 void ExpireHistoryBackend::DeleteVisitRelatedInfo(const VisitVector& visits,
342 for (size_t i = 0; i < visits.size(); i++) {
344 main_db_->DeleteVisit(visits[i]);
347 if (!effects->affected_urls.count(visits[i].url_id)) {
349 if (main_db_->GetURLRow(visits[i].url_id, &row))
350 effects->affected_urls[visits[i].url_id] = row;
391 void ExpireHistoryBackend::ExpireURLsForVisits(const VisitVector& visits,
393 // First find all unique URLs and the number of visits we're deleting for
396 for (size_t i = 0; i < visits.size(); i++) {
397 ChangedURL& cur = changed_urls[visits[i].url_id];
403 ui::PageTransitionStripQualifier(visits[i].transition);
407 !ui::PageTransitionIsRedirect(visits[i].transition)) ||
412 // Check each unique URL with deleted visits.
421 // Check if there are any other visits for this URL and update the time
430 // Don't delete URLs with visits still in the DB, or bookmarked.
434 // Not bookmarked and no more visits. Nuke the url.