Chromium Code Reviews| Index: content/public/browser/cookie_store_factory.h |
| diff --git a/content/public/browser/cookie_store_factory.h b/content/public/browser/cookie_store_factory.h |
| index 22de97d5911752c6a68f43077d40cfd1d94df95e..5e64c5b1e44e50fb9599b0f01583f86249ac5965 100644 |
| --- a/content/public/browser/cookie_store_factory.h |
| +++ b/content/public/browser/cookie_store_factory.h |
| @@ -18,6 +18,17 @@ class SpecialStoragePolicy; |
| namespace content { |
| +// This class provides an interface that the persistent cookies store can use |
|
erikwright (departed)
2013/10/07 20:39:25
Move to content/public/browser/cookie_crypto_deleg
bcwhite
2013/10/08 16:10:25
Done.
|
| +// in order to protect the cookie values. |
| +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; |
| +}; |
| + |
| // All blocking database accesses will be performed on |background_task_runner|. |
| // If background_task_runner is NULL, then a background task runner will be |
| // created internally. |
| @@ -26,7 +37,8 @@ CONTENT_EXPORT net::CookieStore* CreatePersistentCookieStore( |
| bool restore_old_session_cookies, |
| quota::SpecialStoragePolicy* storage_policy, |
| net::CookieMonster::Delegate* cookie_monster_delegate, |
| - const scoped_refptr<base::SequencedTaskRunner>& background_task_runner); |
| + const scoped_refptr<base::SequencedTaskRunner>& background_task_runner, |
| + CookieCryptoDelegate* crypto_delegate); |
|
erikwright (departed)
2013/10/07 20:39:25
scoped_ptr
|
| } // namespace content |