From 9b5614aec311bc0d04416b1fa279e496cca84714 Mon Sep 17 00:00:00 2001 From: "jar@chromium.org" Date: Wed, 25 Aug 2010 20:29:45 +0000 Subject: Gather preconnection use vs waste statistics I now gather statistics only in the transport socket classes TcpClientSocket*. All other socket classes forward significant data (that they are used in a speculation) to their transport class, where this data is stored, and then dumped when the TCP socket is closed. This CL also repaired a slight miscount in bytes read and written on Windows, as error codes were mistakenly accumulated as byte counts. This CL repaired a significant undercounting in linux/mac via StatsCounter (the logging counter appears correct). Libjingle support is minimal (NOTREACHED), but I don't know that there are subresources that will be speculatively preconnected from that class (and it is less obvious how the class uses underlying sockets, if at all). BUG=42694 r=willchan Review URL: http://codereview.chromium.org/3163033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57377 0039d316-1c4b-4281-b951-d872f2087c98 --- net/socket/ssl_client_socket_win.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'net/socket/ssl_client_socket_win.h') diff --git a/net/socket/ssl_client_socket_win.h b/net/socket/ssl_client_socket_win.h index a44dca7..44a5374 100644 --- a/net/socket/ssl_client_socket_win.h +++ b/net/socket/ssl_client_socket_win.h @@ -51,6 +51,8 @@ class SSLClientSocketWin : public SSLClientSocket { virtual bool IsConnectedAndIdle() const; virtual int GetPeerAddress(AddressList* address) const; virtual const BoundNetLog& NetLog() const { return net_log_; } + virtual void SetSubresourceSpeculation(); + virtual void SetOmniboxSpeculation(); // Socket methods: virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); -- cgit v1.1