| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 bool MigrateToVersion29InstantURLToSupportsInstant(); | 133 bool MigrateToVersion29InstantURLToSupportsInstant(); |
| 134 bool MigrateToVersion38AddLastModifiedColumn(); | 134 bool MigrateToVersion38AddLastModifiedColumn(); |
| 135 bool MigrateToVersion39AddSyncGUIDColumn(); | 135 bool MigrateToVersion39AddSyncGUIDColumn(); |
| 136 bool MigrateToVersion44AddDefaultSearchProviderBackup(); | 136 bool MigrateToVersion44AddDefaultSearchProviderBackup(); |
| 137 bool MigrateToVersion45RemoveLogoIDAndAutogenerateColumns(); | 137 bool MigrateToVersion45RemoveLogoIDAndAutogenerateColumns(); |
| 138 bool MigrateToVersion47AddAlternateURLsColumn(); | 138 bool MigrateToVersion47AddAlternateURLsColumn(); |
| 139 bool MigrateToVersion48RemoveKeywordsBackup(); | 139 bool MigrateToVersion48RemoveKeywordsBackup(); |
| 140 bool MigrateToVersion49AddSearchTermsReplacementKeyColumn(); | 140 bool MigrateToVersion49AddSearchTermsReplacementKeyColumn(); |
| 141 bool MigrateToVersion52AddImageSearchAndPOSTSupport(); | 141 bool MigrateToVersion52AddImageSearchAndPOSTSupport(); |
| 142 bool MigrateToVersion53AddNewTabURLColumn(); | 142 bool MigrateToVersion53AddNewTabURLColumn(); |
| 143 bool MigrateToVersion59RemoveExtensionKeywords(); |
| 143 | 144 |
| 144 private: | 145 private: |
| 145 friend class KeywordTableTest; | 146 friend class KeywordTableTest; |
| 146 FRIEND_TEST_ALL_PREFIXES(WebDatabaseMigrationTest, MigrateVersion44ToCurrent); | 147 FRIEND_TEST_ALL_PREFIXES(WebDatabaseMigrationTest, MigrateVersion44ToCurrent); |
| 147 | 148 |
| 148 // NOTE: Since the table columns have changed in different versions, many | 149 // NOTE: Since the table columns have changed in different versions, many |
| 149 // functions below take a |table_version| argument which dictates which | 150 // functions below take a |table_version| argument which dictates which |
| 150 // version number's column set to use. | 151 // version number's column set to use. |
| 151 | 152 |
| 152 // Fills |data| with the data in |s|. Returns false if we couldn't fill | 153 // Fills |data| with the data in |s|. Returns false if we couldn't fill |
| (...skipping 22 matching lines...) Expand all Loading... |
| 175 std::string* result); | 176 std::string* result); |
| 176 | 177 |
| 177 // Migrates table |name| (which should be either "keywords" or | 178 // Migrates table |name| (which should be either "keywords" or |
| 178 // "keywords_backup") from version 44 to version 45. | 179 // "keywords_backup") from version 44 to version 45. |
| 179 bool MigrateKeywordsTableForVersion45(const std::string& name); | 180 bool MigrateKeywordsTableForVersion45(const std::string& name); |
| 180 | 181 |
| 181 DISALLOW_COPY_AND_ASSIGN(KeywordTable); | 182 DISALLOW_COPY_AND_ASSIGN(KeywordTable); |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 #endif // COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_ | 185 #endif // COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_ |
| OLD | NEW |