| 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/common/url_database/template_url_id.h" |
| 14 #include "chrome/browser/webdata/web_database_table.h" | 15 #include "chrome/browser/webdata/web_database_table.h" |
| 15 #include "chrome/browser/search_engines/template_url_id.h" | |
| 16 | 16 |
| 17 struct TemplateURLData; | 17 struct TemplateURLData; |
| 18 | 18 |
| 19 namespace sql { | 19 namespace sql { |
| 20 class Statement; | 20 class Statement; |
| 21 } // namespace sql | 21 } // namespace sql |
| 22 | 22 |
| 23 // This class manages the |keywords| MetaTable within the SQLite database | 23 // This class manages the |keywords| MetaTable within the SQLite database |
| 24 // passed to the constructor. It expects the following schema: | 24 // passed to the constructor. It expects the following schema: |
| 25 // | 25 // |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 // "keywords_backup" from version 44 to version 45. | 197 // "keywords_backup" from version 44 to version 45. |
| 198 bool MigrateKeywordsTableForVersion45(const std::string& name); | 198 bool MigrateKeywordsTableForVersion45(const std::string& name); |
| 199 | 199 |
| 200 // Whether the backup was overwritten during migration. | 200 // Whether the backup was overwritten during migration. |
| 201 bool backup_overwritten_; | 201 bool backup_overwritten_; |
| 202 | 202 |
| 203 DISALLOW_COPY_AND_ASSIGN(KeywordTable); | 203 DISALLOW_COPY_AND_ASSIGN(KeywordTable); |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 #endif // CHROME_BROWSER_WEBDATA_KEYWORD_TABLE_H_ | 206 #endif // CHROME_BROWSER_WEBDATA_KEYWORD_TABLE_H_ |
| OLD | NEW |