Home
last modified time | relevance | path

Searched refs:visit_count (Results 1 – 25 of 84) sorted by relevance

1234

/external/chromium_org/chrome/browser/history/android/
Durls_sql_handler.cc46 url_row.set_visit_count(row->visit_count()); in Insert()
58 int visit_count = 0; in Insert() local
62 visit_count = 1; in Insert()
65 visit_count++; in Insert()
67 visit_count++; in Insert()
69 url_row.set_visit_count(visit_count); in Insert()
111 update_row.set_visit_count(row.visit_count()); in Update()
126 update_row.set_visit_count(url_row.visit_count() + 1); in Update()
131 row.visit_count() == 0) { in Update()
134 } else if (row.visit_count() > url_row.visit_count()) { in Update()
Dvisit_sql_handler.cc53 int visit_count_needed = url_row.visit_count(); in Update()
88 int visit_count = url_row.visit_count(); in Insert() local
90 if (visit_count == 0) in Insert()
95 row->created() != url_row.last_visit() && visit_count > 0) { in Insert()
98 visit_count--; in Insert()
101 if (!AddVisitRows(row->url_id(), visit_count, url_row.last_visit())) in Insert()
124 int visit_count, in AddVisitRows() argument
127 for (int i = 0; i < visit_count; i++) { in AddVisitRows()
Durls_sql_handler_unittest.cc64 EXPECT_EQ(0, url_row.visit_count()); in TEST_F()
84 EXPECT_EQ(1, url_row.visit_count()); in TEST_F()
103 EXPECT_EQ(2, url_row.visit_count()); in TEST_F()
122 EXPECT_EQ(1, url_row.visit_count()); in TEST_F()
141 EXPECT_EQ(1, url_row.visit_count()); in TEST_F()
160 EXPECT_EQ(10, url_row.visit_count()); in TEST_F()
179 EXPECT_EQ(10, url_row.visit_count()); in TEST_F()
192 EXPECT_EQ(1, url_row.visit_count()); in TEST_F()
212 EXPECT_EQ(10, url_row.visit_count()); in TEST_F()
225 EXPECT_EQ(11, url_row.visit_count()); in TEST_F()
[all …]
Dandroid_history_types.h102 void set_visit_count(int visit_count) { in set_visit_count() argument
104 visit_count_ = visit_count; in set_visit_count()
106 int visit_count() const { in visit_count() function
Dvisit_sql_handler_unittest.cc212 EXPECT_EQ(0, url_row.visit_count()); in TEST_F()
265 EXPECT_EQ(10, url_row.visit_count()); in TEST_F()
277 EXPECT_EQ(11, url_row.visit_count()); in TEST_F()
292 EXPECT_EQ(10, url_row.visit_count()); in TEST_F()
Dvisit_sql_handler.h37 int visit_count,
/external/chromium_org/chrome/browser/ui/bookmarks/
Dbookmark_prompt_controller_unittest.cc106 for (int visit_count = 1; in TEST_F() local
107 visit_count <= BookmarkPromptController::kVisitCountForSessionTrigger; in TEST_F()
108 ++visit_count) { in TEST_F()
124 for (int visit_count = 1; in TEST_F() local
125 visit_count < BookmarkPromptController::kVisitCountForPermanentTrigger; in TEST_F()
126 ++visit_count) { in TEST_F()
128 if (visit_count < BookmarkPromptController::kVisitCountForSessionTrigger) { in TEST_F()
/external/chromium_org/chrome/common/importer/
Dimporter_url_row.cc8 : visit_count(0), in ImporterURLRow()
15 visit_count(0), in ImporterURLRow()
Dprofile_import_process_messages.h88 WriteParam(m, p.visit_count);
96 int visit_count, typed_count;
101 !ReadParam(m, iter, &visit_count) ||
108 p->visit_count = visit_count;
120 LogParam(p.visit_count, l);
Dimporter_url_row.h24 int visit_count; member
/external/chromium_org/chrome/browser/history/
Din_memory_database.cc95 sql::Statement visit_count(db_.GetUniqueStatement( in InitFromDisk() local
97 if (visit_count.Step()) { in InitFromDisk()
99 visit_count.ColumnInt(0)); in InitFromDisk()
Dhistory_unittest.cc1045 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
1054 EXPECT_EQ(2, query_url_row_.visit_count()); // Added twice. in TEST_F()
1079 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
1090 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
1121 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
1125 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
1144 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
1160 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
1173 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
1186 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
[all …]
Dscored_history_match.cc243 if (m1.url_info.visit_count() != m2.url_info.visit_count()) in MatchScoreGreater()
244 return m1.url_info.visit_count() > m2.url_info.visit_count(); in MatchScoreGreater()
Dhistory_database.cc119 sql::Statement visit_count(db_.GetUniqueStatement( in ComputeDatabaseMetrics() local
121 if (!visit_count.Step()) in ComputeDatabaseMetrics()
123 UMA_HISTOGRAM_COUNTS("History.VisitTableCount", visit_count.ColumnInt(0)); in ComputeDatabaseMetrics()
Dexpire_history_backend_unittest.cc561 EXPECT_EQ(2, url_row1.visit_count()); in TEST_F()
562 EXPECT_EQ(1, temp_row.visit_count()); in TEST_F()
608 EXPECT_EQ(2, url_row1.visit_count()); in TEST_F()
609 EXPECT_EQ(1, temp_row.visit_count()); in TEST_F()
656 EXPECT_EQ(2, url_row1.visit_count()); in TEST_F()
657 EXPECT_EQ(1, temp_row.visit_count()); in TEST_F()
703 EXPECT_EQ(1, new_url_row1.visit_count()); in TEST_F()
705 EXPECT_EQ(0, new_url_row2.visit_count()); in TEST_F()
Dexpire_history_backend.cc456 ChangedURL() : visit_count(0), typed_count(0) {} in ChangedURL()
457 int visit_count; member
478 cur.visit_count++; in ExpireURLsForVisits()
513 std::max(0, url_row.visit_count() - i->second.visit_count)); in ExpireURLsForVisits()
/external/chromium/chrome/browser/history/
Dhistory_unittest.cc395 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
404 EXPECT_EQ(2, query_url_row_.visit_count()); // Added twice. in TEST_F()
428 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
436 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
447 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
474 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
484 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
513 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
517 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
537 EXPECT_EQ(1, query_url_row_.visit_count()); in TEST_F()
[all …]
Dhistory_database.cc53 sql::Statement visit_count(db.GetUniqueStatement( in ComputeDatabaseMetrics() local
55 if (!visit_count || !visit_count.Step()) in ComputeDatabaseMetrics()
57 UMA_HISTOGRAM_COUNTS("History.VisitTableCount", visit_count.ColumnInt(0)); in ComputeDatabaseMetrics()
Dexpire_history_backend.cc454 ChangedURL() : visit_count(0), typed_count(0) {} in ChangedURL()
455 int visit_count; member
469 cur.visit_count++; in ExpireURLsForVisits()
509 std::max(0, url_row.visit_count() - i->second.visit_count)); in ExpireURLsForVisits()
Dhistory_types.h90 int visit_count() const { in visit_count() function
93 void set_visit_count(int visit_count) { in set_visit_count() argument
94 visit_count_ = visit_count; in set_visit_count()
/external/chromium/chrome/browser/sync/glue/
Dtyped_url_change_processor.cc100 DCHECK(static_cast<size_t>(url->visit_count()) == visits.size()); in HandleURLsModified()
101 if (static_cast<size_t>(url->visit_count()) != visits.size()) { in HandleURLsModified()
169 DCHECK(static_cast<size_t>(details->row.visit_count()) == visits.size()); in HandleURLsVisited()
278 new_url.set_visit_count(old_url.visit_count()); in ApplyChangesFromSyncModel()
/external/chromium/chrome/browser/importer/
Dprofile_import_process_messages.h81 WriteParam(m, p.visit_count());
90 int visit_count, typed_count;
96 !ReadParam(m, iter, &visit_count) ||
103 p->set_visit_count(visit_count);
117 LogParam(p.visit_count(), l);
/external/chromium/chrome/browser/autocomplete/
Dhistory_url_provider.cc72 if (a.url_info.visit_count() != b.url_info.visit_count()) in CompareHistoryMatch()
73 return a.url_info.visit_count() > b.url_info.visit_count(); in CompareHistoryMatch()
517 const int min_visit_count = ((match.url_info.visit_count() - 1) / 3) + 1; in PromoteOrCreateShorterSuggestion()
780 !!info.visit_count(), AutocompleteMatch::HISTORY_URL); in HistoryMatchToACMatch()
Dhistory_quick_provider_unittest.cc35 int visit_count; member
138 url_info.set_visit_count(cur.visit_count); in FillData()
145 cur.visit_count, cur.typed_count, in FillData()
/external/chromium_org/chrome/browser/autocomplete/
Dhistory_url_provider.cc138 if (a.url_info.visit_count() != b.url_info.visit_count()) in CompareHistoryMatch()
139 return a.url_info.visit_count() > b.url_info.visit_count(); in CompareHistoryMatch()
186 match->RecordAdditionalInfo("visit count", info.visit_count()); in RecordAdditionalInfoFromUrlRow()
935 const int min_visit_count = ((match.url_info.visit_count() - 1) / 3) + 1; in PromoteOrCreateShorterSuggestion()
1048 !!info.visit_count(), AutocompleteMatchType::HISTORY_URL); in HistoryMatchToACMatch()

1234