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

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

Issue 1613513003: Early connection migration in QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Style nit fixed. Created 4 years, 10 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
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 <stddef.h> 10 #include <stddef.h>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void OnBlockedFrame(const QuicBlockedFrame& frame) override; 71 void OnBlockedFrame(const QuicBlockedFrame& frame) override;
72 void OnConnectionClosed(QuicErrorCode error, bool from_peer) override; 72 void OnConnectionClosed(QuicErrorCode error, bool from_peer) override;
73 void OnWriteBlocked() override {} 73 void OnWriteBlocked() override {}
74 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override; 74 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override;
75 void OnCanWrite() override; 75 void OnCanWrite() override;
76 void OnCongestionWindowChange(QuicTime /*now*/) override {} 76 void OnCongestionWindowChange(QuicTime /*now*/) override {}
77 void OnConnectionMigration() override {} 77 void OnConnectionMigration() override {}
78 bool WillingAndAbleToWrite() const override; 78 bool WillingAndAbleToWrite() const override;
79 bool HasPendingHandshake() const override; 79 bool HasPendingHandshake() const override;
80 bool HasOpenDynamicStreams() const override; 80 bool HasOpenDynamicStreams() const override;
81 void MaybeMigrateConnection() override;
81 82
82 // Called on every incoming packet. Passes |packet| through to |connection_|. 83 // Called on every incoming packet. Passes |packet| through to |connection_|.
83 virtual void ProcessUdpPacket(const IPEndPoint& self_address, 84 virtual void ProcessUdpPacket(const IPEndPoint& self_address,
84 const IPEndPoint& peer_address, 85 const IPEndPoint& peer_address,
85 const QuicEncryptedPacket& packet); 86 const QuicEncryptedPacket& packet);
86 87
87 // Called by streams when they want to write data to the peer. 88 // Called by streams when they want to write data to the peer.
88 // Returns a pair with the number of bytes consumed from data, and a boolean 89 // Returns a pair with the number of bytes consumed from data, and a boolean
89 // indicating if the fin bit was consumed. This does not indicate the data 90 // indicating if the fin bit was consumed. This does not indicate the data
90 // has been sent on the wire: it may have been turned into a packet and queued 91 // has been sent on the wire: it may have been turned into a packet and queued
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 // The stream id which was last popped in OnCanWrite, or 0, if not under the 406 // The stream id which was last popped in OnCanWrite, or 0, if not under the
406 // call stack of OnCanWrite. 407 // call stack of OnCanWrite.
407 QuicStreamId currently_writing_stream_id_; 408 QuicStreamId currently_writing_stream_id_;
408 409
409 DISALLOW_COPY_AND_ASSIGN(QuicSession); 410 DISALLOW_COPY_AND_ASSIGN(QuicSession);
410 }; 411 };
411 412
412 } // namespace net 413 } // namespace net
413 414
414 #endif // NET_QUIC_QUIC_SESSION_H_ 415 #endif // NET_QUIC_QUIC_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698