Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: net/socket/tcp_socket.cc

Issue 348803003: Refactor tcp socket and unix domain socket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert the behavior change of calling RecordFastOpenStatus() Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698