| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SEARCH_ENGINES_KEYWORD_TABLE_H_ | 5 #ifndef COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_ |
| 6 #define COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_ | 6 #define COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 // Returns true on success. | 158 // Returns true on success. |
| 159 bool UpdateKeyword(const TemplateURLData& data); | 159 bool UpdateKeyword(const TemplateURLData& data); |
| 160 | 160 |
| 161 // Gets a string representation for keyword with id specified. | 161 // Gets a string representation for keyword with id specified. |
| 162 // Used to store its result in |meta| table or to compare with another | 162 // Used to store its result in |meta| table or to compare with another |
| 163 // keyword. Returns true on success, false otherwise. | 163 // keyword. Returns true on success, false otherwise. |
| 164 bool GetKeywordAsString(TemplateURLID id, | 164 bool GetKeywordAsString(TemplateURLID id, |
| 165 const std::string& table_name, | 165 const std::string& table_name, |
| 166 std::string* result); | 166 std::string* result); |
| 167 | 167 |
| 168 // Migrates table |name| (which should be either "keywords" or | |
| 169 // "keywords_backup") from version 44 to version 45. | |
| 170 bool MigrateKeywordsTableForVersion45(const std::string& name); | |
| 171 | |
| 172 DISALLOW_COPY_AND_ASSIGN(KeywordTable); | 168 DISALLOW_COPY_AND_ASSIGN(KeywordTable); |
| 173 }; | 169 }; |
| 174 | 170 |
| 175 #endif // COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_ | 171 #endif // COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_ |
| OLD | NEW |