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

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: Nits from dhollowa 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
« no previous file with comments | « chrome/browser/webdata/autofill_util.cc ('k') | chrome/browser/webdata/keyword_table.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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_
OLDNEW
« no previous file with comments | « chrome/browser/webdata/autofill_util.cc ('k') | chrome/browser/webdata/keyword_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698