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

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

Issue 12518017: Generalize migration code in WebDatabase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge of LKGR Created 7 years, 9 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 | « no previous file | chrome/browser/webdata/autofill_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) 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_AUTOFILL_TABLE_H_ 5 #ifndef CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_
6 #define CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ 6 #define CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // card_number_encrypted Stores encrypted credit card number. 111 // card_number_encrypted Stores encrypted credit card number.
112 // date_modified The date on which this entry was last modified. 112 // date_modified The date on which this entry was last modified.
113 // Added in version 30. 113 // Added in version 30.
114 // 114 //
115 class AutofillTable : public WebDatabaseTable { 115 class AutofillTable : public WebDatabaseTable {
116 public: 116 public:
117 AutofillTable(sql::Connection* db, sql::MetaTable* meta_table); 117 AutofillTable(sql::Connection* db, sql::MetaTable* meta_table);
118 virtual ~AutofillTable(); 118 virtual ~AutofillTable();
119 virtual bool Init() OVERRIDE; 119 virtual bool Init() OVERRIDE;
120 virtual bool IsSyncable() OVERRIDE; 120 virtual bool IsSyncable() OVERRIDE;
121 virtual bool MigrateToVersion(int version,
122 const std::string& app_locale,
123 bool* update_compatible_version) OVERRIDE;
121 124
122 // Records the form elements in |elements| in the database in the 125 // Records the form elements in |elements| in the database in the
123 // autofill table. A list of all added and updated autofill entries 126 // autofill table. A list of all added and updated autofill entries
124 // is returned in the changes out parameter. 127 // is returned in the changes out parameter.
125 bool AddFormFieldValues(const std::vector<FormFieldData>& elements, 128 bool AddFormFieldValues(const std::vector<FormFieldData>& elements,
126 std::vector<AutofillChange>* changes); 129 std::vector<AutofillChange>* changes);
127 130
128 // Records a single form element in the database in the autofill table. A list 131 // Records a single form element in the database in the autofill table. A list
129 // of all added and updated autofill entries is returned in the changes out 132 // of all added and updated autofill entries is returned in the changes out
130 // parameter. 133 // parameter.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 bool InitProfilesTable(); 347 bool InitProfilesTable();
345 bool InitProfileNamesTable(); 348 bool InitProfileNamesTable();
346 bool InitProfileEmailsTable(); 349 bool InitProfileEmailsTable();
347 bool InitProfilePhonesTable(); 350 bool InitProfilePhonesTable();
348 bool InitProfileTrashTable(); 351 bool InitProfileTrashTable();
349 352
350 DISALLOW_COPY_AND_ASSIGN(AutofillTable); 353 DISALLOW_COPY_AND_ASSIGN(AutofillTable);
351 }; 354 };
352 355
353 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ 356 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/webdata/autofill_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698