OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_chromium_packet_reader.h" | 5 #include "net/quic/quic_chromium_packet_reader.h" |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
11 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
12 #include "net/quic/quic_clock.h" | 12 #include "net/quic/quic_clock.h" |
13 #include "net/quic/quic_time.h" | 13 #include "net/quic/quic_time.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 QuicChromiumPacketReader::QuicChromiumPacketReader( | 17 QuicChromiumPacketReader::QuicChromiumPacketReader( |
18 DatagramClientSocket* socket, | 18 DatagramClientSocket* socket, |
19 QuicClock* clock, | 19 QuicClock* clock, |
20 Visitor* visitor, | 20 Visitor* visitor, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 IPEndPoint peer_address; | 82 IPEndPoint peer_address; |
83 socket_->GetLocalAddress(&local_address); | 83 socket_->GetLocalAddress(&local_address); |
84 socket_->GetPeerAddress(&peer_address); | 84 socket_->GetPeerAddress(&peer_address); |
85 if (!visitor_->OnPacket(packet, local_address, peer_address)) | 85 if (!visitor_->OnPacket(packet, local_address, peer_address)) |
86 return; | 86 return; |
87 | 87 |
88 StartReading(); | 88 StartReading(); |
89 } | 89 } |
90 | 90 |
91 } // namespace net | 91 } // namespace net |
OLD | NEW |