OLD | NEW |
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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 // has been sent on the wire: it may have been turned into a packet and queued | 345 // has been sent on the wire: it may have been turned into a packet and queued |
346 // if the socket was unexpectedly blocked. | 346 // if the socket was unexpectedly blocked. |
347 // If |listener| is provided, then it will be informed once ACKs have been | 347 // If |listener| is provided, then it will be informed once ACKs have been |
348 // received for all the packets written in this call. | 348 // received for all the packets written in this call. |
349 // The |listener| is not owned by the QuicConnection and must outlive it. | 349 // The |listener| is not owned by the QuicConnection and must outlive it. |
350 virtual QuicConsumedData SendStreamData( | 350 virtual QuicConsumedData SendStreamData( |
351 QuicStreamId id, | 351 QuicStreamId id, |
352 QuicIOVector iov, | 352 QuicIOVector iov, |
353 QuicStreamOffset offset, | 353 QuicStreamOffset offset, |
354 bool fin, | 354 bool fin, |
355 scoped_refptr<QuicAckListenerInterface> listener); | 355 QuicReferenceCountedPointer<QuicAckListenerInterface> listener); |
356 | 356 |
357 // Send a RST_STREAM frame to the peer. | 357 // Send a RST_STREAM frame to the peer. |
358 virtual void SendRstStream(QuicStreamId id, | 358 virtual void SendRstStream(QuicStreamId id, |
359 QuicRstStreamErrorCode error, | 359 QuicRstStreamErrorCode error, |
360 QuicStreamOffset bytes_written); | 360 QuicStreamOffset bytes_written); |
361 | 361 |
362 // Send a BLOCKED frame to the peer. | 362 // Send a BLOCKED frame to the peer. |
363 virtual void SendBlocked(QuicStreamId id); | 363 virtual void SendBlocked(QuicStreamId id); |
364 | 364 |
365 // Send a WINDOW_UPDATE frame to the peer. | 365 // Send a WINDOW_UPDATE frame to the peer. |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1107 // Indicates whether a write error is encountered currently. This is used to | 1107 // Indicates whether a write error is encountered currently. This is used to |
1108 // avoid infinite write errors. | 1108 // avoid infinite write errors. |
1109 bool write_error_occured_; | 1109 bool write_error_occured_; |
1110 | 1110 |
1111 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1111 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
1112 }; | 1112 }; |
1113 | 1113 |
1114 } // namespace net | 1114 } // namespace net |
1115 | 1115 |
1116 #endif // NET_QUIC_CORE_QUIC_CONNECTION_H_ | 1116 #endif // NET_QUIC_CORE_QUIC_CONNECTION_H_ |
OLD | NEW |