Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(608)

Unified Diff: components/history/core/android/sql_handler.cc

Issue 849323002: Componentize HistoryDatabase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android compilation Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/history/core/android/sql_handler.h ('k') | components/history/core/android/urls_sql_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/android/sql_handler.cc
diff --git a/components/history/core/android/sql_handler.cc b/components/history/core/android/sql_handler.cc
deleted file mode 100644
index 91f882a1220dd3b0e696852e06509fd71001892c..0000000000000000000000000000000000000000
--- a/components/history/core/android/sql_handler.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/history/core/android/sql_handler.h"
-
-namespace history {
-
-TableIDRow::TableIDRow()
- : url_id(0),
- bookmarked(false) {
-}
-
-TableIDRow::~TableIDRow() {
-}
-
-SQLHandler::SQLHandler(const HistoryAndBookmarkRow::ColumnID columns[],
- int column_count)
- : columns_(columns, columns + column_count) {
-}
-
-SQLHandler::~SQLHandler() {
-}
-
-bool SQLHandler::HasColumnIn(const HistoryAndBookmarkRow& row) {
- for (std::set<HistoryAndBookmarkRow::ColumnID>::const_iterator i =
- columns_.begin(); i != columns_.end(); ++i) {
- if (row.is_value_set_explicitly(*i))
- return true;
- }
- return false;
-}
-
-bool SQLHandler::HasColumn(HistoryAndBookmarkRow::ColumnID id) {
- return columns_.find(id) != columns_.end();
-}
-
-} // namespace history.
« no previous file with comments | « components/history/core/android/sql_handler.h ('k') | components/history/core/android/urls_sql_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698