Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Side by Side Diff: net/quic/quic_connection_logger.cc

Issue 12806002: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor comment fix Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_connection_logger.h ('k') | net/quic/quic_connection_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(
151 QuicVersionTag received_version) {
152 // TODO(rtenneti): Add logging.
153 }
154
150 void QuicConnectionLogger::OnPacketHeader(const QuicPacketHeader& header) { 155 void QuicConnectionLogger::OnPacketHeader(const QuicPacketHeader& header) {
151 net_log_.AddEvent( 156 net_log_.AddEvent(
152 NetLog::TYPE_QUIC_SESSION_PACKET_HEADER_RECEIVED, 157 NetLog::TYPE_QUIC_SESSION_PACKET_HEADER_RECEIVED,
153 base::Bind(&NetLogQuicPacketHeaderCallback, &header)); 158 base::Bind(&NetLogQuicPacketHeaderCallback, &header));
154 } 159 }
155 160
156 void QuicConnectionLogger::OnStreamFrame(const QuicStreamFrame& frame) { 161 void QuicConnectionLogger::OnStreamFrame(const QuicStreamFrame& frame) {
157 net_log_.AddEvent( 162 net_log_.AddEvent(
158 NetLog::TYPE_QUIC_SESSION_STREAM_FRAME_RECEIVED, 163 NetLog::TYPE_QUIC_SESSION_STREAM_FRAME_RECEIVED,
159 base::Bind(&NetLogQuicStreamFrameCallback, &frame)); 164 base::Bind(&NetLogQuicStreamFrameCallback, &frame));
(...skipping 22 matching lines...) Expand all
182 const QuicConnectionCloseFrame& frame) { 187 const QuicConnectionCloseFrame& frame) {
183 net_log_.AddEvent( 188 net_log_.AddEvent(
184 NetLog::TYPE_QUIC_SESSION_CONNECTION_CLOSE_FRAME_RECEIVED, 189 NetLog::TYPE_QUIC_SESSION_CONNECTION_CLOSE_FRAME_RECEIVED,
185 base::Bind(&NetLogQuicConnectionCloseFrameCallback, &frame)); 190 base::Bind(&NetLogQuicConnectionCloseFrameCallback, &frame));
186 } 191 }
187 192
188 void QuicConnectionLogger::OnPublicResetPacket( 193 void QuicConnectionLogger::OnPublicResetPacket(
189 const QuicPublicResetPacket& packet) { 194 const QuicPublicResetPacket& packet) {
190 } 195 }
191 196
197 void QuicConnectionLogger::OnVersionNegotiationPacket(
198 const QuicVersionNegotiationPacket& packet) {
199 }
200
192 void QuicConnectionLogger::OnRevivedPacket( 201 void QuicConnectionLogger::OnRevivedPacket(
193 const QuicPacketHeader& revived_header, 202 const QuicPacketHeader& revived_header,
194 base::StringPiece payload) { 203 base::StringPiece payload) {
195 } 204 }
196 205
197 } // namespace net 206 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_connection_logger.h ('k') | net/quic/quic_connection_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698