| 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_BOOKMARK_MODEL_SQL_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_ANDROID_BOOKMARK_MODEL_SQL_HANDLER_H_ |
| 6 #define CHROME_BROWSER_HISTORY_ANDROID_BOOKMARK_MODEL_SQL_HANDLER_H_ | 6 #define CHROME_BROWSER_HISTORY_ANDROID_BOOKMARK_MODEL_SQL_HANDLER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "components/history/core/browser/android/sql_handler.h" | 11 #include "components/history/core/browser/android/sql_handler.h" |
| 12 | 12 |
| 13 class Profile; | 13 class Profile; |
| 14 | 14 |
| 15 namespace bookmarks { | 15 namespace bookmarks { |
| 16 class BookmarkModel; | 16 class BookmarkModel; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace history { | 19 namespace history { |
| 20 | 20 |
| 21 class HistoryDatabase; | 21 class HistoryDatabase; |
| 22 class URLDatabase; |
| 22 | 23 |
| 23 // The SQL handler for bookmarking_mapping table. | 24 // The SQL handler for bookmarking_mapping table. |
| 24 class BookmarkModelSQLHandler : public SQLHandler { | 25 class BookmarkModelSQLHandler : public SQLHandler { |
| 25 public: | 26 public: |
| 26 explicit BookmarkModelSQLHandler(URLDatabase* url_database); | 27 explicit BookmarkModelSQLHandler(URLDatabase* url_database); |
| 27 | 28 |
| 28 ~BookmarkModelSQLHandler() override; | 29 ~BookmarkModelSQLHandler() override; |
| 29 | 30 |
| 30 // SQLHandler overrides: | 31 // SQLHandler overrides: |
| 31 bool Update(const HistoryAndBookmarkRow& row, | 32 bool Update(const HistoryAndBookmarkRow& row, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 URLDatabase* url_database_; | 77 URLDatabase* url_database_; |
| 77 | 78 |
| 78 DISALLOW_COPY_AND_ASSIGN(BookmarkModelSQLHandler); | 79 DISALLOW_COPY_AND_ASSIGN(BookmarkModelSQLHandler); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace history. | 82 } // namespace history. |
| 82 | 83 |
| 83 #endif // CHROME_BROWSER_HISTORY_ANDROID_BOOKMARK_MODEL_SQL_HANDLER_H_ | 84 #endif // CHROME_BROWSER_HISTORY_ANDROID_BOOKMARK_MODEL_SQL_HANDLER_H_ |
| OLD | NEW |