| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_HISTORY_ANDROID_ANDROID_URLS_SQL_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_ANDROID_ANDROID_URLS_SQL_HANDLER_H_ |
| 6 #define CHROME_BROWSER_HISTORY_ANDROID_ANDROID_URLS_SQL_HANDLER_H_ | 6 #define CHROME_BROWSER_HISTORY_ANDROID_ANDROID_URLS_SQL_HANDLER_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/history/android/sql_handler.h" | 8 #include "chrome/browser/history/android/sql_handler.h" |
| 9 | 9 |
| 10 namespace history { | 10 namespace history { |
| 11 | 11 |
| 12 class HistoryDatabase; | 12 class HistoryDatabase; |
| 13 | 13 |
| 14 // The SQLHanlder implementation for android_urls table. | 14 // The SQLHanlder implementation for android_urls table. |
| 15 class AndroidURLsSQLHandler : public SQLHandler { | 15 class AndroidURLsSQLHandler : public SQLHandler { |
| 16 public: | 16 public: |
| 17 explicit AndroidURLsSQLHandler(HistoryDatabase* history_db); | 17 explicit AndroidURLsSQLHandler(HistoryDatabase* history_db); |
| 18 virtual ~AndroidURLsSQLHandler(); | 18 virtual ~AndroidURLsSQLHandler(); |
| 19 | 19 |
| 20 virtual bool Update(const HistoryAndBookmarkRow& row, | 20 virtual bool Update(const HistoryAndBookmarkRow& row, |
| 21 const TableIDRows& ids_set) OVERRIDE; | 21 const TableIDRows& ids_set) override; |
| 22 | 22 |
| 23 virtual bool Insert(HistoryAndBookmarkRow* row) OVERRIDE; | 23 virtual bool Insert(HistoryAndBookmarkRow* row) override; |
| 24 | 24 |
| 25 virtual bool Delete(const TableIDRows& ids_set) OVERRIDE; | 25 virtual bool Delete(const TableIDRows& ids_set) override; |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 HistoryDatabase* history_db_; | 28 HistoryDatabase* history_db_; |
| 29 | 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(AndroidURLsSQLHandler); | 30 DISALLOW_COPY_AND_ASSIGN(AndroidURLsSQLHandler); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace history. | 33 } // namespace history. |
| 34 | 34 |
| 35 #endif // CHROME_BROWSER_HISTORY_ANDROID_ANDROID_URLS_SQL_HANDLER_H_ | 35 #endif // CHROME_BROWSER_HISTORY_ANDROID_ANDROID_URLS_SQL_HANDLER_H_ |
| OLD | NEW |