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

Unified Diff: mojo/services/network/tcp_server_socket_impl.h

Issue 1873463003: Remove mojo network service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « mojo/services/network/tcp_connected_socket_impl.cc ('k') | mojo/services/network/tcp_server_socket_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/network/tcp_server_socket_impl.h
diff --git a/mojo/services/network/tcp_server_socket_impl.h b/mojo/services/network/tcp_server_socket_impl.h
deleted file mode 100644
index 2078cecfe7513bf305d49bb132564d0d37e17426..0000000000000000000000000000000000000000
--- a/mojo/services/network/tcp_server_socket_impl.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2014 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 MOJO_SERVICES_NETWORK_TCP_SERVER_SOCKET_H_
-#define MOJO_SERVICES_NETWORK_TCP_SERVER_SOCKET_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
-#include "mojo/services/network/public/interfaces/tcp_server_socket.mojom.h"
-#include "mojo/shell/public/cpp/message_loop_ref.h"
-#include "net/base/ip_endpoint.h"
-#include "net/socket/tcp_socket.h"
-
-namespace mojo {
-
-class TCPServerSocketImpl : public TCPServerSocket {
- public:
- typedef Callback<void(NetworkErrorPtr, NetAddressPtr)> AcceptCallback;
-
- // Passed ownership of a socket already in listening mode.
- TCPServerSocketImpl(scoped_ptr<net::TCPSocket> socket,
- scoped_ptr<mojo::MessageLoopRef> app_refcount,
- InterfaceRequest<TCPServerSocket> request);
- ~TCPServerSocketImpl() override;
-
- // TCPServerSocket.
- void Accept(ScopedDataPipeConsumerHandle send_stream,
- ScopedDataPipeProducerHandle receive_stream,
- InterfaceRequest<TCPConnectedSocket> client_socket,
- const AcceptCallback& callback) override;
-
- private:
- void OnAcceptCompleted(int result);
-
- scoped_ptr<net::TCPSocket> socket_;
-
- // Non-null when accept is pending.
- AcceptCallback pending_callback_;
-
- // The parameters associated with the pending Accept call.
- ScopedDataPipeConsumerHandle pending_send_stream_;
- ScopedDataPipeProducerHandle pending_receive_stream_;
- InterfaceRequest<TCPConnectedSocket> pending_client_socket_;
-
- // These are written to by net::TCPSocket when Accept is completed.
- scoped_ptr<net::TCPSocket> accepted_socket_;
- net::IPEndPoint accepted_address_;
-
- scoped_ptr<mojo::MessageLoopRef> app_refcount_;
- StrongBinding<TCPServerSocket> binding_;
-};
-
-} // namespace mojo
-
-#endif // MOJO_SERVICES_NETWORK_TCP_SERVER_SOCKET_H_
« no previous file with comments | « mojo/services/network/tcp_connected_socket_impl.cc ('k') | mojo/services/network/tcp_server_socket_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698