| 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_WEBDATA_KEYWORD_TABLE_H_ | 5 #ifndef CHROME_BROWSER_WEBDATA_KEYWORD_TABLE_H_ |
| 6 #define CHROME_BROWSER_WEBDATA_KEYWORD_TABLE_H_ | 6 #define CHROME_BROWSER_WEBDATA_KEYWORD_TABLE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/string16.h" | 13 #include "base/string16.h" |
| 14 #include "chrome/browser/webdata/web_database_table.h" | |
| 15 #include "chrome/browser/search_engines/template_url_id.h" | 14 #include "chrome/browser/search_engines/template_url_id.h" |
| 15 #include "components/webdata/common/web_database_table.h" |
| 16 | 16 |
| 17 struct TemplateURLData; | 17 struct TemplateURLData; |
| 18 class WebDatabase; | 18 class WebDatabase; |
| 19 | 19 |
| 20 namespace sql { | 20 namespace sql { |
| 21 class Statement; | 21 class Statement; |
| 22 } // namespace sql | 22 } // namespace sql |
| 23 | 23 |
| 24 // This class manages the |keywords| MetaTable within the SQLite database | 24 // This class manages the |keywords| MetaTable within the SQLite database |
| 25 // passed to the constructor. It expects the following schema: | 25 // passed to the constructor. It expects the following schema: |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 std::string* result); | 157 std::string* result); |
| 158 | 158 |
| 159 // Migrates table |name| (which should be either "keywords" or | 159 // Migrates table |name| (which should be either "keywords" or |
| 160 // "keywords_backup") from version 44 to version 45. | 160 // "keywords_backup") from version 44 to version 45. |
| 161 bool MigrateKeywordsTableForVersion45(const std::string& name); | 161 bool MigrateKeywordsTableForVersion45(const std::string& name); |
| 162 | 162 |
| 163 DISALLOW_COPY_AND_ASSIGN(KeywordTable); | 163 DISALLOW_COPY_AND_ASSIGN(KeywordTable); |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 #endif // CHROME_BROWSER_WEBDATA_KEYWORD_TABLE_H_ | 166 #endif // CHROME_BROWSER_WEBDATA_KEYWORD_TABLE_H_ |
| OLD | NEW |