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

Unified Diff: content/public/browser/cookie_store_factory.h

Issue 24734007: Encrypt all stored cookies on selected operating systems. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed perftest Created 7 years, 3 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: 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

Powered by Google App Engine
This is Rietveld 408576698