| Index: net/socket/stream_socket.h
|
| diff --git a/net/socket/stream_socket.h b/net/socket/stream_socket.h
|
| index cb979b63414114147f6f897f0f86900f8a817a5d..c7dbc8231b62d13f232eb16d001ed86e9e413c20 100644
|
| --- a/net/socket/stream_socket.h
|
| +++ b/net/socket/stream_socket.h
|
| @@ -134,6 +134,19 @@ class NET_EXPORT_PRIVATE StreamSocket : public Socket {
|
| // |stats|. Default implementation does nothing.
|
| virtual void DumpMemoryStats(SocketMemoryStats* stats) const {}
|
|
|
| + // Sets whether the socket should treat entering suspend mode as an error, and
|
| + // return ERR_NETWORK_SUSPENDED if it happens. Defaults to false.
|
| + //
|
| + // This is useful because entering suspend mode tends to kill all sockets
|
| + // connected to remote systems. See https://crbug.com/4606).
|
| + //
|
| + // This is a hint only, subclasses are free to ignore this flag (And currently
|
| + // do - it's only respected when set directly on a TcpClientSocket).
|
| + //
|
| + // TODO(mmenke): Should this be done on all TCP sockets? On all non-localhost
|
| + // TCP sockets?
|
| + virtual void SetFailOnSuspend(bool disconnect_on_suspend);
|
| +
|
| protected:
|
| // The following class is only used to gather statistics about the history of
|
| // a socket. It is only instantiated and used in basic sockets, such as
|
|
|