summaryrefslogtreecommitdiffstats
path: root/net/socket/tcp_client_socket.cc
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-26 18:29:29 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-26 18:29:29 +0000
commit7f7e9239652bbb552bd5ea62d9702edfcf86528c (patch)
tree1b64094581e7cf5f084bc456acf933b871eea4b6 /net/socket/tcp_client_socket.cc
parent35011c75172bd9085890021da04027925b09addd (diff)
downloadchromium_src-7f7e9239652bbb552bd5ea62d9702edfcf86528c.zip
chromium_src-7f7e9239652bbb552bd5ea62d9702edfcf86528c.tar.gz
chromium_src-7f7e9239652bbb552bd5ea62d9702edfcf86528c.tar.bz2
Add experimental option for TCP FastOpen.
Use chrome.exe --enable-tcp-fastopen BUG=none TEST=none yet Review URL: http://codereview.chromium.org/4039003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63913 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/tcp_client_socket.cc')
-rw-r--r--net/socket/tcp_client_socket.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/net/socket/tcp_client_socket.cc b/net/socket/tcp_client_socket.cc
new file mode 100644
index 0000000..d3d4e20
--- /dev/null
+++ b/net/socket/tcp_client_socket.cc
@@ -0,0 +1,19 @@
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/socket/tcp_client_socket.h"
+
+namespace net {
+
+static bool g_tcp_fastopen_enabled = false;
+
+void set_tcp_fastopen_enabled(bool value) {
+ g_tcp_fastopen_enabled = value;
+}
+
+bool is_tcp_fastopen_enabled() {
+ return g_tcp_fastopen_enabled;
+}
+
+} // namespace net