diff options
Diffstat (limited to 'chromium/net/socket/tcp_server_socket.h')
-rw-r--r-- | chromium/net/socket/tcp_server_socket.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chromium/net/socket/tcp_server_socket.h b/chromium/net/socket/tcp_server_socket.h index b161be65723..ea2021c921e 100644 --- a/chromium/net/socket/tcp_server_socket.h +++ b/chromium/net/socket/tcp_server_socket.h @@ -5,8 +5,8 @@ #ifndef NET_SOCKET_TCP_SERVER_SOCKET_H_ #define NET_SOCKET_TCP_SERVER_SOCKET_H_ -#include "base/basictypes.h" #include "base/compiler_specific.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "net/base/ip_endpoint.h" #include "net/base/net_export.h" @@ -27,6 +27,11 @@ class NET_EXPORT_PRIVATE TCPServerSocket : public ServerSocket { int Accept(scoped_ptr<StreamSocket>* socket, const CompletionCallback& callback) override; + // Detachs from the current thread, to allow the socket to be transferred to + // a new thread. Should only be called when the object is no longer used by + // the old thread. + void DetachFromThread(); + private: // Converts |accepted_socket_| and stores the result in // |output_accepted_socket|. |