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

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

Issue 7240021: net: Add NET_API for some linux-only files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_LIBEVENT_H_ 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_
6 #define NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/threading/non_thread_safe.h" 12 #include "base/threading/non_thread_safe.h"
13 #include "net/base/address_list.h" 13 #include "net/base/address_list.h"
14 #include "net/base/completion_callback.h" 14 #include "net/base/completion_callback.h"
15 #include "net/base/net_log.h" 15 #include "net/base/net_log.h"
16 #include "net/socket/stream_socket.h" 16 #include "net/socket/stream_socket.h"
17 17
18 namespace net { 18 namespace net {
19 19
20 class BoundNetLog; 20 class BoundNetLog;
21 21
22 // A client socket that uses TCP as the transport layer. 22 // A client socket that uses TCP as the transport layer.
23 class TCPClientSocketLibevent : public StreamSocket, base::NonThreadSafe { 23 class NET_TEST TCPClientSocketLibevent : public StreamSocket,
24 public base::NonThreadSafe {
24 public: 25 public:
25 // The IP address(es) and port number to connect to. The TCP socket will try 26 // The IP address(es) and port number to connect to. The TCP socket will try
26 // each IP address in the list until it succeeds in establishing a 27 // each IP address in the list until it succeeds in establishing a
27 // connection. 28 // connection.
28 TCPClientSocketLibevent(const AddressList& addresses, 29 TCPClientSocketLibevent(const AddressList& addresses,
29 net::NetLog* net_log, 30 net::NetLog* net_log,
30 const net::NetLog::Source& source); 31 const net::NetLog::Source& source);
31 32
32 virtual ~TCPClientSocketLibevent(); 33 virtual ~TCPClientSocketLibevent();
33 34
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 195
195 // True when TCP FastOpen is in use and we have done the connect. 196 // True when TCP FastOpen is in use and we have done the connect.
196 bool tcp_fastopen_connected_; 197 bool tcp_fastopen_connected_;
197 198
198 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent); 199 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent);
199 }; 200 };
200 201
201 } // namespace net 202 } // namespace net
202 203
203 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ 204 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698