From e86df8dcc1b9ad3eb30c46d5ba6de9fe66991801 Mon Sep 17 00:00:00 2001 From: "mmenke@chromium.org" Date: Sat, 30 Mar 2013 13:18:28 +0000 Subject: Remove experimental code to pick the "warmest" socket (based on age and bytes received) in favor of older algorithm to pick the most recently used socket. Tests showed no real performance difference, so defaulting to the older, simpler, and more intuitive algorithm. This is basically a revert of https://codereview.chromium.org/7251004 TBR=sergeyu@chromium.org BUG=222090 Review URL: https://codereview.chromium.org/12886034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191507 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/renderer_host/p2p/socket_host_test_utils.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'content') diff --git a/content/browser/renderer_host/p2p/socket_host_test_utils.h b/content/browser/renderer_host/p2p/socket_host_test_utils.h index c3deea8..86c7414 100644 --- a/content/browser/renderer_host/p2p/socket_host_test_utils.h +++ b/content/browser/renderer_host/p2p/socket_host_test_utils.h @@ -73,8 +73,6 @@ class FakeSocket : public net::StreamSocket { virtual void SetOmniboxSpeculation() OVERRIDE; virtual bool WasEverUsed() const OVERRIDE; virtual bool UsingTCPFastOpen() const OVERRIDE; - virtual int64 NumBytesRead() const OVERRIDE; - virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; virtual bool WasNpnNegotiated() const OVERRIDE; virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; virtual bool GetSSLInfo(net::SSLInfo* ssl_info) OVERRIDE; @@ -213,14 +211,6 @@ bool FakeSocket::UsingTCPFastOpen() const { return false; } -int64 FakeSocket::NumBytesRead() const { - return -1; -} - -base::TimeDelta FakeSocket::GetConnectTimeMicros() const { - return base::TimeDelta::FromMicroseconds(-1); -} - bool FakeSocket::WasNpnNegotiated() const { return false; } -- cgit v1.1