summaryrefslogtreecommitdiff
path: root/net/socket/tcp_socket_posix.h
diff options
context:
space:
mode:
authorCronet Mainline Eng <cronet-mainline-eng+copybara@google.com>2023-04-17 14:36:25 -0800
committerPatrick Rohr <prohr@google.com>2023-04-17 15:41:30 -0700
commit41cb724250484f326b0bbd5f8b955eb37b3b83c6 (patch)
treecb7b2cbe08b2c5305a56b31649359f8141edd198 /net/socket/tcp_socket_posix.h
parentc175721cfcc03e339122be17d569239df9762b2b (diff)
downloadcronet-41cb724250484f326b0bbd5f8b955eb37b3b83c6.tar.gz
Import Cronet version 114.0.5709.3
Project import generated by Copybara. FolderOrigin-RevId: /tmp/copybara-origin/src Test: none Change-Id: I263aa6b692a17ac2471b98b6e662b26dd1327c9c
Diffstat (limited to 'net/socket/tcp_socket_posix.h')
-rw-r--r--net/socket/tcp_socket_posix.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/socket/tcp_socket_posix.h b/net/socket/tcp_socket_posix.h
index 5cd967010..b1798a049 100644
--- a/net/socket/tcp_socket_posix.h
+++ b/net/socket/tcp_socket_posix.h
@@ -9,7 +9,7 @@
#include <memory>
-#include "base/callback.h"
+#include "base/functional/callback.h"
#include "net/base/address_family.h"
#include "net/base/completion_once_callback.h"
#include "net/base/net_export.h"
@@ -43,6 +43,10 @@ class NET_EXPORT TCPSocketPosix {
NetLog* net_log,
const NetLogSource& source);
+ TCPSocketPosix(
+ std::unique_ptr<SocketPerformanceWatcher> socket_performance_watcher,
+ NetLogWithSource net_log_source);
+
TCPSocketPosix(const TCPSocketPosix&) = delete;
TCPSocketPosix& operator=(const TCPSocketPosix&) = delete;
@@ -120,6 +124,7 @@ class NET_EXPORT TCPSocketPosix {
int SetSendBufferSize(int32_t size);
bool SetKeepAlive(bool enable, int delay);
bool SetNoDelay(bool no_delay);
+ int SetIPv6Only(bool ipv6_only);
// Gets the estimated RTT. Returns false if the RTT is
// unavailable. May also return false when estimated RTT is 0.