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/debug/stack_trace.h" | 9 #include "base/debug/stack_trace.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "net/quic/core/crypto/quic_random.h" | 13 #include "net/quic/core/crypto/quic_random.h" |
14 #include "net/quic/core/quic_bug_tracker.h" | |
15 #include "net/quic/core/quic_flags.h" | 14 #include "net/quic/core/quic_flags.h" |
16 #include "net/quic/core/quic_utils.h" | 15 #include "net/quic/core/quic_utils.h" |
17 | 16 #include "net/quic/platform/api/quic_bug_tracker.h" |
18 #include "net/tools/quic/chlo_extractor.h" | 17 #include "net/tools/quic/chlo_extractor.h" |
19 #include "net/tools/quic/quic_per_connection_packet_writer.h" | 18 #include "net/tools/quic/quic_per_connection_packet_writer.h" |
20 #include "net/tools/quic/quic_simple_server_session.h" | 19 #include "net/tools/quic/quic_simple_server_session.h" |
21 #include "net/tools/quic/quic_simple_server_session.h" | 20 #include "net/tools/quic/quic_simple_server_session.h" |
22 #include "net/tools/quic/quic_time_wait_list_manager.h" | 21 #include "net/tools/quic/quic_time_wait_list_manager.h" |
23 #include "net/tools/quic/stateless_rejector.h" | 22 #include "net/tools/quic/stateless_rejector.h" |
24 | 23 |
25 using base::StringPiece; | 24 using base::StringPiece; |
26 using std::string; | 25 using std::string; |
27 | 26 |
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
995 void QuicDispatcher::DeliverPacketsToSession( | 994 void QuicDispatcher::DeliverPacketsToSession( |
996 const std::list<BufferedPacket>& packets, | 995 const std::list<BufferedPacket>& packets, |
997 QuicSession* session) { | 996 QuicSession* session) { |
998 for (const BufferedPacket& packet : packets) { | 997 for (const BufferedPacket& packet : packets) { |
999 session->ProcessUdpPacket(packet.server_address, packet.client_address, | 998 session->ProcessUdpPacket(packet.server_address, packet.client_address, |
1000 *(packet.packet)); | 999 *(packet.packet)); |
1001 } | 1000 } |
1002 } | 1001 } |
1003 | 1002 |
1004 } // namespace net | 1003 } // namespace net |
OLD | NEW |