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

Side by Side Diff: chrome/browser/webdata/keyword_table.h

Issue 6677124: Move migration code out of WebDatabase and into table-specific classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 months 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 | Annotate | Revision Log
OLDNEW
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
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 AddAutoGenerateKeywordColumnForVersion21();
dhollowa 2011/04/04 16:13:20 Similar renaming: |MigrateToVersion21...|, etc.
Bons 2011/04/05 11:05:13 Done.
86 bool AddLogoIDColumnForVersionVersion25();
87 bool AddCreatedByPolicyColumnForVersion26();
88 bool AddSupportsInstantColumnForVersion28();
89 bool ChangeInstantUrlToSupportsInstantForVersion29();
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698