summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_session.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/spdy/spdy_session.h')
-rw-r--r--net/spdy/spdy_session.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/net/spdy/spdy_session.h b/net/spdy/spdy_session.h
index 653f193..d7f60c0 100644
--- a/net/spdy/spdy_session.h
+++ b/net/spdy/spdy_session.h
@@ -91,7 +91,8 @@ class SpdySession : public base::RefCounted<SpdySession>,
spdy::SpdyFramer* GetFramer() { return &spdy_framer_; }
// Create a new SpdySession.
- // |host| is the hostname that this session connects to.
+ // |host_port_pair| is the host/port that this session connects to.
+ // |session| is the HttpNetworkSession
SpdySession(const HostPortPair& host_port_pair, HttpNetworkSession* session);
// Closes all open streams. Used as part of shutdown.
@@ -124,6 +125,7 @@ class SpdySession : public base::RefCounted<SpdySession>,
const spdy::SpdyHeaderBlock& headers);
void OnFin(const spdy::SpdyRstStreamControlFrame& frame);
void OnGoAway(const spdy::SpdyGoAwayControlFrame& frame);
+ void OnSettings(const spdy::SpdySettingsControlFrame& frame);
// IO Callbacks
void OnTCPConnect(int result);
@@ -131,6 +133,9 @@ class SpdySession : public base::RefCounted<SpdySession>,
void OnReadComplete(int result);
void OnWriteComplete(int result);
+ // Send relevant SETTINGS. This is generally called on connection setup.
+ void SendSettings();
+
// Start reading from the socket.
void ReadSocket();
@@ -141,6 +146,13 @@ class SpdySession : public base::RefCounted<SpdySession>,
// Get a new stream id.
int GetNewStreamId();
+ // Queue a frame for sending.
+ // |frame| is the frame to send.
+ // |priority| is the priority for insertion into the queue.
+ // |stream| is the stream which this IO is associated with (or NULL).
+ void QueueFrame(spdy::SpdyFrame* frame, spdy::SpdyPriority priority,
+ SpdyStream* stream);
+
// Closes this session. This will close all active streams and mark
// the session as permanently closed.
// |err| should not be OK; this function is intended to be called on