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

Side by Side Diff: net/base/connection_type_histograms.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef NET_BASE_CONNECTION_TYPE_HISTOGRAMS_H_ 5 #ifndef NET_BASE_CONNECTION_TYPE_HISTOGRAMS_H_
6 #define NET_BASE_CONNECTION_TYPE_HISTOGRAMS_H_ 6 #define NET_BASE_CONNECTION_TYPE_HISTOGRAMS_H_
7 7
8 // The UpdateConnectionTypeHistograms function collects statistics related 8 // The UpdateConnectionTypeHistograms function collects statistics related
9 // to the number of MD5 certificates that our users are encountering. The 9 // to the number of MD5 certificates that our users are encountering. The
10 // information will help us decide when it is fine for browsers to stop 10 // information will help us decide when it is fine for browsers to stop
11 // supporting MD5 certificates, in light of the recent MD5 certificate 11 // supporting MD5 certificates, in light of the recent MD5 certificate
12 // collision attack (see "MD5 considered harmful today: Creating a rogue CA 12 // collision attack (see "MD5 considered harmful today: Creating a rogue CA
13 // certificate" at http://www.win.tue.nl/hashclash/rogue-ca/). 13 // certificate" at http://www.win.tue.nl/hashclash/rogue-ca/).
14 14
15 namespace net { 15 namespace net {
16 16
17 enum ConnectionType { 17 enum ConnectionType {
18 CONNECTION_ANY = 0, // Any connection (SSL, HTTP, SPDY, etc) 18 CONNECTION_ANY = 0, // Any connection (SSL, HTTP, SPDY, etc)
19 CONNECTION_SSL = 1, // An SSL connection 19 CONNECTION_SSL = 1, // An SSL connection
20 // 2 - Reserved - Was CONNECTION_SSL_MD5 20 // 2 - Reserved - Was CONNECTION_SSL_MD5
21 // 3 - Reserved - Was CONNECTION_SSL_MD2 21 // 3 - Reserved - Was CONNECTION_SSL_MD2
22 // 4 - Reserved - Was CONNECTION_SSL_MD4 22 // 4 - Reserved - Was CONNECTION_SSL_MD4
23 // 5 - Reserved - Was CONNECTION_SSL_MD5_CA 23 // 5 - Reserved - Was CONNECTION_SSL_MD5_CA
24 // 6 - Reserved - Was CONNECTION_SSL_MD2_CA 24 // 6 - Reserved - Was CONNECTION_SSL_MD2_CA
25 CONNECTION_HTTP = 7, // An HTTP connection 25 CONNECTION_HTTP = 7, // An HTTP connection
26 CONNECTION_SPDY = 8, // A SPDY connection 26 CONNECTION_SPDY = 8, // A SPDY connection
27 CONNECTION_SSL_SSL2 = 9, // An SSL connection that uses SSL 2.0 27 CONNECTION_SSL_SSL2 = 9, // An SSL connection that uses SSL 2.0
28 CONNECTION_SSL_SSL3 = 10, // An SSL connection that uses SSL 3.0 28 CONNECTION_SSL_SSL3 = 10, // An SSL connection that uses SSL 3.0
29 CONNECTION_SSL_TLS1 = 11, // An SSL connection that uses TLS 1.0 29 CONNECTION_SSL_TLS1 = 11, // An SSL connection that uses TLS 1.0
30 CONNECTION_SSL_TLS1_1 = 12, // An SSL connection that uses TLS 1.1 30 CONNECTION_SSL_TLS1_1 = 12, // An SSL connection that uses TLS 1.1
31 CONNECTION_SSL_TLS1_2 = 13, // An SSL connection that uses TLS 1.2 31 CONNECTION_SSL_TLS1_2 = 13, // An SSL connection that uses TLS 1.2
32 NUM_OF_CONNECTION_TYPES 32 NUM_OF_CONNECTION_TYPES
33 }; 33 };
34 34
35 // Update the connection type histograms. |type| is the connection type. 35 // Update the connection type histograms. |type| is the connection type.
36 void UpdateConnectionTypeHistograms(ConnectionType type); 36 void UpdateConnectionTypeHistograms(ConnectionType type);
37 37
38 } // namespace net 38 } // namespace net
39 39
40 #endif // NET_BASE_CONNECTION_TYPE_HISTOGRAMS_H_ 40 #endif // NET_BASE_CONNECTION_TYPE_HISTOGRAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698