Home | History | Annotate | Download | only in history

Lines Matching defs:visits

22 // There's no limit on how many visits the history DB could have for a given
25 // from kMaxTypedUrlVisits, as some of the visits fetched from the DB may be
26 // RELOAD visits, which will be stripped.
43 static bool CheckVisitOrdering(const VisitVector& visits) {
45 for (VisitVector::const_iterator visit = visits.begin();
46 visit != visits.end(); ++visit) {
47 if (visit != visits.begin()) {
48 // We allow duplicate visits here - they shouldn't really be allowed, but
201 VisitVector visits;
204 row, visits, url->spec(), &changes);
215 VisitVector visits;
217 *row, visits, row->url().spec(), &changes);
257 // notification. For most users, the distribution of visits is roughly a bell
258 // curve with a long tail - there are lots of URLs with < 5 visits so we want
260 // suggestions. But there are relatively few URLs with > 10 visits, and those
277 // Get the visits for this node.
280 DLOG(ERROR) << "Could not load visits for url: " << url.url();
305 const VisitVector& visits,
314 WriteToTypedUrlSpecifics(row, visits, typed_url);
325 const VisitVector& visits,
329 DCHECK(!visits.empty());
331 visits.back().visit_time.ToInternalValue());
337 DCHECK(CheckVisitOrdering(visits));
342 if (visits.size() > static_cast<size_t>(kMaxTypedUrlVisits)) {
345 // Walk the passed-in visit vector and count the # of typed visits.
346 for (VisitVector::const_iterator visit = visits.begin();
347 visit != visits.end(); ++visit) {
350 // We ignore reload visits.
371 for (VisitVector::const_iterator visit = visits.begin();
372 visit != visits.end(); ++visit) {
375 // Skip reload visits.
379 // If we only have room for typed visits, then only add typed visits.
397 // If we get here, it's because we don't actually have any TYPED visits
412 VisitVector* visits) {
416 url->id(), kMaxVisitsToFetch, visits)) {
426 if (visits->empty()) {
427 DVLOG(1) << "Found empty visits for URL: " << url->url();
430 visits->push_back(visit);
435 std::reverse(visits->begin(), visits->end());
440 url->set_last_visit(visits->back().visit_time);
441 DCHECK(CheckVisitOrdering(*visits));