1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/history/android/sql_handler.h"
9 TableIDRow::TableIDRow()
14 TableIDRow::~TableIDRow() {
17 SQLHandler::SQLHandler(const HistoryAndBookmarkRow::ColumnID columns[],
19 : columns_(columns, columns + column_count) {
22 SQLHandler::~SQLHandler() {
25 bool SQLHandler::HasColumnIn(const HistoryAndBookmarkRow& row) {
26 for (std::set<HistoryAndBookmarkRow::ColumnID>::const_iterator i =
27 columns_.begin(); i != columns_.end(); ++i) {
28 if (row.is_value_set_explicitly(*i))
34 bool SQLHandler::HasColumn(HistoryAndBookmarkRow::ColumnID id) {
35 return columns_.find(id) != columns_.end();
38 } // namespace history.