Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_COOKIE_CRYPTO_DELEGATE_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_COOKIE_CRYPTO_DELEGATE_H_ | |
| 7 | |
| 8 namespace content { | |
| 9 | |
| 10 // This class provides an interface that the persistent cookies store can use | |
|
erikwright (departed)
2013/10/22 23:58:14
// Implements encryption and decryption for the pe
bcwhite
2013/10/23 19:36:23
Done.
| |
| 11 // in order to protect the cookie values. | |
| 12 class CookieCryptoDelegate { | |
| 13 public: | |
| 14 virtual ~CookieCryptoDelegate() {} | |
| 15 virtual bool EncryptString(const std::string& plaintext, | |
| 16 std::string* ciphertext) = 0; | |
| 17 virtual bool DecryptString(const std::string& ciphertext, | |
| 18 std::string* plaintext) = 0; | |
| 19 }; | |
| 20 | |
| 21 } // namespace content | |
| 22 | |
| 23 #endif // CONTENT_PUBLIC_BROWSER_COOKIE_CRYPTO_DELEGATE_H_ | |
| OLD | NEW |