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 COMPONENTS_HISTORY_CORE_BROWSER_ANDROID_URLS_SQL_HANDLER_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_ANDROID_URLS_SQL_HANDLER_H_ |
6 #define COMPONENTS_HISTORY_CORE_BROWSER_ANDROID_URLS_SQL_HANDLER_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_ANDROID_URLS_SQL_HANDLER_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "components/history/core/browser/android/sql_handler.h" | 9 #include "components/history/core/browser/android/sql_handler.h" |
9 | 10 |
10 namespace history { | 11 namespace history { |
11 | 12 |
12 class URLDatabase; | 13 class URLDatabase; |
13 | 14 |
14 // This class is the SQLHandler implementation for urls table. | 15 // This class is the SQLHandler implementation for urls table. |
15 class UrlsSQLHandler : public SQLHandler { | 16 class UrlsSQLHandler : public SQLHandler { |
16 public: | 17 public: |
17 explicit UrlsSQLHandler(URLDatabase* url_db); | 18 explicit UrlsSQLHandler(URLDatabase* url_db); |
18 ~UrlsSQLHandler() override; | 19 ~UrlsSQLHandler() override; |
19 | 20 |
20 // Overriden from SQLHandler. | 21 // Overriden from SQLHandler. |
21 bool Insert(HistoryAndBookmarkRow* row) override; | 22 bool Insert(HistoryAndBookmarkRow* row) override; |
22 bool Update(const HistoryAndBookmarkRow& row, | 23 bool Update(const HistoryAndBookmarkRow& row, |
23 const TableIDRows& ids_set) override; | 24 const TableIDRows& ids_set) override; |
24 bool Delete(const TableIDRows& ids_set) override; | 25 bool Delete(const TableIDRows& ids_set) override; |
25 | 26 |
26 private: | 27 private: |
27 URLDatabase* url_db_; | 28 URLDatabase* url_db_; |
28 | 29 |
29 DISALLOW_COPY_AND_ASSIGN(UrlsSQLHandler); | 30 DISALLOW_COPY_AND_ASSIGN(UrlsSQLHandler); |
30 }; | 31 }; |
31 | 32 |
32 } // namespace history. | 33 } // namespace history. |
33 | 34 |
34 #endif // COMPONENTS_HISTORY_CORE_BROWSER_ANDROID_URLS_SQL_HANDLER_H_ | 35 #endif // COMPONENTS_HISTORY_CORE_BROWSER_ANDROID_URLS_SQL_HANDLER_H_ |
OLD | NEW |