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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 if (!writer_->IsWriteBlocked()) { | 517 if (!writer_->IsWriteBlocked()) { |
518 QUIC_BUG << "QuicDispatcher::OnWriteBlocked called when the writer is " | 518 QUIC_BUG << "QuicDispatcher::OnWriteBlocked called when the writer is " |
519 "not blocked."; | 519 "not blocked."; |
520 // Return without adding the connection to the blocked list, to avoid | 520 // Return without adding the connection to the blocked list, to avoid |
521 // infinite loops in OnCanWrite. | 521 // infinite loops in OnCanWrite. |
522 return; | 522 return; |
523 } | 523 } |
524 write_blocked_list_.insert(std::make_pair(blocked_writer, true)); | 524 write_blocked_list_.insert(std::make_pair(blocked_writer, true)); |
525 } | 525 } |
526 | 526 |
527 void QuicDispatcher::OnRstStreamReceived(const QuicRstStreamFrame& frame) {} | |
528 | |
529 void QuicDispatcher::OnConnectionAddedToTimeWaitList( | 527 void QuicDispatcher::OnConnectionAddedToTimeWaitList( |
530 QuicConnectionId connection_id) { | 528 QuicConnectionId connection_id) { |
531 QUIC_DLOG(INFO) << "Connection " << connection_id | 529 QUIC_DLOG(INFO) << "Connection " << connection_id |
532 << " added to time wait list."; | 530 << " added to time wait list."; |
533 } | 531 } |
534 | 532 |
535 void QuicDispatcher::OnPacket() {} | 533 void QuicDispatcher::OnPacket() {} |
536 | 534 |
537 void QuicDispatcher::OnError(QuicFramer* framer) { | 535 void QuicDispatcher::OnError(QuicFramer* framer) { |
538 QuicErrorCode error = framer->error(); | 536 QuicErrorCode error = framer->error(); |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
987 void QuicDispatcher::DeliverPacketsToSession( | 985 void QuicDispatcher::DeliverPacketsToSession( |
988 const std::list<BufferedPacket>& packets, | 986 const std::list<BufferedPacket>& packets, |
989 QuicSession* session) { | 987 QuicSession* session) { |
990 for (const BufferedPacket& packet : packets) { | 988 for (const BufferedPacket& packet : packets) { |
991 session->ProcessUdpPacket(packet.server_address, packet.client_address, | 989 session->ProcessUdpPacket(packet.server_address, packet.client_address, |
992 *(packet.packet)); | 990 *(packet.packet)); |
993 } | 991 } |
994 } | 992 } |
995 | 993 |
996 } // namespace net | 994 } // namespace net |
OLD | NEW |