diff options
author | rohitrao <rohitrao@chromium.org> | 2015-03-17 20:07:47 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-18 03:08:20 +0000 |
commit | 924b0c833c711b0ed04a0b55d6fa5ce093e44b6b (patch) | |
tree | db7380fc25417c942c9c6db0a627309150dfda5b /net/extras | |
parent | 00e8cbeb43eb3cc99ffed3bc29a8a539dfece0a6 (diff) | |
download | chromium_src-924b0c833c711b0ed04a0b55d6fa5ce093e44b6b.zip chromium_src-924b0c833c711b0ed04a0b55d6fa5ce093e44b6b.tar.gz chromium_src-924b0c833c711b0ed04a0b55d6fa5ce093e44b6b.tar.bz2 |
Moves CookieCryptoDelegate to net/extras/sqlite.
This is in preparation for moving SqlitePersistentCookieStore into the same
directory.
TBR=jam@chromium.org
BUG=467596
TEST=No visible impact.
Review URL: https://codereview.chromium.org/1011753005
Cr-Commit-Position: refs/heads/master@{#321067}
Diffstat (limited to 'net/extras')
-rw-r--r-- | net/extras/sqlite/cookie_crypto_delegate.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net/extras/sqlite/cookie_crypto_delegate.h b/net/extras/sqlite/cookie_crypto_delegate.h new file mode 100644 index 0000000..d1635cd --- /dev/null +++ b/net/extras/sqlite/cookie_crypto_delegate.h @@ -0,0 +1,22 @@ +// Copyright 2013 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 NET_EXTRAS_SQLITE_COOKIE_CRYPTO_DELEGATE_H_ +#define NET_EXTRAS_SQLITE_COOKIE_CRYPTO_DELEGATE_H_ + +namespace net { + +// Implements encryption and decryption for the persistent cookie store. +class CookieCryptoDelegate { + public: + virtual ~CookieCryptoDelegate() {} + virtual bool EncryptString(const std::string& plaintext, + std::string* ciphertext) = 0; + virtual bool DecryptString(const std::string& ciphertext, + std::string* plaintext) = 0; +}; + +} // namespace net + +#endif // NET_EXTRAS_SQLITE_COOKIE_CRYPTO_DELEGATE_H_ |