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

Side by Side Diff: net/spdy/spdy_session.cc

Issue 1233043003: Remove some legacy versions of StartsWith and EndsWith. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/crypto/quic_crypto_client_config.cc ('k') | net/spdy/spdy_session_test_util.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/spdy/spdy_session.h" 5 #include "net/spdy/spdy_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 2960 matching lines...) Expand 10 before | Expand all | Expand 10 after
2971 void SpdySession::RecordPingRTTHistogram(base::TimeDelta duration) { 2971 void SpdySession::RecordPingRTTHistogram(base::TimeDelta duration) {
2972 UMA_HISTOGRAM_CUSTOM_TIMES("Net.SpdyPing.RTT", duration, 2972 UMA_HISTOGRAM_CUSTOM_TIMES("Net.SpdyPing.RTT", duration,
2973 base::TimeDelta::FromMilliseconds(1), 2973 base::TimeDelta::FromMilliseconds(1),
2974 base::TimeDelta::FromMinutes(10), 100); 2974 base::TimeDelta::FromMinutes(10), 100);
2975 } 2975 }
2976 2976
2977 void SpdySession::RecordProtocolErrorHistogram( 2977 void SpdySession::RecordProtocolErrorHistogram(
2978 SpdyProtocolErrorDetails details) { 2978 SpdyProtocolErrorDetails details) {
2979 UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionErrorDetails2", details, 2979 UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionErrorDetails2", details,
2980 NUM_SPDY_PROTOCOL_ERROR_DETAILS); 2980 NUM_SPDY_PROTOCOL_ERROR_DETAILS);
2981 if (base::EndsWith(host_port_pair().host(), "google.com", false)) { 2981 if (base::EndsWith(host_port_pair().host(), "google.com",
2982 base::CompareCase::INSENSITIVE_ASCII)) {
2982 UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionErrorDetails_Google2", details, 2983 UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionErrorDetails_Google2", details,
2983 NUM_SPDY_PROTOCOL_ERROR_DETAILS); 2984 NUM_SPDY_PROTOCOL_ERROR_DETAILS);
2984 } 2985 }
2985 } 2986 }
2986 2987
2987 void SpdySession::RecordHistograms() { 2988 void SpdySession::RecordHistograms() {
2988 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPerSession", 2989 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPerSession",
2989 streams_initiated_count_, 2990 streams_initiated_count_,
2990 0, 300, 50); 2991 0, 300, 50);
2991 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPushedPerSession", 2992 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPushedPerSession",
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
3260 if (!queue->empty()) { 3261 if (!queue->empty()) {
3261 SpdyStreamId stream_id = queue->front(); 3262 SpdyStreamId stream_id = queue->front();
3262 queue->pop_front(); 3263 queue->pop_front();
3263 return stream_id; 3264 return stream_id;
3264 } 3265 }
3265 } 3266 }
3266 return 0; 3267 return 0;
3267 } 3268 }
3268 3269
3269 } // namespace net 3270 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/crypto/quic_crypto_client_config.cc ('k') | net/spdy/spdy_session_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698