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

Side by Side Diff: net/socket_stream/socket_stream_metrics.cc

Issue 6362186595172352: net: Migrate from googleurl/ includes to url/ ones. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and revert nss_ocsp.cc changes Created 7 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 | Annotate | Revision Log
« no previous file with comments | « net/socket/socks5_client_socket.h ('k') | net/socket_stream/socket_stream_metrics_unittest.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/socket_stream/socket_stream_metrics.h" 5 #include "net/socket_stream/socket_stream_metrics.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "googleurl/src/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 SocketStreamMetrics::SocketStreamMetrics(const GURL& url) 15 SocketStreamMetrics::SocketStreamMetrics(const GURL& url)
16 : received_bytes_(0), 16 : received_bytes_(0),
17 received_counts_(0), 17 received_counts_(0),
18 sent_bytes_(0), 18 sent_bytes_(0),
19 sent_counts_(0) { 19 sent_counts_(0) {
20 ProtocolType protocol_type = PROTOCOL_UNKNOWN; 20 ProtocolType protocol_type = PROTOCOL_UNKNOWN;
21 if (url.SchemeIs("ws")) 21 if (url.SchemeIs("ws"))
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 UMA_HISTOGRAM_ENUMERATION("Net.SocketStream.ConnectionType", type, 77 UMA_HISTOGRAM_ENUMERATION("Net.SocketStream.ConnectionType", type,
78 NUM_CONNECTION_TYPES); 78 NUM_CONNECTION_TYPES);
79 } 79 }
80 80
81 void SocketStreamMetrics::OnCountWireProtocolType(WireProtocolType type) { 81 void SocketStreamMetrics::OnCountWireProtocolType(WireProtocolType type) {
82 UMA_HISTOGRAM_ENUMERATION("Net.SocketStream.WireProtocolType", type, 82 UMA_HISTOGRAM_ENUMERATION("Net.SocketStream.WireProtocolType", type,
83 NUM_WIRE_PROTOCOL_TYPES); 83 NUM_WIRE_PROTOCOL_TYPES);
84 } 84 }
85 85
86 } // namespace net 86 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/socks5_client_socket.h ('k') | net/socket_stream/socket_stream_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698