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 #ifndef CHROME_BROWSER_HISTORY_ANDROID_ANDROID_URLS_SQL_HANDLER_H_
6 #define CHROME_BROWSER_HISTORY_ANDROID_ANDROID_URLS_SQL_HANDLER_H_
8 #include "chrome/browser/history/android/sql_handler.h"
12 class HistoryDatabase;
14 // The SQLHanlder implementation for android_urls table.
15 class AndroidURLsSQLHandler : public SQLHandler {
17 explicit AndroidURLsSQLHandler(HistoryDatabase* history_db);
18 virtual ~AndroidURLsSQLHandler();
20 virtual bool Update(const HistoryAndBookmarkRow& row,
21 const TableIDRows& ids_set) override;
23 virtual bool Insert(HistoryAndBookmarkRow* row) override;
25 virtual bool Delete(const TableIDRows& ids_set) override;
28 HistoryDatabase* history_db_;
30 DISALLOW_COPY_AND_ASSIGN(AndroidURLsSQLHandler);
33 } // namespace history.
35 #endif // CHROME_BROWSER_HISTORY_ANDROID_ANDROID_URLS_SQL_HANDLER_H_