Home
last modified time | relevance | path

Searched refs:url_row (Results 1 – 15 of 15) sorted by relevance

/external/chromium/chrome/browser/history/
Dhistory_types_unittest.cc173 URLRow url_row(url); in TEST() local
174 url_row.set_title(UTF8ToUTF16("Google")); in TEST()
175 EXPECT_FALSE(RowQualifiesAsSignificant(url_row, threshold)); in TEST()
176 EXPECT_FALSE(RowQualifiesAsSignificant(url_row, base::Time())); in TEST()
177 url_row.set_visit_count(kLowQualityMatchVisitLimit + 1); in TEST()
178 EXPECT_TRUE(RowQualifiesAsSignificant(url_row, threshold)); in TEST()
179 EXPECT_TRUE(RowQualifiesAsSignificant(url_row, base::Time())); in TEST()
180 url_row.set_visit_count(1); in TEST()
181 EXPECT_FALSE(RowQualifiesAsSignificant(url_row, threshold)); in TEST()
182 EXPECT_FALSE(RowQualifiesAsSignificant(url_row, base::Time())); in TEST()
[all …]
Dexpire_history_backend.cc192 URLRow url_row; in DeleteURL() local
193 if (!main_db_->GetRowForURL(url, &url_row)) in DeleteURL()
201 main_db_->GetVisitsForURL(url_row.id(), &visits); in DeleteURL()
214 DeleteOneURL(url_row, is_bookmarked, &dependencies); in DeleteURL()
395 const URLRow& url_row, in DeleteOneURL() argument
398 main_db_->DeleteSegmentForURL(url_row.id()); in DeleteOneURL()
403 restrict_urls.insert(url_row.url()); in DeleteOneURL()
408 dependencies->deleted_urls.push_back(url_row); in DeleteOneURL()
412 thumb_db_->DeleteThumbnail(url_row.id()); in DeleteOneURL()
416 if (thumb_db_->GetIconMappingsForPageURL(url_row.url(), &icon_mappings)) { in DeleteOneURL()
[all …]
Dtext_database_manager.cc197 URLRow url_row; in AddPageTitle() local
198 if (!url_database_->GetRowForURL(url, &url_row)) in AddPageTitle()
201 if (!visit_database_->GetMostRecentVisitForURL(url_row.id(), &visit)) in AddPageTitle()
216 AddPageData(url, url_row.id(), visit.visit_id, visit.visit_time, in AddPageTitle()
244 URLRow url_row; in AddPageContents() local
245 if (!url_database_->GetRowForURL(url, &url_row)) in AddPageContents()
248 if (!visit_database_->GetMostRecentVisitForURL(url_row.id(), &visit)) in AddPageContents()
252 AddPageData(url, url_row.id(), visit.visit_id, visit.visit_time, in AddPageContents()
253 url_row.title(), body); in AddPageContents()
Dstarred_url_database.cc276 URLRow url_row; in CreateStarredEntry() local
277 if (!GetRowForURL(entry->url, &url_row)) { in CreateStarredEntry()
279 url_row = URLRow(entry->url); in CreateStarredEntry()
280 url_row.set_title(entry->title); in CreateStarredEntry()
281 url_row.set_hidden(false); in CreateStarredEntry()
282 entry->url_id = this->AddURL(url_row); in CreateStarredEntry()
284 entry->url_id = url_row.id(); // The caller doesn't have to set this. in CreateStarredEntry()
293 UpdateURLRow(entry->url_id, url_row); in CreateStarredEntry()
Din_memory_history_backend.cc174 URLRow url_row; in OnKeywordSearchTermUpdated() local
176 if (!db_->GetRowForURL(details.url, &url_row)) { in OnKeywordSearchTermUpdated()
186 url_id = url_row.id(); in OnKeywordSearchTermUpdated()
Dhistory_backend.cc958 history::URLRow url_row; in RemoveVisits() local
959 if (!db_->GetURLRow(count->first, &url_row)) { in RemoveVisits()
962 DCHECK(count->second <= url_row.visit_count()); in RemoveVisits()
963 url_row.set_visit_count(url_row.visit_count() - count->second); in RemoveVisits()
964 if (!db_->UpdateURLRow(url_row.id(), url_row)) { in RemoveVisits()
974 bool HistoryBackend::GetURL(const GURL& url, history::URLRow* url_row) { in GetURL() argument
976 return db_->GetRowForURL(url, url_row) != 0; in GetURL()
1050 URLRow url_row; in SetKeywordSearchTermsForURL() local
1051 if (!db_->GetRowForURL(url, &url_row)) { in SetKeywordSearchTermsForURL()
1057 db_->SetKeywordSearchTermsForURL(url_row.id(), keyword_id, term); in SetKeywordSearchTermsForURL()
[all …]
Dexpire_history_backend_unittest.cc551 URLRow url_row; in TEST_F() local
552 ASSERT_TRUE(main_db_->GetURLRow(url_ids[2], &url_row)); in TEST_F()
555 StarURL(url_row.url()); in TEST_F()
558 expirer_.DeleteURL(url_row.url()); in TEST_F()
561 GURL url = url_row.url(); in TEST_F()
562 ASSERT_TRUE(main_db_->GetRowForURL(url, &url_row)); in TEST_F()
565 FaviconID favicon_id = GetFavicon(url_row.url(), FAVICON); in TEST_F()
569 ASSERT_EQ(0, CountTextMatchesForURL(url_row.url())); in TEST_F()
573 main_db_->GetVisitsForURL(url_row.id(), &visits); in TEST_F()
585 EnsureURLInfoGone(url_row); in TEST_F()
Din_memory_url_index.cc1042 const URLRow& url_row(iter->second); in SaveHistoryInfoMap() local
1046 map_entry->set_visit_count(url_row.visit_count()); in SaveHistoryInfoMap()
1047 map_entry->set_typed_count(url_row.typed_count()); in SaveHistoryInfoMap()
1048 map_entry->set_last_visit(url_row.last_visit().ToInternalValue()); in SaveHistoryInfoMap()
1049 map_entry->set_url(url_row.url().spec()); in SaveHistoryInfoMap()
1050 map_entry->set_title(UTF16ToUTF8(url_row.title())); in SaveHistoryInfoMap()
1069 URLRow url_row(url, history_id); in RestoreHistoryInfoMap() local
1070 url_row.set_visit_count(iter->visit_count()); in RestoreHistoryInfoMap()
1071 url_row.set_typed_count(iter->typed_count()); in RestoreHistoryInfoMap()
1072 url_row.set_last_visit(base::Time::FromInternalValue(iter->last_visit())); in RestoreHistoryInfoMap()
[all …]
Dexpire_history_backend.h155 void DeleteOneURL(const URLRow& url_row,
164 URLID ArchiveOneURL(const URLRow& url_row);
Dtext_database_manager_unittest.cc331 URLRow url_row(url); in TEST_F() local
332 url_row.set_title(UTF8ToUTF16("chocolate")); in TEST_F()
333 URLID url_id = visit_db.AddURL(url_row); in TEST_F()
Dhistory_backend.h288 virtual bool GetURL(const GURL& url, history::URLRow* url_row);
Dhistory_unittest.cc205 const URLRow* url_row, in SaveURLAndQuit() argument
209 query_url_row_ = *url_row; in SaveURLAndQuit()
/external/chromium/chrome/browser/extensions/
Dextension_history_api.h106 const history::URLRow* url_row,
Dextension_history_api.cc245 const history::URLRow* url_row, in QueryComplete() argument
/external/chromium/chrome/browser/sync/
Dprofile_sync_service_typed_url_unittest.cc86 MOCK_METHOD2(GetURL, bool(const GURL& url_id, history::URLRow* url_row));