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 |
11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "chrome/browser/webdata/web_database_table.h" | 13 #include "chrome/browser/webdata/web_database_table.h" |
14 #include "chrome/browser/search_engines/template_url_id.h" | 14 #include "chrome/browser/search_engines/template_url_id.h" |
15 | 15 |
16 class GURL; | |
17 class TemplateURL; | 16 class TemplateURL; |
18 | 17 |
19 namespace base { | |
20 class Time; | |
21 } | |
22 | |
23 // This class manages the |keywords| MetaTable within the SQLite database | 18 // This class manages the |keywords| MetaTable within the SQLite database |
24 // passed to the constructor. It expects the following schema: | 19 // passed to the constructor. It expects the following schema: |
25 // | 20 // |
26 // Note: The database stores time in seconds, UTC. | 21 // Note: The database stores time in seconds, UTC. |
27 // | 22 // |
28 // keywords Most of the columns mirror that of a field in | 23 // keywords Most of the columns mirror that of a field in |
29 // TemplateURL. See TemplateURL for more details. | 24 // TemplateURL. See TemplateURL for more details. |
30 // id | 25 // id |
31 // short_name | 26 // short_name |
32 // keyword | 27 // keyword |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // occurred (i.e. by third-party process trying to modify user settings). | 109 // occurred (i.e. by third-party process trying to modify user settings). |
115 bool SetDefaultSearchProviderBackupID(int64 id); | 110 bool SetDefaultSearchProviderBackupID(int64 id); |
116 | 111 |
117 // Sets signature for the backup field. | 112 // Sets signature for the backup field. |
118 bool SetDefaultSearchProviderBackupIDSignature(int64 id); | 113 bool SetDefaultSearchProviderBackupIDSignature(int64 id); |
119 | 114 |
120 DISALLOW_COPY_AND_ASSIGN(KeywordTable); | 115 DISALLOW_COPY_AND_ASSIGN(KeywordTable); |
121 }; | 116 }; |
122 | 117 |
123 #endif // CHROME_BROWSER_WEBDATA_KEYWORD_TABLE_H_ | 118 #endif // CHROME_BROWSER_WEBDATA_KEYWORD_TABLE_H_ |
OLD | NEW |