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

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

Issue 47283002: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation error Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_client_session_test.cc ('k') | net/quic/quic_connection.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 // The entity that handles framing writes for a Quic client or server. 5 // The entity that handles framing writes for a Quic client or server.
6 // Each QuicSession will have a connection associated with it. 6 // Each QuicSession will have a connection associated with it.
7 // 7 //
8 // On the server side, the Dispatcher handles the raw reads, and hands off 8 // On the server side, the Dispatcher handles the raw reads, and hands off
9 // packets via ProcessUdpPacket for framing and processing. 9 // packets via ProcessUdpPacket for framing and processing.
10 // 10 //
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 ALL_PACKETS 189 ALL_PACKETS
190 }; 190 };
191 191
192 // Constructs a new QuicConnection for the specified |guid| and |address|. 192 // Constructs a new QuicConnection for the specified |guid| and |address|.
193 // |helper| and |writer| must outlive this connection. 193 // |helper| and |writer| must outlive this connection.
194 QuicConnection(QuicGuid guid, 194 QuicConnection(QuicGuid guid,
195 IPEndPoint address, 195 IPEndPoint address,
196 QuicConnectionHelperInterface* helper, 196 QuicConnectionHelperInterface* helper,
197 QuicPacketWriter* writer, 197 QuicPacketWriter* writer,
198 bool is_server, 198 bool is_server,
199 QuicVersion version); 199 const QuicVersionVector& supported_versions);
200 virtual ~QuicConnection(); 200 virtual ~QuicConnection();
201 201
202 // Send the data in |data| to the peer in as few packets as possible. 202 // Send the data in |data| to the peer in as few packets as possible.
203 // Returns a pair with the number of bytes consumed from data, and a boolean 203 // Returns a pair with the number of bytes consumed from data, and a boolean
204 // indicating if the fin bit was consumed. This does not indicate the data 204 // indicating if the fin bit was consumed. This does not indicate the data
205 // has been sent on the wire: it may have been turned into a packet and queued 205 // has been sent on the wire: it may have been turned into a packet and queued
206 // if the socket was unexpectedly blocked. 206 // if the socket was unexpectedly blocked.
207 QuicConsumedData SendStreamData(QuicStreamId id, 207 QuicConsumedData SendStreamData(QuicStreamId id,
208 const IOVector& data, 208 const IOVector& data,
209 QuicStreamOffset offset, 209 QuicStreamOffset offset,
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 // all packets that a given block of data was sent in. The AckNotifierManager 783 // all packets that a given block of data was sent in. The AckNotifierManager
784 // maintains the currently active notifiers. 784 // maintains the currently active notifiers.
785 AckNotifierManager ack_notifier_manager_; 785 AckNotifierManager ack_notifier_manager_;
786 786
787 DISALLOW_COPY_AND_ASSIGN(QuicConnection); 787 DISALLOW_COPY_AND_ASSIGN(QuicConnection);
788 }; 788 };
789 789
790 } // namespace net 790 } // namespace net
791 791
792 #endif // NET_QUIC_QUIC_CONNECTION_H_ 792 #endif // NET_QUIC_QUIC_CONNECTION_H_
OLDNEW
« no previous file with comments | « net/quic/quic_client_session_test.cc ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698