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

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

Issue 2589983002: Create a QUIC wrapper around scoped_refptr. (Closed)
Patch Set: rm = nullptr Created 4 years 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/core/quic_ack_listener_interface.cc ('k') | net/quic/core/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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « net/quic/core/quic_ack_listener_interface.cc ('k') | net/quic/core/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698