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

Unified Diff: net/socket/tcp_server_socket_libevent.h

Issue 22861033: Move server socket functionality from TCPServerSocket into TCPSocket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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_server_socket.cc ('k') | net/socket/tcp_server_socket_libevent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/tcp_server_socket_libevent.h
diff --git a/net/socket/tcp_server_socket_libevent.h b/net/socket/tcp_server_socket_libevent.h
deleted file mode 100644
index fe69472a6534a1bef066dc107ac07bc4423164b0..0000000000000000000000000000000000000000
--- a/net/socket/tcp_server_socket_libevent.h
+++ /dev/null
@@ -1,55 +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_TCP_SERVER_SOCKET_LIBEVENT_H_
-#define NET_SOCKET_TCP_SERVER_SOCKET_LIBEVENT_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_loop.h"
-#include "base/threading/non_thread_safe.h"
-#include "net/base/completion_callback.h"
-#include "net/base/net_log.h"
-#include "net/socket/server_socket.h"
-
-namespace net {
-
-class IPEndPoint;
-
-class NET_EXPORT_PRIVATE TCPServerSocketLibevent :
- public ServerSocket,
- public base::NonThreadSafe,
- public base::MessageLoopForIO::Watcher {
- public:
- TCPServerSocketLibevent(net::NetLog* net_log,
- const net::NetLog::Source& source);
- virtual ~TCPServerSocketLibevent();
-
- // net::ServerSocket implementation.
- virtual int Listen(const net::IPEndPoint& address, int backlog) OVERRIDE;
- virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
- virtual int Accept(scoped_ptr<StreamSocket>* socket,
- const CompletionCallback& callback) OVERRIDE;
-
- // MessageLoopForIO::Watcher implementation.
- virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE;
- virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE;
-
- private:
- int SetSocketOptions();
- int AcceptInternal(scoped_ptr<StreamSocket>* socket);
- void Close();
-
- int socket_;
-
- base::MessageLoopForIO::FileDescriptorWatcher accept_socket_watcher_;
-
- scoped_ptr<StreamSocket>* accept_socket_;
- CompletionCallback accept_callback_;
-
- BoundNetLog net_log_;
-};
-
-} // namespace net
-
-#endif // NET_SOCKET_TCP_SERVER_SOCKET_LIBEVENT_H_
« no previous file with comments | « net/socket/tcp_server_socket.cc ('k') | net/socket/tcp_server_socket_libevent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698