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

Unified Diff: net/socket/client_socket.h

Issue 6800009: Attn: Mike Belshe Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 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
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

Powered by Google App Engine
This is Rietveld 408576698