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

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

Issue 7489039: Revert 93860 - secure proxy support in websocket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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_stream/socket_stream.cc ('k') | net/socket_stream/socket_stream_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 // Collect metrics of SocketStream usage. 5 // Collect metrics of SocketStream usage.
6 // TODO(ukai): collect WebSocket specific metrics (e.g. handshake time, etc). 6 // TODO(ukai): collect WebSocket specific metrics (e.g. handshake time, etc).
7 7
8 #ifndef NET_SOCKET_STREAM_SOCKET_STREAM_METRICS_H_ 8 #ifndef NET_SOCKET_STREAM_SOCKET_STREAM_METRICS_H_
9 #define NET_SOCKET_STREAM_SOCKET_STREAM_METRICS_H_ 9 #define NET_SOCKET_STREAM_SOCKET_STREAM_METRICS_H_
10 #pragma once 10 #pragma once
(...skipping 14 matching lines...) Expand all
25 PROTOCOL_WEBSOCKET_SECURE, 25 PROTOCOL_WEBSOCKET_SECURE,
26 NUM_PROTOCOL_TYPES, 26 NUM_PROTOCOL_TYPES,
27 }; 27 };
28 28
29 enum ConnectionType { 29 enum ConnectionType {
30 CONNECTION_NONE, 30 CONNECTION_NONE,
31 ALL_CONNECTIONS, 31 ALL_CONNECTIONS,
32 TUNNEL_CONNECTION, 32 TUNNEL_CONNECTION,
33 SOCKS_CONNECTION, 33 SOCKS_CONNECTION,
34 SSL_CONNECTION, 34 SSL_CONNECTION,
35 SECURE_PROXY_CONNECTION,
36 NUM_CONNECTION_TYPES, 35 NUM_CONNECTION_TYPES,
37 }; 36 };
38 37
39 enum WireProtocolType { 38 enum WireProtocolType {
40 WIRE_PROTOCOL_WEBSOCKET, 39 WIRE_PROTOCOL_WEBSOCKET,
41 WIRE_PROTOCOL_SPDY, 40 WIRE_PROTOCOL_SPDY,
42 NUM_WIRE_PROTOCOL_TYPES, 41 NUM_WIRE_PROTOCOL_TYPES,
43 }; 42 };
44 43
45 explicit SocketStreamMetrics(const GURL& url); 44 explicit SocketStreamMetrics(const GURL& url);
(...skipping 16 matching lines...) Expand all
62 int received_counts_; 61 int received_counts_;
63 int sent_bytes_; 62 int sent_bytes_;
64 int sent_counts_; 63 int sent_counts_;
65 64
66 DISALLOW_COPY_AND_ASSIGN(SocketStreamMetrics); 65 DISALLOW_COPY_AND_ASSIGN(SocketStreamMetrics);
67 }; 66 };
68 67
69 } // namespace net 68 } // namespace net
70 69
71 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_METRICS_H_ 70 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_METRICS_H_
OLDNEW
« no previous file with comments | « net/socket_stream/socket_stream.cc ('k') | net/socket_stream/socket_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698