Chromium Code Reviews| Index: net/socket/client_socket.h |
| =================================================================== |
| --- net/socket/client_socket.h (revision 80449) |
| +++ net/socket/client_socket.h (working copy) |
| @@ -6,6 +6,8 @@ |
| #define NET_SOCKET_CLIENT_SOCKET_H_ |
| #pragma once |
| +#include <netinet/in.h> |
| + |
| #include "net/base/net_log.h" |
| #include "net/socket/socket.h" |
| @@ -73,6 +75,18 @@ |
| // TCP FastOpen is an experiment with sending data in the TCP SYN packet. |
| virtual bool UsingTCPFastOpen() const = 0; |
| + // Returns the underlying transport socket's protocol. |
| + virtual int protocol() { return IPPROTO_TCP; } |
|
Mike Belshe
2011/04/06 18:32:53
The protocol is good, lets put that into another C
|
| + |
| + // Returns true if the underlying socket's transport protocol is SCTP and SPDY |
| + // control frames are sent on SCTP stream 0. |
| + virtual bool using_sctp_control_stream() { return false; } |
| + |
|
Mike Belshe
2011/04/06 18:32:53
will revisit.... don't want to expose these in Cl
|
| + // Maps a SPDY stream number to an SCTP stream ID. |
| + virtual uint16 MapSpdyToSctp(uint32 stream_id) { |
| + return 0; |
| + } |
| + |
| 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 |