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

Unified Diff: net/base/cookie_monster.h

Issue 197023: This CL changes the CookieStore obect to be a refcounted object to get a bett... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/sync/glue/http_bridge.cc ('k') | net/base/cookie_monster_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/cookie_monster.h
===================================================================
--- net/base/cookie_monster.h (revision 25474)
+++ net/base/cookie_monster.h (working copy)
@@ -213,7 +213,7 @@
// lazily in InitStoreIfNecessary().
bool initialized_;
- PersistentCookieStore* store_;
+ scoped_refptr<PersistentCookieStore> store_;
// The resolution of our time isn't enough, so we do something
// ugly and increment when we've seen the same time twice.
@@ -367,7 +367,11 @@
bool httponly_;
};
-class CookieMonster::PersistentCookieStore {
+typedef base::RefCountedThreadSafe<CookieMonster::PersistentCookieStore>
eroman 2009/09/04 23:13:24 hehe.
+ RefcountedPersistentCookieStore;
+
+class CookieMonster::PersistentCookieStore
+ : public RefcountedPersistentCookieStore {
public:
virtual ~PersistentCookieStore() { }
« no previous file with comments | « chrome/browser/sync/glue/http_bridge.cc ('k') | net/base/cookie_monster_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698