| Index: net/quic/quic_client_session.cc
|
| diff --git a/net/quic/quic_client_session.cc b/net/quic/quic_client_session.cc
|
| index e45a4b8d3a947b6207809eaef18f2896b9500c3f..a7ae18cce2f9007bbb4b901b9472153d6e1d0526 100644
|
| --- a/net/quic/quic_client_session.cc
|
| +++ b/net/quic/quic_client_session.cc
|
| @@ -337,24 +337,14 @@ QuicClientSession::~QuicClientSession() {
|
| static_cast<base::HistogramBase::Sample>(stats.max_sequence_reordering));
|
| }
|
|
|
| -void QuicClientSession::OnStreamFrames(
|
| - const std::vector<QuicStreamFrame>& frames) {
|
| +void QuicClientSession::OnStreamFrame(const QuicStreamFrame& frame) {
|
| // Record total number of stream frames.
|
| - UMA_HISTOGRAM_COUNTS("Net.QuicNumStreamFramesInPacket", frames.size());
|
| + UMA_HISTOGRAM_COUNTS("Net.QuicNumStreamFramesInPacket", 1);
|
|
|
| // Record number of frames per stream in packet.
|
| - typedef std::map<QuicStreamId, size_t> FrameCounter;
|
| - FrameCounter frames_per_stream;
|
| - for (size_t i = 0; i < frames.size(); ++i) {
|
| - frames_per_stream[frames[i].stream_id]++;
|
| - }
|
| - for (FrameCounter::const_iterator it = frames_per_stream.begin();
|
| - it != frames_per_stream.end(); ++it) {
|
| - UMA_HISTOGRAM_COUNTS("Net.QuicNumStreamFramesPerStreamInPacket",
|
| - it->second);
|
| - }
|
| + UMA_HISTOGRAM_COUNTS("Net.QuicNumStreamFramesPerStreamInPacket", 1);
|
|
|
| - return QuicSpdySession::OnStreamFrames(frames);
|
| + return QuicSpdySession::OnStreamFrame(frame);
|
| }
|
|
|
| void QuicClientSession::AddObserver(Observer* observer) {
|
|
|