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

Unified Diff: net/socket/tcp_listen_socket.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket/tcp_client_socket_unittest.cc ('k') | net/socket/tcp_listen_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/tcp_listen_socket.h
diff --git a/net/socket/tcp_listen_socket.h b/net/socket/tcp_listen_socket.h
deleted file mode 100644
index 01a08a1742429bf5eb6fdc678bd2b979cbbac743..0000000000000000000000000000000000000000
--- a/net/socket/tcp_listen_socket.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_SOCKET_TCP_LISTEN_SOCKET_H_
-#define NET_SOCKET_TCP_LISTEN_SOCKET_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "net/base/net_export.h"
-#include "net/socket/socket_descriptor.h"
-#include "net/socket/stream_listen_socket.h"
-
-namespace net {
-
-// Implements a TCP socket.
-class NET_EXPORT TCPListenSocket : public StreamListenSocket {
- public:
- ~TCPListenSocket() override;
- // Listen on port for the specified IP address. Use 127.0.0.1 to only
- // accept local connections.
- static scoped_ptr<TCPListenSocket> CreateAndListen(
- const std::string& ip,
- uint16 port,
- StreamListenSocket::Delegate* del);
-
- // Get raw TCP socket descriptor bound to ip:port.
- static SocketDescriptor CreateAndBind(const std::string& ip, uint16 port);
-
- // Get raw TCP socket descriptor bound to ip and return port it is bound to.
- static SocketDescriptor CreateAndBindAnyPort(const std::string& ip,
- uint16* port);
-
- protected:
- TCPListenSocket(SocketDescriptor s, StreamListenSocket::Delegate* del);
-
- // Implements StreamListenSocket::Accept.
- void Accept() override;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(TCPListenSocket);
-};
-
-} // namespace net
-
-#endif // NET_SOCKET_TCP_LISTEN_SOCKET_H_
« no previous file with comments | « net/socket/tcp_client_socket_unittest.cc ('k') | net/socket/tcp_listen_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698