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

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

Issue 7468025: 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
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,
35 NUM_CONNECTION_TYPES, 36 NUM_CONNECTION_TYPES,
36 }; 37 };
37 38
38 enum WireProtocolType { 39 enum WireProtocolType {
39 WIRE_PROTOCOL_WEBSOCKET, 40 WIRE_PROTOCOL_WEBSOCKET,
40 WIRE_PROTOCOL_SPDY, 41 WIRE_PROTOCOL_SPDY,
41 NUM_WIRE_PROTOCOL_TYPES, 42 NUM_WIRE_PROTOCOL_TYPES,
42 }; 43 };
43 44
44 explicit SocketStreamMetrics(const GURL& url); 45 explicit SocketStreamMetrics(const GURL& url);
(...skipping 16 matching lines...) Expand all
61 int received_counts_; 62 int received_counts_;
62 int sent_bytes_; 63 int sent_bytes_;
63 int sent_counts_; 64 int sent_counts_;
64 65
65 DISALLOW_COPY_AND_ASSIGN(SocketStreamMetrics); 66 DISALLOW_COPY_AND_ASSIGN(SocketStreamMetrics);
66 }; 67 };
67 68
68 } // namespace net 69 } // namespace net
69 70
70 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_METRICS_H_ 71 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_METRICS_H_
OLDNEW
« net/socket_stream/socket_stream.cc ('K') | « net/socket_stream/socket_stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698