| 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 #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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 | 353 |
| 354 DVLOG(1) << ENDPOINT << "negotiating version " << version(); | 354 DVLOG(1) << ENDPOINT << "negotiating version " << version(); |
| 355 server_supported_versions_ = packet.versions; | 355 server_supported_versions_ = packet.versions; |
| 356 version_negotiation_state_ = NEGOTIATION_IN_PROGRESS; | 356 version_negotiation_state_ = NEGOTIATION_IN_PROGRESS; |
| 357 RetransmitUnackedPackets(ALL_PACKETS); | 357 RetransmitUnackedPackets(ALL_PACKETS); |
| 358 } | 358 } |
| 359 | 359 |
| 360 void QuicConnection::OnRevivedPacket() { | 360 void QuicConnection::OnRevivedPacket() { |
| 361 } | 361 } |
| 362 | 362 |
| 363 bool QuicConnection::OnUnauthenticatedPublicHeader( |
| 364 const QuicPacketPublicHeader& header) { |
| 365 return true; |
| 366 } |
| 367 |
| 363 bool QuicConnection::OnUnauthenticatedHeader(const QuicPacketHeader& header) { | 368 bool QuicConnection::OnUnauthenticatedHeader(const QuicPacketHeader& header) { |
| 364 return true; | 369 return true; |
| 365 } | 370 } |
| 366 | 371 |
| 367 bool QuicConnection::OnPacketHeader(const QuicPacketHeader& header) { | 372 bool QuicConnection::OnPacketHeader(const QuicPacketHeader& header) { |
| 368 if (debug_visitor_) { | 373 if (debug_visitor_) { |
| 369 debug_visitor_->OnPacketHeader(header); | 374 debug_visitor_->OnPacketHeader(header); |
| 370 } | 375 } |
| 371 | 376 |
| 372 if (!ProcessValidatedPacket()) { | 377 if (!ProcessValidatedPacket()) { |
| (...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1654 // If we changed the generator's batch state, restore original batch state. | 1659 // If we changed the generator's batch state, restore original batch state. |
| 1655 if (!already_in_batch_mode_) { | 1660 if (!already_in_batch_mode_) { |
| 1656 DVLOG(1) << "Leaving Batch Mode."; | 1661 DVLOG(1) << "Leaving Batch Mode."; |
| 1657 connection_->packet_generator_.FinishBatchOperations(); | 1662 connection_->packet_generator_.FinishBatchOperations(); |
| 1658 } | 1663 } |
| 1659 DCHECK_EQ(already_in_batch_mode_, | 1664 DCHECK_EQ(already_in_batch_mode_, |
| 1660 connection_->packet_generator_.InBatchMode()); | 1665 connection_->packet_generator_.InBatchMode()); |
| 1661 } | 1666 } |
| 1662 | 1667 |
| 1663 } // namespace net | 1668 } // namespace net |
| OLD | NEW |