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

Unified Diff: net/base/stream_listen_socket.h

Issue 10417002: RefCounted types should not have public destructors, net/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months 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/stream_listen_socket.h
diff --git a/net/base/stream_listen_socket.h b/net/base/stream_listen_socket.h
index 2bef5196114ffaa4e4876cf01368a84314497d04..61fd6c887f1e2ffcf60e0886001910055e71ccb5 100644
--- a/net/base/stream_listen_socket.h
+++ b/net/base/stream_listen_socket.h
@@ -60,8 +60,6 @@ class NET_EXPORT StreamListenSocket
// should be split up similarly.
class Delegate {
public:
- virtual ~Delegate() {}
-
// |server| is the original listening Socket, connection is the new
// Socket that was created. Ownership of |connection| is transferred
// to the delegate with this call.
@@ -71,6 +69,9 @@ class NET_EXPORT StreamListenSocket
const char* data,
int len) = 0;
virtual void DidClose(StreamListenSocket* sock) = 0;
+
+ protected:
+ virtual ~Delegate() {}
};
// Send data to the socket.

Powered by Google App Engine
This is Rietveld 408576698