| 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/tools/quic/quic_dispatcher.h" | 5 #include "net/tools/quic/quic_dispatcher.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "net/quic/core/crypto/quic_random.h" | 10 #include "net/quic/core/crypto/quic_random.h" |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 const QuicWindowUpdateFrame& /*frame*/) { | 619 const QuicWindowUpdateFrame& /*frame*/) { |
| 620 DCHECK(false); | 620 DCHECK(false); |
| 621 return false; | 621 return false; |
| 622 } | 622 } |
| 623 | 623 |
| 624 bool QuicDispatcher::OnBlockedFrame(const QuicBlockedFrame& frame) { | 624 bool QuicDispatcher::OnBlockedFrame(const QuicBlockedFrame& frame) { |
| 625 DCHECK(false); | 625 DCHECK(false); |
| 626 return false; | 626 return false; |
| 627 } | 627 } |
| 628 | 628 |
| 629 bool QuicDispatcher::OnPathCloseFrame(const QuicPathCloseFrame& frame) { | |
| 630 DCHECK(false); | |
| 631 return false; | |
| 632 } | |
| 633 | |
| 634 void QuicDispatcher::OnPacketComplete() { | 629 void QuicDispatcher::OnPacketComplete() { |
| 635 DCHECK(false); | 630 DCHECK(false); |
| 636 } | 631 } |
| 637 | 632 |
| 638 void QuicDispatcher::OnExpiredPackets( | 633 void QuicDispatcher::OnExpiredPackets( |
| 639 QuicConnectionId connection_id, | 634 QuicConnectionId connection_id, |
| 640 BufferedPacketList early_arrived_packets) { | 635 BufferedPacketList early_arrived_packets) { |
| 641 time_wait_list_manager_->AddConnectionIdToTimeWait( | 636 time_wait_list_manager_->AddConnectionIdToTimeWait( |
| 642 connection_id, framer_.version(), false, nullptr); | 637 connection_id, framer_.version(), false, nullptr); |
| 643 } | 638 } |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 void QuicDispatcher::DeliverPacketsToSession( | 980 void QuicDispatcher::DeliverPacketsToSession( |
| 986 const std::list<BufferedPacket>& packets, | 981 const std::list<BufferedPacket>& packets, |
| 987 QuicSession* session) { | 982 QuicSession* session) { |
| 988 for (const BufferedPacket& packet : packets) { | 983 for (const BufferedPacket& packet : packets) { |
| 989 session->ProcessUdpPacket(packet.server_address, packet.client_address, | 984 session->ProcessUdpPacket(packet.server_address, packet.client_address, |
| 990 *(packet.packet)); | 985 *(packet.packet)); |
| 991 } | 986 } |
| 992 } | 987 } |
| 993 | 988 |
| 994 } // namespace net | 989 } // namespace net |
| OLD | NEW |