| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 bool UpdateKeyword(const TemplateURL& url); | 74 bool UpdateKeyword(const TemplateURL& url); |
| 75 | 75 |
| 76 // ID (TemplateURL->id) of the default search provider. | 76 // ID (TemplateURL->id) of the default search provider. |
| 77 bool SetDefaultSearchProviderID(int64 id); | 77 bool SetDefaultSearchProviderID(int64 id); |
| 78 int64 GetDefaulSearchProviderID(); | 78 int64 GetDefaulSearchProviderID(); |
| 79 | 79 |
| 80 // Version of the built-in keywords. | 80 // Version of the built-in keywords. |
| 81 bool SetBuitinKeywordVersion(int version); | 81 bool SetBuitinKeywordVersion(int version); |
| 82 int GetBuitinKeywordVersion(); | 82 int GetBuitinKeywordVersion(); |
| 83 | 83 |
| 84 // Table migration functions. |
| 85 bool MigrateToVersion21AutoGenerateKeywordColumn(); |
| 86 bool MigrateToVersion25AddLogoIDColumn(); |
| 87 bool MigrateToVersion26AddCreatedByPolicyColumn(); |
| 88 bool MigrateToVersion28SupportsInstantColumn(); |
| 89 bool MigrateToVersion29InstantUrlToSupportsInstant(); |
| 90 |
| 84 private: | 91 private: |
| 85 DISALLOW_COPY_AND_ASSIGN(KeywordTable); | 92 DISALLOW_COPY_AND_ASSIGN(KeywordTable); |
| 86 }; | 93 }; |
| 87 | 94 |
| 88 #endif // CHROME_BROWSER_WEBDATA_KEYWORD_TABLE_H_ | 95 #endif // CHROME_BROWSER_WEBDATA_KEYWORD_TABLE_H_ |
| OLD | NEW |