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

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

Issue 424903002: Remove FixRate congestion frame type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_quic_version_15_71718286
Patch Set: Created 6 years, 4 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
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 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 dict->Set("received_packets", received); 130 dict->Set("received_packets", received);
131 for (TimeMap::const_iterator it = 131 for (TimeMap::const_iterator it =
132 frame->inter_arrival.received_packet_times.begin(); 132 frame->inter_arrival.received_packet_times.begin();
133 it != frame->inter_arrival.received_packet_times.end(); ++it) { 133 it != frame->inter_arrival.received_packet_times.end(); ++it) {
134 string value = base::Uint64ToString(it->first) + "@" + 134 string value = base::Uint64ToString(it->first) + "@" +
135 base::Uint64ToString(it->second.ToDebuggingValue()); 135 base::Uint64ToString(it->second.ToDebuggingValue());
136 received->AppendString(value); 136 received->AppendString(value);
137 } 137 }
138 break; 138 break;
139 } 139 }
140 case kFixRate:
141 dict->SetString("type", "FixRate");
142 dict->SetInteger("bitrate_in_bytes_per_second",
143 frame->fix_rate.bitrate.ToBytesPerSecond());
144 break;
145 case kTCP: 140 case kTCP:
146 dict->SetString("type", "TCP"); 141 dict->SetString("type", "TCP");
147 dict->SetInteger("receive_window", frame->tcp.receive_window); 142 dict->SetInteger("receive_window", frame->tcp.receive_window);
148 break; 143 break;
149 } 144 }
150 145
151 return dict; 146 return dict;
152 } 147 }
153 148
154 base::Value* NetLogQuicRstStreamFrameCallback( 149 base::Value* NetLogQuicRstStreamFrameCallback(
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 continue; 819 continue;
825 } 820 }
826 // Record some overlapping patterns, to get a better picture, since this is 821 // Record some overlapping patterns, to get a better picture, since this is
827 // not very expensive. 822 // not very expensive.
828 if (i % 3 == 0) 823 if (i % 3 == 0)
829 six_packet_histogram->Add(recent_6_mask); 824 six_packet_histogram->Add(recent_6_mask);
830 } 825 }
831 } 826 }
832 827
833 } // namespace net 828 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/send_algorithm_interface.cc ('k') | net/quic/quic_connection_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698