| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 int GetBuiltinKeywordVersion(); | 96 int GetBuiltinKeywordVersion(); |
| 97 | 97 |
| 98 // Table migration functions. | 98 // Table migration functions. |
| 99 bool MigrateToVersion21AutoGenerateKeywordColumn(); | 99 bool MigrateToVersion21AutoGenerateKeywordColumn(); |
| 100 bool MigrateToVersion25AddLogoIDColumn(); | 100 bool MigrateToVersion25AddLogoIDColumn(); |
| 101 bool MigrateToVersion26AddCreatedByPolicyColumn(); | 101 bool MigrateToVersion26AddCreatedByPolicyColumn(); |
| 102 bool MigrateToVersion28SupportsInstantColumn(); | 102 bool MigrateToVersion28SupportsInstantColumn(); |
| 103 bool MigrateToVersion29InstantUrlToSupportsInstant(); | 103 bool MigrateToVersion29InstantUrlToSupportsInstant(); |
| 104 bool MigrateToVersion38AddLastModifiedColumn(); | 104 bool MigrateToVersion38AddLastModifiedColumn(); |
| 105 bool MigrateToVersion39AddSyncGUIDColumn(); | 105 bool MigrateToVersion39AddSyncGUIDColumn(); |
| 106 bool MigrateToVersion40AddDefaultSearchEngineBackup(); | 106 bool MigrateToVersion40AddDefaultSearchProviderBackup(); |
| 107 bool MigrateToVersion41RewriteDefaultSearchProviderBackup(); |
| 107 | 108 |
| 108 private: | 109 private: |
| 109 FRIEND_TEST_ALL_PREFIXES(KeywordTableTest, DefaultSearchProviderBackup); | 110 FRIEND_TEST_ALL_PREFIXES(KeywordTableTest, DefaultSearchProviderBackup); |
| 110 | 111 |
| 111 // Sets backup for id of the default search provider. | 112 // Sets backup for id of the default search provider. |
| 112 // Backup value is used to notice when unexpected change of the id | 113 // Backup value is used to notice when unexpected change of the id |
| 113 // occurred (i.e. by third-party process trying to modify user settings). | 114 // occurred (i.e. by third-party process trying to modify user settings). |
| 114 bool SetDefaultSearchProviderBackupID(int64 id); | 115 bool SetDefaultSearchProviderBackupID(int64 id); |
| 115 | 116 |
| 116 // Sets signature for the backup field. | 117 // Sets signature for the backup field. |
| 117 bool SetDefaultSearchProviderBackupIDSignature(int64 id); | 118 bool SetDefaultSearchProviderBackupIDSignature(int64 id); |
| 118 | 119 |
| 119 DISALLOW_COPY_AND_ASSIGN(KeywordTable); | 120 DISALLOW_COPY_AND_ASSIGN(KeywordTable); |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 #endif // CHROME_BROWSER_WEBDATA_KEYWORD_TABLE_H_ | 123 #endif // CHROME_BROWSER_WEBDATA_KEYWORD_TABLE_H_ |
| OLD | NEW |