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

Unified Diff: net/base/listen_socket.h

Issue 10066045: RefCounted types should not have public destructors, net/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Deprecated cookiestore fix Created 8 years, 8 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/host_resolver_impl_unittest.cc ('k') | net/base/net_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/listen_socket.h
diff --git a/net/base/listen_socket.h b/net/base/listen_socket.h
index f10246247d02dceb8b2b46626e4ced6747f2b630..29ac620e5de98099e8987af90a4b0be073bdfe69 100644
--- a/net/base/listen_socket.h
+++ b/net/base/listen_socket.h
@@ -27,8 +27,6 @@ class NET_EXPORT ListenSocket
// should be split up similarly.
class ListenSocketDelegate {
public:
- virtual ~ListenSocketDelegate() {}
-
// 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.
@@ -38,6 +36,9 @@ class NET_EXPORT ListenSocket
const char* data,
int len) = 0;
virtual void DidClose(ListenSocket *sock) = 0;
+
+ protected:
+ virtual ~ListenSocketDelegate() {}
};
// Send data to the socket.
« no previous file with comments | « net/base/host_resolver_impl_unittest.cc ('k') | net/base/net_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698