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

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

Issue 1962643003: Add original_path_id to SerializedPacket and OnPacketSent. No functional change expected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « net/quic/quic_connection_logger.h ('k') | net/quic/quic_packet_creator.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 <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 // MtuDiscoveryFrame is PingFrame on wire, it does not have any payload. 421 // MtuDiscoveryFrame is PingFrame on wire, it does not have any payload.
422 net_log_.AddEvent(NetLog::TYPE_QUIC_SESSION_MTU_DISCOVERY_FRAME_SENT); 422 net_log_.AddEvent(NetLog::TYPE_QUIC_SESSION_MTU_DISCOVERY_FRAME_SENT);
423 break; 423 break;
424 default: 424 default:
425 DCHECK(false) << "Illegal frame type: " << frame.type; 425 DCHECK(false) << "Illegal frame type: " << frame.type;
426 } 426 }
427 } 427 }
428 428
429 void QuicConnectionLogger::OnPacketSent( 429 void QuicConnectionLogger::OnPacketSent(
430 const SerializedPacket& serialized_packet, 430 const SerializedPacket& serialized_packet,
431 QuicPathId /* original_path_id */,
431 QuicPacketNumber original_packet_number, 432 QuicPacketNumber original_packet_number,
432 TransmissionType transmission_type, 433 TransmissionType transmission_type,
433 QuicTime sent_time) { 434 QuicTime sent_time) {
434 if (original_packet_number == 0) { 435 if (original_packet_number == 0) {
435 net_log_.AddEvent( 436 net_log_.AddEvent(
436 NetLog::TYPE_QUIC_SESSION_PACKET_SENT, 437 NetLog::TYPE_QUIC_SESSION_PACKET_SENT,
437 base::Bind(&NetLogQuicPacketSentCallback, serialized_packet, 438 base::Bind(&NetLogQuicPacketSentCallback, serialized_packet,
438 transmission_type, sent_time)); 439 transmission_type, sent_time));
439 } else { 440 } else {
440 net_log_.AddEvent( 441 net_log_.AddEvent(
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 continue; 874 continue;
874 } 875 }
875 // Record some overlapping patterns, to get a better picture, since this is 876 // Record some overlapping patterns, to get a better picture, since this is
876 // not very expensive. 877 // not very expensive.
877 if (i % 3 == 0) 878 if (i % 3 == 0)
878 six_packet_histogram->Add(recent_6_mask); 879 six_packet_histogram->Add(recent_6_mask);
879 } 880 }
880 } 881 }
881 882
882 } // namespace net 883 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_connection_logger.h ('k') | net/quic/quic_packet_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698