Home
last modified time | relevance | path

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

12

/external/chromium_org/chrome/browser/history/android/
Durls_sql_handler_unittest.cc60 URLRow url_row; in TEST_F() local
61 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row)); in TEST_F()
62 EXPECT_EQ(row.url(), url_row.url()); in TEST_F()
64 EXPECT_EQ(0, url_row.visit_count()); in TEST_F()
65 EXPECT_EQ(Time(), url_row.last_visit()); in TEST_F()
67 EXPECT_EQ(row.url_id(), url_row.id()); in TEST_F()
79 URLRow url_row; in TEST_F() local
80 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row)); in TEST_F()
81 EXPECT_EQ(row.url_id(), url_row.id()); in TEST_F()
82 EXPECT_EQ(row.url(), url_row.url()); in TEST_F()
[all …]
Dvisit_sql_handler_unittest.cc62 URLRow url_row; in TEST_F() local
63 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row)); in TEST_F()
81 URLRow url_row; in TEST_F() local
82 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row)); in TEST_F()
101 URLRow url_row; in TEST_F() local
102 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row)); in TEST_F()
120 URLRow url_row; in TEST_F() local
121 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row)); in TEST_F()
142 URLRow url_row; in TEST_F() local
143 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row)); in TEST_F()
[all …]
Durls_sql_handler.cc31 URLRow url_row(row->url()); in Insert() local
33 URLID id = history_db_->GetRowForURL(row->url(), &url_row); in Insert()
40 url_row.set_title(row->title()); in Insert()
43 url_row.set_last_visit(row->last_visit_time()); in Insert()
46 url_row.set_visit_count(row->visit_count()); in Insert()
51 url_row.set_last_visit(row->created()); in Insert()
53 url_row.set_last_visit(Time::Now()); in Insert()
69 url_row.set_visit_count(visit_count); in Insert()
72 URLID new_id = history_db_->AddURL(url_row); in Insert()
101 URLRow url_row; in Update() local
[all …]
Dbookmark_model_sql_handler_unittest.cc121 URLRow url_row(GURL("http://www.google.com")); in TEST_F() local
122 url_row.set_title(base::UTF8ToUTF16("Google")); in TEST_F()
123 URLID url_id = history_db_.AddURL(url_row); in TEST_F()
128 row.set_url(url_row.url()); in TEST_F()
133 id_row.url = url_row.url(); in TEST_F()
144 EXPECT_EQ(url_row.url(), bookmarks[0].url); in TEST_F()
145 EXPECT_EQ(url_row.title(), bookmarks[0].title); in TEST_F()
151 EXPECT_EQ(url_row.title(), nodes[0]->GetTitle()); in TEST_F()
173 EXPECT_EQ(url_row.url(), bookmarks[0].url); in TEST_F()
174 EXPECT_EQ(url_row.title(), bookmarks[0].title); in TEST_F()
[all …]
Dvisit_sql_handler.cc50 URLRow url_row; in Update() local
51 if (!history_db_->GetURLRow(id->url_id, &url_row)) in Update()
53 int visit_count_needed = url_row.visit_count(); in Update()
75 url_row.last_visit())) in Update()
84 URLRow url_row; in Insert() local
85 if (!history_db_->GetURLRow(row->url_id(), &url_row)) in Insert()
88 int visit_count = url_row.visit_count(); in Insert()
95 row->created() != url_row.last_visit() && visit_count > 0) { in Insert()
101 if (!AddVisitRows(row->url_id(), visit_count, url_row.last_visit())) in Insert()
Dandroid_provider_backend.cc344 URLRow url_row; in UpdateHistoryAndBookmarks() local
345 if (!history_db_->GetURLRow(i->url_id, &url_row)) in UpdateHistoryAndBookmarks()
347 modified->changed_urls.push_back(url_row); in UpdateHistoryAndBookmarks()
391 URLRow url_row; in InsertHistoryAndBookmark() local
392 if (!history_db_->GetURLRow(row.url_id(), &url_row)) in InsertHistoryAndBookmark()
396 modified->changed_urls.push_back(url_row); in InsertHistoryAndBookmark()
403 favicon->insert(url_row.url()); in InsertHistoryAndBookmark()
608 URLRow url_row; in UpdateSearchTerms() local
609 if (!history_db_->GetURLRow(search_term_rows[0].url_id, &url_row)) in UpdateSearchTerms()
615 table_id_row.url_id = url_row.id(); in UpdateSearchTerms()
[all …]
Dbookmark_model_sql_handler.cc108 URLRow url_row; in Update() local
109 if (!url_database_->GetURLRow(i->url_id, &url_row)) in Update()
116 i->url, url_row.title(), row.parent_id())); in Update()
122 i->url, url_row.title())); in Update()
Dandroid_provider_backend_unittest.cc256 URLRow url_row; in TEST_F() local
258 ASSERT_TRUE(history_backend->GetURL(url1, &url_row)); in TEST_F()
259 url_id1 = url_row.id(); in TEST_F()
260 ASSERT_TRUE(history_backend->GetURL(url2, &url_row)); in TEST_F()
261 url_id2 = url_row.id(); in TEST_F()
289 URLRow url_row; in TEST_F() local
290 ASSERT_TRUE(history_db_.GetRowForURL(url3, &url_row)); in TEST_F()
291 URLID url_id3 = url_row.id(); in TEST_F()
292 ASSERT_EQ(url3, url_row.url()); in TEST_F()
293 ASSERT_EQ(title3, url_row.title()); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/history/
Dexpire_history_backend.cc160 URLRow url_row; in DeleteURLs() local
161 if (!main_db_->GetRowForURL(*url, &url_row)) in DeleteURLs()
168 main_db_->GetVisitsForURL(url_row.id(), &visits); in DeleteURLs()
176 DeleteOneURL(url_row, in DeleteURLs()
355 void ExpireHistoryBackend::DeleteOneURL(const URLRow& url_row, in DeleteOneURL() argument
358 main_db_->DeleteSegmentForURL(url_row.id()); in DeleteOneURL()
361 effects->deleted_urls.push_back(url_row); in DeleteOneURL()
367 if (thumb_db_->GetIconMappingsForPageURL(url_row.url(), &icon_mappings)) { in DeleteOneURL()
373 thumb_db_->DeleteIconMappings(url_row.url()); in DeleteOneURL()
377 main_db_->DeleteURLRow(url_row.id()); in DeleteOneURL()
[all …]
Dtyped_url_syncable_service_unittest.cc270 URLRow url_row = url_rows.front(); in TEST_F() local
284 EXPECT_TRUE(URLsEqual(url_row, url_specifics)); in TEST_F()
296 EXPECT_TRUE(sync_state.end() != sync_state.find(url_row.url())); in TEST_F()
310 URLRow url_row = url_rows.front(); in TEST_F() local
314 AddNewestVisit(&url_row, &visits, ui::PAGE_TRANSITION_TYPED, 7); in TEST_F()
316 SetVisitsForUrl(url_row.id(), &visits); in TEST_F()
317 changed_urls.push_back(url_row); in TEST_F()
330 EXPECT_TRUE(URLsEqual(url_row, url_specifics)); in TEST_F()
349 EXPECT_TRUE(sync_state.end() != sync_state.find(url_row.url())); in TEST_F()
362 URLRow url_row = url_rows.front(); in TEST_F() local
[all …]
Din_memory_history_backend.cc104 void InMemoryHistoryBackend::OnURLVisitedOrModified(const URLRow& url_row) { in OnURLVisitedOrModified() argument
106 DCHECK(url_row.id()); in OnURLVisitedOrModified()
107 if (url_row.typed_count() || db_->GetKeywordSearchTermRow(url_row.id(), NULL)) in OnURLVisitedOrModified()
108 db_->InsertOrUpdateURLRowByID(url_row); in OnURLVisitedOrModified()
110 db_->DeleteURLRow(url_row.id()); in OnURLVisitedOrModified()
136 DCHECK(details.url_row.id()); in OnKeywordSearchTermUpdated()
137 db_->InsertOrUpdateURLRowByID(details.url_row); in OnKeywordSearchTermUpdated()
139 details.url_row.id(), details.keyword_id, details.term); in OnKeywordSearchTermUpdated()
Dhistory_notifications.cc26 const URLRow& url_row, in KeywordSearchUpdatedDetails() argument
29 : url_row(url_row), in KeywordSearchUpdatedDetails()
Durl_index_private_data.cc307 URLRow& row_to_update = row_pos->second.url_row; in UpdateURL()
379 return item.second.url_row.url() == url_; in operator ()()
394 RemoveRowFromIndex(pos->second.url_row); in DeleteURL()
715 history_info_map_[history_id].url_row = new_row; in IndexRow()
988 const URLRow& url_row(iter->second.url_row); in SaveHistoryInfoMap() local
991 map_entry->set_visit_count(url_row.visit_count()); in SaveHistoryInfoMap()
992 map_entry->set_typed_count(url_row.typed_count()); in SaveHistoryInfoMap()
993 map_entry->set_last_visit(url_row.last_visit().ToInternalValue()); in SaveHistoryInfoMap()
994 map_entry->set_url(url_row.url().spec()); in SaveHistoryInfoMap()
995 map_entry->set_title(base::UTF16ToUTF8(url_row.title())); in SaveHistoryInfoMap()
[all …]
Dhistory_database_unittest.cc41 URLRow url_row; in TEST() local
42 while (url_enumerator.GetNextURL(&url_row)) { in TEST()
Dhistory_notifications.h74 KeywordSearchUpdatedDetails(const URLRow& url_row,
81 URLRow url_row; member
Dexpire_history_backend_unittest.cc479 URLRow url_row; in TEST_F() local
480 ASSERT_TRUE(main_db_->GetURLRow(url_ids[2], &url_row)); in TEST_F()
483 StarURL(url_row.url()); in TEST_F()
486 expirer_.DeleteURL(url_row.url()); in TEST_F()
489 GURL url = url_row.url(); in TEST_F()
490 ASSERT_TRUE(main_db_->GetRowForURL(url, &url_row)); in TEST_F()
494 GetFavicon(url_row.url(), favicon_base::FAVICON); in TEST_F()
499 main_db_->GetVisitsForURL(url_row.id(), &visits); in TEST_F()
512 EnsureURLInfoGone(url_row, false); in TEST_F()
Dhistory_service.cc257 history::URLRow url_row; in GetTypedCountForURL() local
258 if (!GetRowForURL(url, &url_row)) in GetTypedCountForURL()
260 *typed_count = url_row.typed_count(); in GetTypedCountForURL()
267 history::URLRow url_row; in GetLastVisitTimeForURL() local
268 if (!GetRowForURL(url, &url_row)) in GetLastVisitTimeForURL()
270 *last_visit = url_row.last_visit(); in GetLastVisitTimeForURL()
276 history::URLRow url_row; in GetVisitCountForURL() local
277 if (!GetRowForURL(url, &url_row)) in GetVisitCountForURL()
279 *visit_count = url_row.visit_count(); in GetVisitCountForURL()
1218 bool HistoryService::GetRowForURL(const GURL& url, history::URLRow* url_row) { in GetRowForURL() argument
[all …]
Dscored_history_match_unittest.cc46 void PopulateWordStarts(const URLRow& url_row, RowWordStarts* word_starts);
76 const URLRow& url_row, RowWordStarts* word_starts) { in PopulateWordStarts() argument
77 String16SetFromString16(ASCIIToUTF16(url_row.url().spec()), in PopulateWordStarts()
79 String16SetFromString16(url_row.title(), &word_starts->title_word_starts_); in PopulateWordStarts()
Din_memory_history_backend.h81 void OnURLVisitedOrModified(const URLRow& url_row);
Dhistory_backend_unittest.cc422 URLRow url_row(GURL("https://www.google.com/")); in CreateTestTypedURL() local
423 url_row.set_id(10); in CreateTestTypedURL()
424 url_row.set_title(base::UTF8ToUTF16("Google Search")); in CreateTestTypedURL()
425 url_row.set_typed_count(1); in CreateTestTypedURL()
426 url_row.set_visit_count(1); in CreateTestTypedURL()
427 url_row.set_last_visit(Time::Now() - base::TimeDelta::FromHours(1)); in CreateTestTypedURL()
428 return url_row; in CreateTestTypedURL()
432 URLRow url_row(GURL("https://maps.google.com/")); in CreateAnotherTestTypedURL() local
433 url_row.set_id(20); in CreateAnotherTestTypedURL()
434 url_row.set_title(base::UTF8ToUTF16("Google Maps")); in CreateAnotherTestTypedURL()
[all …]
Din_memory_url_index_types.h152 URLRow url_row; member
/external/chromium_org/components/history/core/browser/
DBUILD.gn23 "url_row.cc",
24 "url_row.h",
Durl_row.cc75 URLResult::URLResult(const URLRow& url_row) in URLResult() argument
76 : URLRow(url_row), in URLResult()
Durl_row.h169 explicit URLResult(const URLRow& url_row);
/external/chromium_org/components/
Dhistory.gypi43 'history/core/browser/url_row.cc',
44 'history/core/browser/url_row.h',

12