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

Unified Diff: content/browser/net/sqlite_persistent_cookie_store.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/browser/net/sqlite_persistent_cookie_store.h
diff --git a/content/browser/net/sqlite_persistent_cookie_store.h b/content/browser/net/sqlite_persistent_cookie_store.h
index 65e39824eac39e1b4b041e98f1de66b10b7d1bda..42cb934be9e44942b6c97633f7ed34f804f64193 100644
--- a/content/browser/net/sqlite_persistent_cookie_store.h
+++ b/content/browser/net/sqlite_persistent_cookie_store.h
@@ -32,6 +32,7 @@ class SpecialStoragePolicy;
}
namespace content {
+class CookieCryptoDelegate;
// Implements the PersistentCookieStore interface in terms of a SQLite database.
// For documentation about the actual member functions consult the documentation
@@ -43,13 +44,14 @@ class CONTENT_EXPORT SQLitePersistentCookieStore
public:
// All blocking database accesses will be performed on
// |background_task_runner|, while |client_task_runner| is used to invoke
- // callbacks.
+ // callbacks. This object takes ownership of the |crypto_delegate|.
SQLitePersistentCookieStore(
const base::FilePath& path,
const scoped_refptr<base::SequencedTaskRunner>& client_task_runner,
const scoped_refptr<base::SequencedTaskRunner>& background_task_runner,
bool restore_old_session_cookies,
- quota::SpecialStoragePolicy* special_storage_policy);
+ quota::SpecialStoragePolicy* special_storage_policy,
+ CookieCryptoDelegate* crypto_delegate);
erikwright (departed) 2013/10/07 20:39:25 make this a scoped_ptr. That is the modern way to
bcwhite 2013/10/08 16:10:25 Could you provide an example? A search for "takes
erikwright (departed) 2013/10/08 16:50:56 Precisely. With the new model, comments are no lon
bcwhite 2013/10/08 18:23:36 I've tried this and it doesn't work well. You can
erikwright (departed) 2013/10/08 18:41:52 Yes you can, and we do in much code: scoped_ptr<X
bcwhite 2013/10/08 20:18:09 That means creating a scoped_ptr<Y> in the caller
erikwright (departed) 2013/10/08 20:24:35 No. It will look like this: new SQLitePersistentC
bcwhite 2013/10/08 21:08:39 Done.
// net::CookieMonster::PersistentCookieStore:
virtual void Load(const LoadedCallback& loaded_callback) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698