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

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

Issue 1182183003: Move EndsWith to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/server/http_server_unittest.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 2957 matching lines...) Expand 10 before | Expand all | Expand 10 after
2968 void SpdySession::RecordPingRTTHistogram(base::TimeDelta duration) { 2968 void SpdySession::RecordPingRTTHistogram(base::TimeDelta duration) {
2969 UMA_HISTOGRAM_CUSTOM_TIMES("Net.SpdyPing.RTT", duration, 2969 UMA_HISTOGRAM_CUSTOM_TIMES("Net.SpdyPing.RTT", duration,
2970 base::TimeDelta::FromMilliseconds(1), 2970 base::TimeDelta::FromMilliseconds(1),
2971 base::TimeDelta::FromMinutes(10), 100); 2971 base::TimeDelta::FromMinutes(10), 100);
2972 } 2972 }
2973 2973
2974 void SpdySession::RecordProtocolErrorHistogram( 2974 void SpdySession::RecordProtocolErrorHistogram(
2975 SpdyProtocolErrorDetails details) { 2975 SpdyProtocolErrorDetails details) {
2976 UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionErrorDetails2", details, 2976 UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionErrorDetails2", details,
2977 NUM_SPDY_PROTOCOL_ERROR_DETAILS); 2977 NUM_SPDY_PROTOCOL_ERROR_DETAILS);
2978 if (EndsWith(host_port_pair().host(), "google.com", false)) { 2978 if (base::EndsWith(host_port_pair().host(), "google.com", false)) {
2979 UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionErrorDetails_Google2", details, 2979 UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionErrorDetails_Google2", details,
2980 NUM_SPDY_PROTOCOL_ERROR_DETAILS); 2980 NUM_SPDY_PROTOCOL_ERROR_DETAILS);
2981 } 2981 }
2982 } 2982 }
2983 2983
2984 void SpdySession::RecordHistograms() { 2984 void SpdySession::RecordHistograms() {
2985 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPerSession", 2985 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPerSession",
2986 streams_initiated_count_, 2986 streams_initiated_count_,
2987 0, 300, 50); 2987 0, 300, 50);
2988 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPushedPerSession", 2988 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPushedPerSession",
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
3257 if (!queue->empty()) { 3257 if (!queue->empty()) {
3258 SpdyStreamId stream_id = queue->front(); 3258 SpdyStreamId stream_id = queue->front();
3259 queue->pop_front(); 3259 queue->pop_front();
3260 return stream_id; 3260 return stream_id;
3261 } 3261 }
3262 } 3262 }
3263 return 0; 3263 return 0;
3264 } 3264 }
3265 3265
3266 } // namespace net 3266 } // namespace net
OLDNEW
« no previous file with comments | « net/server/http_server_unittest.cc ('k') | net/spdy/spdy_session_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698