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

Side by Side Diff: net/quic/quic_session.h

Issue 243533003: Sent QUIC "PING" frames when a stream is open and the connection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // A QuicSession, which demuxes a single connection to individual streams. 5 // A QuicSession, which demuxes a single connection to individual streams.
6 6
7 #ifndef NET_QUIC_QUIC_SESSION_H_ 7 #ifndef NET_QUIC_QUIC_SESSION_H_
8 #define NET_QUIC_QUIC_SESSION_H_ 8 #define NET_QUIC_QUIC_SESSION_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const std::vector<QuicWindowUpdateFrame>& frames) OVERRIDE; 66 const std::vector<QuicWindowUpdateFrame>& frames) OVERRIDE;
67 virtual void OnBlockedFrames( 67 virtual void OnBlockedFrames(
68 const std::vector<QuicBlockedFrame>& frames) OVERRIDE; 68 const std::vector<QuicBlockedFrame>& frames) OVERRIDE;
69 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE; 69 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE;
70 virtual void OnWriteBlocked() OVERRIDE {} 70 virtual void OnWriteBlocked() OVERRIDE {}
71 virtual void OnSuccessfulVersionNegotiation( 71 virtual void OnSuccessfulVersionNegotiation(
72 const QuicVersion& version) OVERRIDE {} 72 const QuicVersion& version) OVERRIDE {}
73 virtual void OnCanWrite() OVERRIDE; 73 virtual void OnCanWrite() OVERRIDE;
74 virtual bool HasPendingWrites() const OVERRIDE; 74 virtual bool HasPendingWrites() const OVERRIDE;
75 virtual bool HasPendingHandshake() const OVERRIDE; 75 virtual bool HasPendingHandshake() const OVERRIDE;
76 virtual bool HasOpenStreams() const OVERRIDE;
76 77
77 // Called by the headers stream when headers have been received for a stream. 78 // Called by the headers stream when headers have been received for a stream.
78 virtual void OnStreamHeaders(QuicStreamId stream_id, 79 virtual void OnStreamHeaders(QuicStreamId stream_id,
79 base::StringPiece headers_data); 80 base::StringPiece headers_data);
80 // Called by the headers stream when headers with a priority have been 81 // Called by the headers stream when headers with a priority have been
81 // received for this stream. This method will only be called for server 82 // received for this stream. This method will only be called for server
82 // streams. 83 // streams.
83 virtual void OnStreamHeadersPriority(QuicStreamId stream_id, 84 virtual void OnStreamHeadersPriority(QuicStreamId stream_id,
84 QuicPriority priority); 85 QuicPriority priority);
85 // Called by the headers stream when headers have been completely received 86 // Called by the headers stream when headers have been completely received
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 293
293 // Indicate if there is pending data for the crypto stream. 294 // Indicate if there is pending data for the crypto stream.
294 bool has_pending_handshake_; 295 bool has_pending_handshake_;
295 296
296 DISALLOW_COPY_AND_ASSIGN(QuicSession); 297 DISALLOW_COPY_AND_ASSIGN(QuicSession);
297 }; 298 };
298 299
299 } // namespace net 300 } // namespace net
300 301
301 #endif // NET_QUIC_QUIC_SESSION_H_ 302 #endif // NET_QUIC_QUIC_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698