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

Unified Diff: net/flip/flip_session.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.h
===================================================================
--- net/flip/flip_session.h (revision 31079)
+++ net/flip/flip_session.h (working copy)
@@ -90,8 +90,6 @@
class FlipSession : public base::RefCounted<FlipSession>,
public flip::FlipFramerVisitorInterface {
public:
- virtual ~FlipSession();
-
// Get the domain for this FlipSession.
const std::string& domain() const { return domain_; }
@@ -138,6 +136,9 @@
static void SetSSLMode(bool enable) { use_ssl_ = enable; }
private:
+ friend class base::RefCounted<FlipSession>;
+ virtual ~FlipSession();
+
// FlipFramerVisitorInterface
virtual void OnError(flip::FlipFramer*);
virtual void OnStreamFrameData(flip::FlipStreamId stream_id,

Powered by Google App Engine
This is Rietveld 408576698