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

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

Issue 1665303003: Adds plumbing for QUIC early connection migration. No behavior change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: 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
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | net/quic/quic_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override; 75 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override;
76 void OnCanWrite() override; 76 void OnCanWrite() override;
77 void OnCongestionWindowChange(QuicTime /*now*/) override {} 77 void OnCongestionWindowChange(QuicTime /*now*/) override {}
78 void OnConnectionMigration() override {} 78 void OnConnectionMigration() override {}
79 // Deletes streams that are safe to be deleted now that it's safe to do so (no 79 // Deletes streams that are safe to be deleted now that it's safe to do so (no
80 // other operations are being done on the streams at this time). 80 // other operations are being done on the streams at this time).
81 void PostProcessAfterData() override; 81 void PostProcessAfterData() override;
82 bool WillingAndAbleToWrite() const override; 82 bool WillingAndAbleToWrite() const override;
83 bool HasPendingHandshake() const override; 83 bool HasPendingHandshake() const override;
84 bool HasOpenDynamicStreams() const override; 84 bool HasOpenDynamicStreams() const override;
85 void OnPathDegrading() override;
85 86
86 // Called on every incoming packet. Passes |packet| through to |connection_|. 87 // Called on every incoming packet. Passes |packet| through to |connection_|.
87 virtual void ProcessUdpPacket(const IPEndPoint& self_address, 88 virtual void ProcessUdpPacket(const IPEndPoint& self_address,
88 const IPEndPoint& peer_address, 89 const IPEndPoint& peer_address,
89 const QuicEncryptedPacket& packet); 90 const QuicEncryptedPacket& packet);
90 91
91 // Called by streams when they want to write data to the peer. 92 // Called by streams when they want to write data to the peer.
92 // Returns a pair with the number of bytes consumed from data, and a boolean 93 // Returns a pair with the number of bytes consumed from data, and a boolean
93 // indicating if the fin bit was consumed. This does not indicate the data 94 // indicating if the fin bit was consumed. This does not indicate the data
94 // has been sent on the wire: it may have been turned into a packet and queued 95 // has been sent on the wire: it may have been turned into a packet and queued
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 // The stream id which was last popped in OnCanWrite, or 0, if not under the 407 // The stream id which was last popped in OnCanWrite, or 0, if not under the
407 // call stack of OnCanWrite. 408 // call stack of OnCanWrite.
408 QuicStreamId currently_writing_stream_id_; 409 QuicStreamId currently_writing_stream_id_;
409 410
410 DISALLOW_COPY_AND_ASSIGN(QuicSession); 411 DISALLOW_COPY_AND_ASSIGN(QuicSession);
411 }; 412 };
412 413
413 } // namespace net 414 } // namespace net
414 415
415 #endif // NET_QUIC_QUIC_SESSION_H_ 416 #endif // NET_QUIC_QUIC_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | net/quic/quic_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698