diff options
author | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 14:10:18 +0000 |
---|---|---|
committer | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 14:10:18 +0000 |
commit | 8db9dbb2dfa5b5850077777dc08f94a4c0b502a1 (patch) | |
tree | b4a6b0fe6647e716a33e49f3ec300375432261f1 /net | |
parent | 8b71c9d972a981405e281fe1469551722949a593 (diff) | |
download | chromium_src-8db9dbb2dfa5b5850077777dc08f94a4c0b502a1.zip chromium_src-8db9dbb2dfa5b5850077777dc08f94a4c0b502a1.tar.gz chromium_src-8db9dbb2dfa5b5850077777dc08f94a4c0b502a1.tar.bz2 |
Make CookieStore dtor virtual
CookieMonster is deleted using the CookieStore ptr. Make
the dtor virtual so that the correct dtor is called.
TBR=darin
Review URL: http://codereview.chromium.org/160271
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21838 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/base/cookie_store.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/base/cookie_store.h b/net/base/cookie_store.h index 3fa33b9..3572d51 100644 --- a/net/base/cookie_store.h +++ b/net/base/cookie_store.h @@ -23,6 +23,8 @@ class CookieMonster; // be therad safe as its methods can be accessed from IO as well as UI threads. class CookieStore { public: + virtual ~CookieStore() {} + // Set a single cookie. Expects a cookie line, like "a=1; domain=b.com". virtual bool SetCookie(const GURL& url, const std::string& cookie_line) = 0; virtual bool SetCookieWithOptions(const GURL& url, |