| Index: net/socket/tcp_socket_posix.h
|
| diff --git a/net/socket/tcp_socket_posix.h b/net/socket/tcp_socket_posix.h
|
| index de9487c35f795def09db86636633581a12eea86d..95f8349625d8674540cc866a412c5241f60766da 100644
|
| --- a/net/socket/tcp_socket_posix.h
|
| +++ b/net/socket/tcp_socket_posix.h
|
| @@ -13,6 +13,7 @@
|
| #include "net/base/address_family.h"
|
| #include "net/base/completion_callback.h"
|
| #include "net/base/net_export.h"
|
| +#include "net/base/socket_performance_watcher.h"
|
| #include "net/log/net_log.h"
|
|
|
| namespace net {
|
| @@ -24,7 +25,10 @@ class SocketPosix;
|
|
|
| class NET_EXPORT TCPSocketPosix {
|
| public:
|
| - TCPSocketPosix(NetLog* net_log, const NetLog::Source& source);
|
| + TCPSocketPosix(
|
| + scoped_ptr<SocketPerformanceWatcher> socket_performance_watcher,
|
| + NetLog* net_log,
|
| + const NetLog::Source& source);
|
| virtual ~TCPSocketPosix();
|
|
|
| int Open(AddressFamily family);
|
| @@ -190,12 +194,16 @@ class NET_EXPORT TCPSocketPosix {
|
| int buf_len,
|
| const CompletionCallback& callback);
|
|
|
| + void NotifySocketPerformanceWatcher() const;
|
| +
|
| // Called after the first read completes on a TCP FastOpen socket.
|
| void UpdateTCPFastOpenStatusAfterRead();
|
|
|
| scoped_ptr<SocketPosix> socket_;
|
| scoped_ptr<SocketPosix> accept_socket_;
|
|
|
| + scoped_ptr<SocketPerformanceWatcher> socket_performance_watcher_;
|
| +
|
| // Enables experimental TCP FastOpen option.
|
| bool use_tcp_fastopen_;
|
|
|
|
|