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

Unified Diff: net/socket/server_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/nss_ssl_util.cc ('k') | net/socket/server_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/server_socket.h
diff --git a/net/socket/server_socket.h b/net/socket/server_socket.h
deleted file mode 100644
index 828b399c7a86dc7966f9c5acc6da47d99613899d..0000000000000000000000000000000000000000
--- a/net/socket/server_socket.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2011 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_SERVER_SOCKET_H_
-#define NET_SOCKET_SERVER_SOCKET_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-#include "net/base/completion_callback.h"
-#include "net/base/net_export.h"
-
-namespace net {
-
-class IPEndPoint;
-class StreamSocket;
-
-class NET_EXPORT ServerSocket {
- public:
- ServerSocket();
- virtual ~ServerSocket();
-
- // Binds the socket and starts listening. Destroys the socket to stop
- // listening.
- virtual int Listen(const IPEndPoint& address, int backlog) = 0;
-
- // Binds the socket with address and port, and starts listening. It expects
- // a valid IPv4 or IPv6 address. Otherwise, it returns ERR_ADDRESS_INVALID.
- // Subclasses may override this function if |address_string| is in a different
- // format, for example, unix domain socket path.
- virtual int ListenWithAddressAndPort(const std::string& address_string,
- uint16 port,
- int backlog);
-
- // Gets current address the socket is bound to.
- virtual int GetLocalAddress(IPEndPoint* address) const = 0;
-
- // Accepts connection. Callback is called when new connection is
- // accepted.
- virtual int Accept(scoped_ptr<StreamSocket>* socket,
- const CompletionCallback& callback) = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(ServerSocket);
-};
-
-} // namespace net
-
-#endif // NET_SOCKET_SERVER_SOCKET_H_
« no previous file with comments | « net/socket/nss_ssl_util.cc ('k') | net/socket/server_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698