| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "net/socket/tcp_client_socket.h" | 5 #include "net/socket/tcp_client_socket.h" |
| 6 | 6 |
| 7 namespace net { | 7 namespace net { |
| 8 | 8 |
| 9 static bool g_tcp_fastopen_enabled = false; | 9 static bool g_tcp_fastopen_enabled = false; |
| 10 | 10 |
| 11 void set_tcp_fastopen_enabled(bool value) { | 11 void set_tcp_fastopen_enabled(bool value) { |
| 12 g_tcp_fastopen_enabled = value; | 12 g_tcp_fastopen_enabled = value; |
| 13 } | 13 } |
| 14 | 14 |
| 15 bool is_tcp_fastopen_enabled() { | 15 bool is_tcp_fastopen_enabled() { |
| 16 return g_tcp_fastopen_enabled; | 16 return g_tcp_fastopen_enabled; |
| 17 } | 17 } |
| 18 | 18 |
| 19 } // namespace net | 19 } // namespace net |
| OLD | NEW |