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

Side by Side Diff: net/socket/tcp_client_socket_win.h

Issue 4039003: Add experimental option for TCP FastOpen.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « net/socket/tcp_client_socket_pool_unittest.cc ('k') | net/socket/tcp_client_socket_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_ 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_
6 #define NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_ 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <winsock2.h> 9 #include <winsock2.h>
10 10
(...skipping 22 matching lines...) Expand all
33 // ClientSocket methods: 33 // ClientSocket methods:
34 virtual int Connect(CompletionCallback* callback); 34 virtual int Connect(CompletionCallback* callback);
35 virtual void Disconnect(); 35 virtual void Disconnect();
36 virtual bool IsConnected() const; 36 virtual bool IsConnected() const;
37 virtual bool IsConnectedAndIdle() const; 37 virtual bool IsConnectedAndIdle() const;
38 virtual int GetPeerAddress(AddressList* address) const; 38 virtual int GetPeerAddress(AddressList* address) const;
39 virtual const BoundNetLog& NetLog() const { return net_log_; } 39 virtual const BoundNetLog& NetLog() const { return net_log_; }
40 virtual void SetSubresourceSpeculation(); 40 virtual void SetSubresourceSpeculation();
41 virtual void SetOmniboxSpeculation(); 41 virtual void SetOmniboxSpeculation();
42 virtual bool WasEverUsed() const; 42 virtual bool WasEverUsed() const;
43 virtual bool UsingTCPFastOpen() const;
43 44
44 // Socket methods: 45 // Socket methods:
45 // Multiple outstanding requests are not supported. 46 // Multiple outstanding requests are not supported.
46 // Full duplex mode (reading and writing at the same time) is supported 47 // Full duplex mode (reading and writing at the same time) is supported
47 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 48 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
48 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); 49 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback);
49 50
50 virtual bool SetReceiveBufferSize(int32 size); 51 virtual bool SetReceiveBufferSize(int32 size);
51 virtual bool SetSendBufferSize(int32 size); 52 virtual bool SetSendBufferSize(int32 size);
52 53
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // Record of connectivity and transmissions, for use in speculative connection 121 // Record of connectivity and transmissions, for use in speculative connection
121 // histograms. 122 // histograms.
122 UseHistory use_history_; 123 UseHistory use_history_;
123 124
124 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketWin); 125 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketWin);
125 }; 126 };
126 127
127 } // namespace net 128 } // namespace net
128 129
129 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_ 130 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_
OLDNEW
« no previous file with comments | « net/socket/tcp_client_socket_pool_unittest.cc ('k') | net/socket/tcp_client_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698