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

Unified Diff: components/autofill/core/browser/webdata/autofill_table_encryptor.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_encryptor.h
diff --git a/components/autofill/core/browser/webdata/autofill_table_encryptor.h b/components/autofill/core/browser/webdata/autofill_table_encryptor.h
new file mode 100644
index 0000000000000000000000000000000000000000..c51bc67aa216bcf3c796197340a2c074210c48cb
--- /dev/null
+++ b/components/autofill/core/browser/webdata/autofill_table_encryptor.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_ENCRYPTOR_H_
+#define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_ENCRYPTOR_H_
+
+#include <string>
+
+#include "base/strings/string16.h"
+
+namespace autofill {
+// Encryptor used by Autofill table.
+class AutofillTableEncryptor {
Roger McFarlane (Chromium) 2017/02/17 21:04:08 this requires a virtual destructor be declared and
devarajn 2017/02/17 22:28:54 Done.
+ public:
+ virtual bool EncryptString16(const base::string16& plaintext,
+ std::string* ciphertext) const = 0;
+ virtual bool DecryptString16(const std::string& ciphertext,
+ base::string16* plaintext) const = 0;
+};
+
+} // namespace autofill
+
+#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_ENCRYPTOR_H_

Powered by Google App Engine
This is Rietveld 408576698