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; |