OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_connection_logger.h" | 5 #include "net/quic/quic_connection_logger.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // QuicConnectionDebugVisitorInterface | 140 // QuicConnectionDebugVisitorInterface |
141 void QuicConnectionLogger::OnPacketReceived(const IPEndPoint& self_address, | 141 void QuicConnectionLogger::OnPacketReceived(const IPEndPoint& self_address, |
142 const IPEndPoint& peer_address, | 142 const IPEndPoint& peer_address, |
143 const QuicEncryptedPacket& packet) { | 143 const QuicEncryptedPacket& packet) { |
144 net_log_.AddEvent( | 144 net_log_.AddEvent( |
145 NetLog::TYPE_QUIC_SESSION_PACKET_RECEIVED, | 145 NetLog::TYPE_QUIC_SESSION_PACKET_RECEIVED, |
146 base::Bind(&NetLogQuicPacketCallback, &self_address, &peer_address, | 146 base::Bind(&NetLogQuicPacketCallback, &self_address, &peer_address, |
147 packet.length())); | 147 packet.length())); |
148 } | 148 } |
149 | 149 |
150 void QuicConnectionLogger::OnProtocolVersionMismatch( | 150 void QuicConnectionLogger::OnProtocolVersionMismatch(QuicTag received_version) { |
151 QuicVersionTag received_version) { | |
152 // TODO(rtenneti): Add logging. | 151 // TODO(rtenneti): Add logging. |
153 } | 152 } |
154 | 153 |
155 void QuicConnectionLogger::OnPacketHeader(const QuicPacketHeader& header) { | 154 void QuicConnectionLogger::OnPacketHeader(const QuicPacketHeader& header) { |
156 net_log_.AddEvent( | 155 net_log_.AddEvent( |
157 NetLog::TYPE_QUIC_SESSION_PACKET_HEADER_RECEIVED, | 156 NetLog::TYPE_QUIC_SESSION_PACKET_HEADER_RECEIVED, |
158 base::Bind(&NetLogQuicPacketHeaderCallback, &header)); | 157 base::Bind(&NetLogQuicPacketHeaderCallback, &header)); |
159 } | 158 } |
160 | 159 |
161 void QuicConnectionLogger::OnStreamFrame(const QuicStreamFrame& frame) { | 160 void QuicConnectionLogger::OnStreamFrame(const QuicStreamFrame& frame) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 void QuicConnectionLogger::OnVersionNegotiationPacket( | 196 void QuicConnectionLogger::OnVersionNegotiationPacket( |
198 const QuicVersionNegotiationPacket& packet) { | 197 const QuicVersionNegotiationPacket& packet) { |
199 } | 198 } |
200 | 199 |
201 void QuicConnectionLogger::OnRevivedPacket( | 200 void QuicConnectionLogger::OnRevivedPacket( |
202 const QuicPacketHeader& revived_header, | 201 const QuicPacketHeader& revived_header, |
203 base::StringPiece payload) { | 202 base::StringPiece payload) { |
204 } | 203 } |
205 | 204 |
206 } // namespace net | 205 } // namespace net |
OLD | NEW |