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

Unified Diff: net/flip/flip_session_pool.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/flip/flip_session_pool.h
===================================================================
--- net/flip/flip_session_pool.h (revision 31079)
+++ net/flip/flip_session_pool.h (working copy)
@@ -24,7 +24,6 @@
class FlipSessionPool : public base::RefCounted<FlipSessionPool> {
public:
FlipSessionPool();
- virtual ~FlipSessionPool();
// Either returns an existing FlipSession or creates a new FlipSession for
// use.
@@ -49,8 +48,11 @@
void CloseAllSessions();
private:
+ friend class base::RefCounted<FlipSessionPool>;
friend class FlipSession; // Needed for Remove().
+ virtual ~FlipSessionPool();
+
typedef std::list<FlipSession*> FlipSessionList;
typedef std::map<std::string, FlipSessionList*> FlipSessionsMap;

Powered by Google App Engine
This is Rietveld 408576698