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

Unified Diff: net/quic/quic_session.h

Issue 11364068: Add a QuicHttpStream class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make GetPeerAddress const Created 8 years, 1 month 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/quic/quic_session.h
diff --git a/net/quic/quic_session.h b/net/quic/quic_session.h
index a55e096fd102c74818848571a4cb8daea1fbac7c..9b6b031a4dece9c655b9ea357256c571779bf54e 100644
--- a/net/quic/quic_session.h
+++ b/net/quic/quic_session.h
@@ -51,7 +51,12 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
virtual void CloseStream(QuicStreamId stream_id);
// Returns true once the crypto handshake is complete.
- virtual bool IsHandshakeComplete();
+ virtual bool IsCryptoHandshakeComplete();
+
+ // Called by the QuicCryptoStream when the handshake completes.
+ // If |error| is QUIC_NO_ERROR then the handshake was succesful,
+ // otherwise it failed.
+ virtual void OnCryptoHandshakeComplete(QuicErrorCode error);
// Returns true if the stream existed previously and has been closed.
// Returns false if the stream is still active or if the stream has
@@ -59,6 +64,7 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
bool IsClosedStream(QuicStreamId id);
QuicConnection* connection() { return connection_.get(); }
+ const QuicConnection* connection() const { return connection_.get(); }
size_t num_active_requests() const { return stream_map_.size(); }
const IPEndPoint& peer_address() const {
return connection_->peer_address();

Powered by Google App Engine
This is Rietveld 408576698