summaryrefslogtreecommitdiffstats
path: root/net/socket/tcp_client_socket_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/socket/tcp_client_socket_win.cc')
-rw-r--r--net/socket/tcp_client_socket_win.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/socket/tcp_client_socket_win.cc b/net/socket/tcp_client_socket_win.cc
index 199dccd..08d1b19 100644
--- a/net/socket/tcp_client_socket_win.cc
+++ b/net/socket/tcp_client_socket_win.cc
@@ -126,7 +126,6 @@ bool ShouldTryNextAddress(int err) {
class TCPClientSocketWin::Core : public base::RefCounted<Core> {
public:
explicit Core(TCPClientSocketWin* socket);
- ~Core();
// Start watching for the end of a read or write operation.
void WatchForRead();
@@ -161,6 +160,8 @@ class TCPClientSocketWin::Core : public base::RefCounted<Core> {
}
private:
+ friend class base::RefCounted<Core>;
+
class ReadDelegate : public base::ObjectWatcher::Delegate {
public:
explicit ReadDelegate(Core* core) : core_(core) {}
@@ -185,6 +186,8 @@ class TCPClientSocketWin::Core : public base::RefCounted<Core> {
Core* const core_;
};
+ ~Core();
+
// The socket that created this object.
TCPClientSocketWin* socket_;