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

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: Rebased to r139261 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
« no previous file with comments | « net/base/network_change_notifier.h ('k') | net/curvecp/packetizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/stream_listen_socket.h
diff --git a/net/base/stream_listen_socket.h b/net/base/stream_listen_socket.h
index 146e1d1fff1be2f591691815fb159d1f0f6926ce..95c32600f4fbe74820bd2ac524b2e50d396b9cbc 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.
« no previous file with comments | « net/base/network_change_notifier.h ('k') | net/curvecp/packetizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698