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

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

Issue 296053012: Replace StreamListenSocket with StreamSocket in HttpServer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use base::StringPiece in some places not to copy data. Created 6 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
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_H_ 5 #ifndef NET_SOCKET_TCP_SERVER_SOCKET_H_
6 #define NET_SOCKET_TCP_SERVER_SOCKET_H_ 6 #define NET_SOCKET_TCP_SERVER_SOCKET_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 30 matching lines...) Expand all
41 41
42 TCPSocket socket_; 42 TCPSocket socket_;
43 43
44 scoped_ptr<TCPSocket> accepted_socket_; 44 scoped_ptr<TCPSocket> accepted_socket_;
45 IPEndPoint accepted_address_; 45 IPEndPoint accepted_address_;
46 bool pending_accept_; 46 bool pending_accept_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(TCPServerSocket); 48 DISALLOW_COPY_AND_ASSIGN(TCPServerSocket);
49 }; 49 };
50 50
51 class TCPServerSocketFactory : public ServerSocketFactory {
52 public:
53 TCPServerSocketFactory();
54
55 private:
56 // ServerSocketFactory.
57 virtual scoped_ptr<ServerSocket> Create() const OVERRIDE;
58
59 DISALLOW_COPY_AND_ASSIGN(TCPServerSocketFactory);
60 };
61
51 } // namespace net 62 } // namespace net
52 63
53 #endif // NET_SOCKET_TCP_SERVER_SOCKET_H_ 64 #endif // NET_SOCKET_TCP_SERVER_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698