diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-05 00:17:14 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-05 00:17:14 +0000 |
commit | 2bebd9963b25ad9e868a719fe56e348c6c153ba7 (patch) | |
tree | 49f998348a20ad7a70e36d83012adc851eb4b2c0 /net/base/cookie_store.h | |
parent | 5e17ec91e76c813d8fd0aa189a20d51e47ce93ca (diff) | |
download | chromium_src-2bebd9963b25ad9e868a719fe56e348c6c153ba7.zip chromium_src-2bebd9963b25ad9e868a719fe56e348c6c153ba7.tar.gz chromium_src-2bebd9963b25ad9e868a719fe56e348c6c153ba7.tar.bz2 |
This CL changes the CookieStore obect to be a refcounted object to get a better handle on its lifetime as there are cases where this object is handed out to URLRequestContext instances which outlive the URLRequestContext object which created it.
Partial fix for http://code.google.com/p/chromium/issues/detail?id=15289
Bug=15289
Review URL: http://codereview.chromium.org/197023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25558 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cookie_store.h')
-rw-r--r-- | net/base/cookie_store.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/base/cookie_store.h b/net/base/cookie_store.h index 3572d51..b1dd5ab 100644 --- a/net/base/cookie_store.h +++ b/net/base/cookie_store.h @@ -10,6 +10,7 @@ #include <string> #include "base/basictypes.h" +#include "base/ref_counted.h" #include "base/time.h" #include "net/base/cookie_options.h" @@ -20,8 +21,8 @@ namespace net { class CookieMonster; // An interface for storing and retrieving cookies. Implementations need to -// be therad safe as its methods can be accessed from IO as well as UI threads. -class CookieStore { +// be thread safe as its methods can be accessed from IO as well as UI threads. +class CookieStore : public base::RefCountedThreadSafe<CookieStore> { public: virtual ~CookieStore() {} |