Home | History | Annotate | Download | only in android

Lines Matching defs:row

41     // Android framework assumes 'folder' column exist in the table, the row is
43 // has to be added and set as 0 when the row is bookmark.
73 bool IsHistoryAndBookmarkRowValid(const HistoryAndBookmarkRow& row) {
75 DCHECK(row.is_value_set_explicitly(HistoryAndBookmarkRow::RAW_URL) ==
76 row.is_value_set_explicitly(HistoryAndBookmarkRow::URL));
87 if (row.is_value_set_explicitly(HistoryAndBookmarkRow::LAST_VISIT_TIME) &&
88 row.last_visit_time() > Time::Now())
91 if (row.is_value_set_explicitly(HistoryAndBookmarkRow::CREATED) &&
92 row.created() > Time::Now())
95 if (row.is_value_set_explicitly(HistoryAndBookmarkRow::LAST_VISIT_TIME) &&
96 row.is_value_set_explicitly(HistoryAndBookmarkRow::CREATED)) {
97 if (row.created() > row.last_visit_time())
100 if (row.is_value_set_explicitly(HistoryAndBookmarkRow::VISIT_COUNT) &&
101 row.is_value_set_explicitly(HistoryAndBookmarkRow::CREATED) &&
102 row.is_value_set_explicitly(HistoryAndBookmarkRow::LAST_VISIT_TIME)) {
103 if (row.created() != row.last_visit_time() &&
104 row.created() != Time::UnixEpoch() &&
105 (row.visit_count() == 0 || row.visit_count() == 1))
108 if (row.last_visit_time().ToInternalValue() -
109 row.created().ToInternalValue() < row.visit_count())
157 const HistoryAndBookmarkRow& row,
165 if (!UpdateHistoryAndBookmarks(row, selection, selection_args, updated_count,
291 const HistoryAndBookmarkRow& row,
296 if (!IsHistoryAndBookmarkRowValid(row))
299 if (row.is_value_set_explicitly(HistoryAndBookmarkRow::ID))
315 if (row.is_value_set_explicitly(HistoryAndBookmarkRow::URL)) {
316 // Only one row's URL can be updated at a time as we can't have multiple
321 HistoryAndBookmarkRow new_row = row;
330 if ((*i)->HasColumnIn(row)) {
331 if (!(*i)->Update(row, ids_set))
342 if (row.is_value_set_explicitly(HistoryAndBookmarkRow::TITLE) ||
343 row.is_value_set_explicitly(HistoryAndBookmarkRow::VISIT_COUNT) ||
344 row.is_value_set_explicitly(HistoryAndBookmarkRow::LAST_VISIT_TIME)) {
351 row.is_value_set_explicitly(HistoryAndBookmarkRow::FAVICON))
378 HistoryAndBookmarkRow row = values;
381 if (!(*i)->Insert(&row))
386 if (!history_db_->GetURLRow(row.url_id(), &url_row))
396 if (row.is_value_set_explicitly(HistoryAndBookmarkRow::FAVICON) &&
397 row.favicon_valid() && thumbnail_db_) {
410 return row.id();
465 HistoryAndBookmarkRow row;
466 row.set_raw_url(android_url_row.raw_url);
467 row.set_url(i->url);
470 row.set_last_visit_time(Time::UnixEpoch());
471 row.set_visit_count(0);
474 bookmarks.push_back(row);
533 const SearchRow& row,
544 // We can not update search term if multiple row selected.
545 if (row.is_value_set_explicitly(SearchRow::SEARCH_TERM) &&
554 if (row.is_value_set_explicitly(SearchRow::SEARCH_TERM)) {
556 SearchRow search_row = row;
588 if (search_term_row.last_visit_time > row.search_time())
603 bookmark_row.set_last_visit_time(row.search_time());
745 // and there is no row in the visit table when the visit count is 0.
894 TableIDRow row;
895 row.url_id = statement.ColumnInt64(0);
896 row.url = GURL(statement.ColumnString(1));
897 row.bookmarked = statement.ColumnBool(2);
898 rows->push_back(row);
944 const HistoryAndBookmarkRow& row,
997 favicon_details->urls.insert(row.url());
1001 // The SQLHandler vector is not used here because the row in android_url
1016 new_row.set_url(row.url());
1017 new_row.set_raw_url(row.raw_url());
1018 if (row.is_value_set_explicitly(HistoryAndBookmarkRow::LAST_VISIT_TIME))
1019 new_row.set_last_visit_time(row.last_visit_time());
1020 if (row.is_value_set_explicitly(HistoryAndBookmarkRow::CREATED))
1021 new_row.set_created(row.created());
1022 if (row.is_value_set_explicitly(HistoryAndBookmarkRow::VISIT_COUNT))
1023 new_row.set_visit_count(row.visit_count());
1024 if (row.is_value_set_explicitly(HistoryAndBookmarkRow::TITLE))
1025 new_row.set_title(row.title());
1026 if (row.is_value_set_explicitly(HistoryAndBookmarkRow::FAVICON)) {
1027 new_row.set_favicon(row.favicon());
1030 if (row.is_value_set_explicitly(HistoryAndBookmarkRow::BOOKMARK))
1031 new_row.set_is_bookmark(row.is_bookmark());
1039 // Update the current row instead of inserting a new row in android urls