Index: net/quic/quic_connection.h |
diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h |
index 136a96e7174b82ef8a8339cbea8ab61d48306494..0b35c7268915370f3ddba110d2f17568c26fa2dc 100644 |
--- a/net/quic/quic_connection.h |
+++ b/net/quic/quic_connection.h |
@@ -427,25 +427,6 @@ class NET_EXPORT_PRIVATE QuicConnection |
const SerializedPacket& packet, |
TransmissionType transmission_type); |
- // Writes the given packet to socket, encrypted with |level|, with the help |
- // of helper. Returns true on successful write, false otherwise. However, |
- // behavior is undefined if connection is not established or broken. In any |
- // circumstances, a return value of true implies that |packet| has been |
- // transmitted and may be destroyed. If |sequence_number| is present in |
- // |retransmission_map_| it also sets up retransmission of the given packet |
- // in case of successful write. If |force| is FORCE, then the packet will be |
- // sent immediately and the send scheduler will not be consulted. |
- bool WritePacket(EncryptionLevel level, |
- QuicPacketSequenceNumber sequence_number, |
- const QuicPacket& packet, |
- TransmissionType transmission_type, |
- HasRetransmittableData retransmittable, |
- IsHandshake handshake, |
- Force force); |
- |
- // Make sure an ack we got from our peer is sane. |
- bool ValidateAckFrame(const QuicAckFrame& incoming_ack); |
- |
QuicConnectionHelperInterface* helper() { return helper_; } |
// Selects and updates the version of the protocol being used by selecting a |
@@ -453,8 +434,6 @@ class NET_EXPORT_PRIVATE QuicConnection |
// such a version exists, false otherwise. |
bool SelectMutualVersion(const QuicVersionVector& available_versions); |
- QuicFramer framer_; |
- |
private: |
// Stores current batch state for connection, puts the connection |
// into batch mode, and destruction restores the stored batch state. |
@@ -532,6 +511,24 @@ class NET_EXPORT_PRIVATE QuicConnection |
typedef std::list<QueuedPacket> QueuedPacketList; |
typedef std::map<QuicFecGroupNumber, QuicFecGroup*> FecGroupMap; |
+ // Writes the given packet to socket, encrypted with |level|. Returns true on |
+ // successful write. Behavior is undefined if connection is not established or |
+ // broken. In any circumstance, a return value of true implies that |packet| |
+ // has been transmitted and may be destroyed. If |sequence_number| is present |
+ // in |retransmission_map_| it also sets up retransmission of the given packet |
+ // in case of successful write. If |force| is FORCE, then the packet will be |
+ // sent immediately and the send scheduler will not be consulted. |
+ bool WritePacket(EncryptionLevel level, |
+ QuicPacketSequenceNumber sequence_number, |
+ const QuicPacket& packet, |
+ TransmissionType transmission_type, |
+ HasRetransmittableData retransmittable, |
+ IsHandshake handshake, |
+ Force force); |
+ |
+ // Make sure an ack we got from our peer is sane. |
+ bool ValidateAckFrame(const QuicAckFrame& incoming_ack); |
+ |
// Sends a version negotiation packet to the peer. |
void SendVersionNegotiationPacket(); |
@@ -596,6 +593,7 @@ class NET_EXPORT_PRIVATE QuicConnection |
// Closes any FEC groups protecting packets before |sequence_number|. |
void CloseFecGroupsBefore(QuicPacketSequenceNumber sequence_number); |
+ QuicFramer framer_; |
QuicConnectionHelperInterface* helper_; // Not owned. |
QuicPacketWriter* writer_; // Not owned. |
EncryptionLevel encryption_level_; |