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

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

Issue 449273002: Along with sending the SCUP message, this CL includes small fixes which (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Trigger_QUIC_tracegraf_72571464
Patch Set: Created 6 years, 4 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_connection.h ('k') | net/quic/quic_crypto_client_stream.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 #include "net/quic/quic_connection.h" 5 #include "net/quic/quic_connection.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 #include <algorithm> 9 #include <algorithm>
10 #include <iterator> 10 #include <iterator>
(...skipping 1524 matching lines...) Expand 10 before | Expand all | Expand 10 after
1535 set_encryption_level(encryption_level_); 1535 set_encryption_level(encryption_level_);
1536 } 1536 }
1537 sent_packet_manager_.OnSerializedPacket(serialized_packet); 1537 sent_packet_manager_.OnSerializedPacket(serialized_packet);
1538 // The TransmissionType is NOT_RETRANSMISSION because all retransmissions 1538 // The TransmissionType is NOT_RETRANSMISSION because all retransmissions
1539 // serialize packets and invoke SendOrQueuePacket directly. 1539 // serialize packets and invoke SendOrQueuePacket directly.
1540 return SendOrQueuePacket(encryption_level_, 1540 return SendOrQueuePacket(encryption_level_,
1541 serialized_packet, 1541 serialized_packet,
1542 NOT_RETRANSMISSION); 1542 NOT_RETRANSMISSION);
1543 } 1543 }
1544 1544
1545 void QuicConnection::OnHandshakeComplete() {
1546 sent_packet_manager_.SetHandshakeConfirmed();
1547 }
1548
1545 bool QuicConnection::SendOrQueuePacket(EncryptionLevel level, 1549 bool QuicConnection::SendOrQueuePacket(EncryptionLevel level,
1546 const SerializedPacket& packet, 1550 const SerializedPacket& packet,
1547 TransmissionType transmission_type) { 1551 TransmissionType transmission_type) {
1548 if (packet.packet == NULL) { 1552 if (packet.packet == NULL) {
1549 LOG(DFATAL) << "NULL packet passed in to SendOrQueuePacket"; 1553 LOG(DFATAL) << "NULL packet passed in to SendOrQueuePacket";
1550 return true; 1554 return true;
1551 } 1555 }
1552 1556
1553 sent_entropy_manager_.RecordPacketEntropyHash(packet.sequence_number, 1557 sent_entropy_manager_.RecordPacketEntropyHash(packet.sequence_number,
1554 packet.entropy_hash); 1558 packet.entropy_hash);
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
1986 // If we changed the generator's batch state, restore original batch state. 1990 // If we changed the generator's batch state, restore original batch state.
1987 if (!already_in_batch_mode_) { 1991 if (!already_in_batch_mode_) {
1988 DVLOG(1) << "Leaving Batch Mode."; 1992 DVLOG(1) << "Leaving Batch Mode.";
1989 connection_->packet_generator_.FinishBatchOperations(); 1993 connection_->packet_generator_.FinishBatchOperations();
1990 } 1994 }
1991 DCHECK_EQ(already_in_batch_mode_, 1995 DCHECK_EQ(already_in_batch_mode_,
1992 connection_->packet_generator_.InBatchMode()); 1996 connection_->packet_generator_.InBatchMode());
1993 } 1997 }
1994 1998
1995 } // namespace net 1999 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_connection.h ('k') | net/quic/quic_crypto_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698