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

Unified Diff: components/autofill/core/browser/webdata/autofill_table.h

Issue 2698103002: Allow embedder to use custom cryptography in Autofill table. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/browser/webdata/autofill_table.h
diff --git a/components/autofill/core/browser/webdata/autofill_table.h b/components/autofill/core/browser/webdata/autofill_table.h
index dc08b9b5ea82832be36792708e28d5e772ca7227..7516acdb99e1545608f378c453ed368fcb3d9fbf 100644
--- a/components/autofill/core/browser/webdata/autofill_table.h
+++ b/components/autofill/core/browser/webdata/autofill_table.h
@@ -14,6 +14,7 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/strings/string16.h"
+#include "components/autofill/core/browser/webdata/autofill_table_encryptor.h"
#include "components/sync/base/model_type.h"
#include "components/sync/model/metadata_batch.h"
#include "components/webdata/common/web_database_table.h"
@@ -251,6 +252,8 @@ struct FormFieldData;
class AutofillTable : public WebDatabaseTable {
public:
AutofillTable();
+ AutofillTable(
+ std::unique_ptr<AutofillTableEncryptor> autofill_table_encryptor);
~AutofillTable() override;
// Retrieves the AutofillTable* owned by |db|.
@@ -467,6 +470,8 @@ class AutofillTable : public WebDatabaseTable {
static const size_t kMaxDataLength;
private:
+ std::unique_ptr<AutofillTableEncryptor> autofill_table_encryptor_;
+
FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill);
FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges);
FRIEND_TEST_ALL_PREFIXES(

Powered by Google App Engine
This is Rietveld 408576698