Chromium Code Reviews| Index: components/autofill/core/browser/webdata/system_encryptor.h |
| diff --git a/components/autofill/core/browser/webdata/system_encryptor.h b/components/autofill/core/browser/webdata/system_encryptor.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0ebb4e48640e02813e25eeaf564fb4ed105dc241 |
| --- /dev/null |
| +++ b/components/autofill/core/browser/webdata/system_encryptor.h |
| @@ -0,0 +1,23 @@ |
| +// Copyright (c) 2017 The Chromium Authors. All rights reserved. |
|
please use gerrit instead
2017/02/22 19:05:42
no "(c)" necessary
devarajn
2017/02/22 19:24:26
Done.
|
| +// 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_SYSTEM_ENCRYPTOR_H_ |
| +#define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_SYSTEM_ENCRYPTOR_H_ |
| + |
| +#include "components/autofill/core/browser/webdata/autofill_table_encryptor.h" |
| + |
| +namespace autofill { |
| +// Default encryptor used in Autofill table. |
| +class SystemEncryptor : public AutofillTableEncryptor { |
| + public: |
|
please use gerrit instead
2017/02/22 19:05:42
Override the parent's destructor to ensure proper
devarajn
2017/02/22 19:24:26
Done.
|
| + bool EncryptString16(const base::string16& plaintext, |
| + std::string* ciphertext) const override; |
| + |
| + bool DecryptString16(const std::string& ciphertext, |
| + base::string16* plaintext) const override; |
| +}; |
|
please use gerrit instead
2017/02/22 19:05:42
private:
DISALLOW_COPY_AND_ASSIGN(SystemEncryptor)
devarajn
2017/02/22 19:24:26
Done.
|
| + |
| +} // namespace autofill |
| + |
| +#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_SYSTEM_ENCRYPTOR_H_ |