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 |
527 void QuicDispatcher::OnConnectionAddedToTimeWaitList( | 529 void QuicDispatcher::OnConnectionAddedToTimeWaitList( |
528 QuicConnectionId connection_id) { | 530 QuicConnectionId connection_id) { |
529 QUIC_DLOG(INFO) << "Connection " << connection_id | 531 QUIC_DLOG(INFO) << "Connection " << connection_id |
530 << " added to time wait list."; | 532 << " added to time wait list."; |
531 } | 533 } |
532 | 534 |
533 void QuicDispatcher::OnPacket() {} | 535 void QuicDispatcher::OnPacket() {} |
534 | 536 |
535 void QuicDispatcher::OnError(QuicFramer* framer) { | 537 void QuicDispatcher::OnError(QuicFramer* framer) { |
536 QuicErrorCode error = framer->error(); | 538 QuicErrorCode error = framer->error(); |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 void QuicDispatcher::DeliverPacketsToSession( | 982 void QuicDispatcher::DeliverPacketsToSession( |
981 const std::list<BufferedPacket>& packets, | 983 const std::list<BufferedPacket>& packets, |
982 QuicSession* session) { | 984 QuicSession* session) { |
983 for (const BufferedPacket& packet : packets) { | 985 for (const BufferedPacket& packet : packets) { |
984 session->ProcessUdpPacket(packet.server_address, packet.client_address, | 986 session->ProcessUdpPacket(packet.server_address, packet.client_address, |
985 *(packet.packet)); | 987 *(packet.packet)); |
986 } | 988 } |
987 } | 989 } |
988 | 990 |
989 } // namespace net | 991 } // namespace net |
OLD | NEW |