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

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

Issue 14816006: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing NET_PRIVATE_EXPORT to QuicWallTime Created 7 years, 7 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( 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
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
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