Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Side by Side Diff: components/search_engines/keyword_table.h

Issue 2498053002: Add field to monitor last visited time for each search engine (Closed)
Patch Set: Update Nit comment. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 int GetBuiltinKeywordVersion(); 124 int GetBuiltinKeywordVersion();
125 125
126 // Returns a comma-separated list of the keyword columns for the current 126 // Returns a comma-separated list of the keyword columns for the current
127 // version of the table. 127 // version of the table.
128 static std::string GetKeywordColumns(); 128 static std::string GetKeywordColumns();
129 129
130 // Table migration functions. 130 // Table migration functions.
131 bool MigrateToVersion53AddNewTabURLColumn(); 131 bool MigrateToVersion53AddNewTabURLColumn();
132 bool MigrateToVersion59RemoveExtensionKeywords(); 132 bool MigrateToVersion59RemoveExtensionKeywords();
133 bool MigrateToVersion68RemoveShowInDefaultListColumn(); 133 bool MigrateToVersion68RemoveShowInDefaultListColumn();
134 bool MigrateToVersion69AddLastVisitedColumn();
134 135
135 private: 136 private:
136 friend class KeywordTableTest; 137 friend class KeywordTableTest;
137 FRIEND_TEST_ALL_PREFIXES(WebDatabaseMigrationTest, MigrateVersion44ToCurrent); 138 FRIEND_TEST_ALL_PREFIXES(WebDatabaseMigrationTest, MigrateVersion44ToCurrent);
138 139
139 // NOTE: Since the table columns have changed in different versions, many 140 // NOTE: Since the table columns have changed in different versions, many
140 // functions below take a |table_version| argument which dictates which 141 // functions below take a |table_version| argument which dictates which
141 // version number's column set to use. 142 // version number's column set to use.
142 143
143 // Fills |data| with the data in |s|. Returns false if we couldn't fill 144 // Fills |data| with the data in |s|. Returns false if we couldn't fill
(...skipping 22 matching lines...) Expand all
166 std::string* result); 167 std::string* result);
167 168
168 // Migrates table |name| (which should be either "keywords" or 169 // Migrates table |name| (which should be either "keywords" or
169 // "keywords_backup") from version 44 to version 45. 170 // "keywords_backup") from version 44 to version 45.
170 bool MigrateKeywordsTableForVersion45(const std::string& name); 171 bool MigrateKeywordsTableForVersion45(const std::string& name);
171 172
172 DISALLOW_COPY_AND_ASSIGN(KeywordTable); 173 DISALLOW_COPY_AND_ASSIGN(KeywordTable);
173 }; 174 };
174 175
175 #endif // COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_ 176 #endif // COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_
OLDNEW
« no previous file with comments | « components/search_engines/default_search_manager_unittest.cc ('k') | components/search_engines/keyword_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698