Home | History | Annotate | Download | only in history

Lines Matching defs:visits

33 // Reads all types of visits starting from beginning of time to the given end
38 VisitVector* visits, int max_visits) const {
40 DCHECK(visits) << "visit vector has to exist in order to populate it";
42 db->GetAllVisitsInRange(Time(), end_time, max_visits, visits);
43 // When we got the maximum number of visits we asked for, we say there could
45 return static_cast<int>(visits->size()) == max_visits;
49 // Reads only AUTO_SUBFRAME visits, within a computed range. The range is
52 // there are no more additional visits to expire by this reader.
58 VisitVector* visits, int max_visits) const {
60 DCHECK(visits) << "visit vector has to exist in order to populate it";
76 visits);
77 bool more = static_cast<int>(visits->size()) == max_visits;
111 // The number of visits we will expire very time we check for old items. This
196 // Collect all the visits and delete them. Note that we don't give up if
197 // there are no visits, since the URL could still have an entry that we should
200 VisitVector visits;
201 main_db_->GetVisitsForURL(url_row.id(), &visits);
204 DeleteVisitRelatedInfo(visits, &dependencies);
207 // starting with visits in a given time range). We therefore need to call the
233 // Find the affected visits and delete them.
235 VisitVector visits;
236 main_db_->GetAllVisitsInRange(begin_time, end_time, 0, &visits);
243 all_visits.swap(visits);
247 visits.push_back(*visit);
250 if (visits.empty())
254 DeleteVisitRelatedInfo(visits, &dependencies);
259 ExpireURLsForVisits(visits, &dependencies);
306 // reader types (in case we want to expire different types of visits in
366 const VisitVector& visits,
368 for (size_t i = 0; i < visits.size(); i++) {
370 main_db_->DeleteVisit(visits[i]);
374 dependencies->affected_urls.find(visits[i].url_id);
378 if (!main_db_->GetURLRow(visits[i].url_id, &row))
380 dependencies->affected_urls[visits[i].url_id] = row;
381 cur_row = &dependencies->affected_urls[visits[i].url_id];
387 if (visits[i].is_indexed && text_db_) {
388 text_db_->DeletePageData(visits[i].visit_time, cur_row->url(),
462 const VisitVector& visits,
464 // First find all unique URLs and the number of visits we're deleting for
467 for (size_t i = 0; i < visits.size(); i++) {
468 ChangedURL& cur = changed_urls[visits[i].url_id];
474 PageTransition::StripQualifier(visits[i].transition);
476 !PageTransition::IsRedirect(visits[i].transition)) ||
481 // Check each unique URL with deleted visits.
490 // Check if there are any other visits for this URL and update the time
499 // Don't delete URLs with visits still in the DB, or bookmarked.
503 // Not bookmarked and no more visits. Nuke the url.
520 const VisitVector& visits,
529 for (size_t i = 0; i < visits.size(); i++) {
531 dependencies->affected_urls.find(visits[i].url_id);
536 if (!main_db_->GetURLRow(visits[i].url_id, &row) ||
549 // Retrieve the sources for all the archived visits before archiving.
551 // from visits at the same index.
553 main_db_->GetVisitsSource(visits, &visit_sources);
555 // Now archive the visits since we know the URL ID to make them reference.
556 // The source visit list should still reference the visits in the main DB, but
557 // we will update it to reflect only the visits that were successfully
559 for (size_t i = 0; i < visits.size(); i++) {
561 // not store referring visits since we delete many of the visits when
563 VisitRow cur_visit(visits[i]);
566 VisitSourceMap::iterator iter = visit_sources.find(visits[i].visit_id);
621 // Some visits we'll delete while others we'll archive.
640 // only those URLs that were actually deleted instead of having some visits