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

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

Issue 6930014: Rename ClientSocket to StreamSocket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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
« no previous file with comments | « net/socket/tcp_server_socket_unittest.cc ('k') | net/socket/tcp_server_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) 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_SERVER_SOCKET_WIN_H_ 5 #ifndef NET_SOCKET_TCP_SERVER_SOCKET_WIN_H_
6 #define NET_SOCKET_TCP_SERVER_SOCKET_WIN_H_ 6 #define NET_SOCKET_TCP_SERVER_SOCKET_WIN_H_
7 7
8 #include <winsock2.h> 8 #include <winsock2.h>
9 9
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 11 matching lines...) Expand all
22 public base::NonThreadSafe, 22 public base::NonThreadSafe,
23 public base::win::ObjectWatcher::Delegate { 23 public base::win::ObjectWatcher::Delegate {
24 public: 24 public:
25 TCPServerSocketWin(net::NetLog* net_log, 25 TCPServerSocketWin(net::NetLog* net_log,
26 const net::NetLog::Source& source); 26 const net::NetLog::Source& source);
27 ~TCPServerSocketWin(); 27 ~TCPServerSocketWin();
28 28
29 // net::ServerSocket implementation. 29 // net::ServerSocket implementation.
30 virtual int Listen(const net::IPEndPoint& address, int backlog); 30 virtual int Listen(const net::IPEndPoint& address, int backlog);
31 virtual int GetLocalAddress(IPEndPoint* address) const; 31 virtual int GetLocalAddress(IPEndPoint* address) const;
32 virtual int Accept(scoped_ptr<ClientSocket>* socket, 32 virtual int Accept(scoped_ptr<StreamSocket>* socket,
33 CompletionCallback* callback); 33 CompletionCallback* callback);
34 34
35 // base::ObjectWatcher::Delegate implementation. 35 // base::ObjectWatcher::Delegate implementation.
36 virtual void OnObjectSignaled(HANDLE object); 36 virtual void OnObjectSignaled(HANDLE object);
37 37
38 private: 38 private:
39 int AcceptInternal(scoped_ptr<ClientSocket>* socket); 39 int AcceptInternal(scoped_ptr<StreamSocket>* socket);
40 void Close(); 40 void Close();
41 41
42 SOCKET socket_; 42 SOCKET socket_;
43 HANDLE socket_event_; 43 HANDLE socket_event_;
44 44
45 base::win::ObjectWatcher accept_watcher_; 45 base::win::ObjectWatcher accept_watcher_;
46 46
47 scoped_ptr<ClientSocket>* accept_socket_; 47 scoped_ptr<StreamSocket>* accept_socket_;
48 CompletionCallback* accept_callback_; 48 CompletionCallback* accept_callback_;
49 49
50 BoundNetLog net_log_; 50 BoundNetLog net_log_;
51 }; 51 };
52 52
53 } // namespace net 53 } // namespace net
54 54
55 #endif // NET_SOCKET_TCP_SERVER_SOCKET_WIN_H_ 55 #endif // NET_SOCKET_TCP_SERVER_SOCKET_WIN_H_
OLDNEW
« no previous file with comments | « net/socket/tcp_server_socket_unittest.cc ('k') | net/socket/tcp_server_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698