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

Unified Diff: net/base/cookie_store.h

Issue 368001: Second patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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: net/base/cookie_store.h
===================================================================
--- net/base/cookie_store.h (revision 31079)
+++ net/base/cookie_store.h (working copy)
@@ -24,8 +24,6 @@
// 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() {}
-
// 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,
@@ -60,6 +58,10 @@
virtual CookieMonster* GetCookieMonster() {
return NULL;
};
+
+ protected:
+ friend class base::RefCountedThreadSafe<CookieStore>;
+ virtual ~CookieStore() {}
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698