| OLD | NEW | 
|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_socket.h" | 5 #include "net/socket/tcp_socket.h" | 
| 6 | 6 | 
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" | 
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" | 
|  | 9 #include "base/location.h" | 
| 9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" | 
| 10 #include "base/threading/worker_pool.h" | 11 #include "base/threading/worker_pool.h" | 
| 11 | 12 | 
| 12 namespace net { | 13 namespace net { | 
| 13 | 14 | 
| 14 namespace { | 15 namespace { | 
| 15 | 16 | 
| 16 bool g_tcp_fastopen_enabled = false; | 17 bool g_tcp_fastopen_enabled = false; | 
| 17 | 18 | 
| 18 #if defined(OS_LINUX) || defined(OS_ANDROID) | 19 #if defined(OS_LINUX) || defined(OS_ANDROID) | 
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 73   } else { | 74   } else { | 
| 74     g_tcp_fastopen_enabled = false; | 75     g_tcp_fastopen_enabled = false; | 
| 75   } | 76   } | 
| 76 } | 77 } | 
| 77 | 78 | 
| 78 bool IsTCPFastOpenEnabled() { | 79 bool IsTCPFastOpenEnabled() { | 
| 79   return g_tcp_fastopen_enabled; | 80   return g_tcp_fastopen_enabled; | 
| 80 } | 81 } | 
| 81 | 82 | 
| 82 }  // namespace net | 83 }  // namespace net | 
| OLD | NEW | 
|---|