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

Side by Side Diff: components/autofill/core/browser/webdata/autofill_table.h

Issue 2698103002: Allow embedder to use custom cryptography in Autofill table. (Closed)
Patch Set: Allow embedder to use custom cryptography in Autofill table. Created 3 years, 10 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 11 matching lines...) Expand all
22 22
23 namespace base { 23 namespace base {
24 class Time; 24 class Time;
25 } 25 }
26 26
27 namespace autofill { 27 namespace autofill {
28 28
29 class AutofillChange; 29 class AutofillChange;
30 class AutofillEntry; 30 class AutofillEntry;
31 class AutofillProfile; 31 class AutofillProfile;
32 class AutofillTableEncryptor;
32 class AutofillTableTest; 33 class AutofillTableTest;
33 class CreditCard; 34 class CreditCard;
34 35
35 struct FormFieldData; 36 struct FormFieldData;
36 37
37 // This class manages the various Autofill tables within the SQLite database 38 // This class manages the various Autofill tables within the SQLite database
38 // passed to the constructor. It expects the following schemas: 39 // passed to the constructor. It expects the following schemas:
39 // 40 //
40 // Note: The database stores time in seconds, UTC. 41 // Note: The database stores time in seconds, UTC.
41 // 42 //
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // 245 //
245 // autofill_model_type_state 246 // autofill_model_type_state
246 // Single row table that contains the sync ModelTypeState 247 // Single row table that contains the sync ModelTypeState
247 // for the autofill model type. 248 // for the autofill model type.
248 // 249 //
249 // value The serialized ModelTypeState record. 250 // value The serialized ModelTypeState record.
250 251
251 class AutofillTable : public WebDatabaseTable { 252 class AutofillTable : public WebDatabaseTable {
252 public: 253 public:
253 AutofillTable(); 254 AutofillTable();
255 explicit AutofillTable(
256 std::unique_ptr<AutofillTableEncryptor> autofill_table_encryptor);
Roger McFarlane (Chromium) 2017/02/22 23:46:26 delete?
devarajn 2017/02/22 23:53:56 Damn me! Rushed to get "lgtm" from you :)
254 ~AutofillTable() override; 257 ~AutofillTable() override;
255 258
256 // Retrieves the AutofillTable* owned by |db|. 259 // Retrieves the AutofillTable* owned by |db|.
257 static AutofillTable* FromWebDatabase(WebDatabase* db); 260 static AutofillTable* FromWebDatabase(WebDatabase* db);
258 261
259 // WebDatabaseTable: 262 // WebDatabaseTable:
260 WebDatabaseTable::TypeKey GetTypeKey() const override; 263 WebDatabaseTable::TypeKey GetTypeKey() const override;
261 bool CreateTablesIfNecessary() override; 264 bool CreateTablesIfNecessary() override;
262 bool IsSyncable() override; 265 bool IsSyncable() override;
263 bool MigrateToVersion(int version, bool* update_compatible_version) override; 266 bool MigrateToVersion(int version, bool* update_compatible_version) override;
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 bool InitProfilePhonesTable(); 542 bool InitProfilePhonesTable();
540 bool InitProfileTrashTable(); 543 bool InitProfileTrashTable();
541 bool InitMaskedCreditCardsTable(); 544 bool InitMaskedCreditCardsTable();
542 bool InitUnmaskedCreditCardsTable(); 545 bool InitUnmaskedCreditCardsTable();
543 bool InitServerCardMetadataTable(); 546 bool InitServerCardMetadataTable();
544 bool InitServerAddressesTable(); 547 bool InitServerAddressesTable();
545 bool InitServerAddressMetadataTable(); 548 bool InitServerAddressMetadataTable();
546 bool InitAutofillSyncMetadataTable(); 549 bool InitAutofillSyncMetadataTable();
547 bool InitModelTypeStateTable(); 550 bool InitModelTypeStateTable();
548 551
552 std::unique_ptr<AutofillTableEncryptor> autofill_table_encryptor_;
553
549 DISALLOW_COPY_AND_ASSIGN(AutofillTable); 554 DISALLOW_COPY_AND_ASSIGN(AutofillTable);
550 }; 555 };
551 556
552 } // namespace autofill 557 } // namespace autofill
553 558
554 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ 559 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/BUILD.gn ('k') | components/autofill/core/browser/webdata/autofill_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698