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

Unified Diff: mojo/services/network/tcp_bound_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
Index: mojo/services/network/tcp_bound_socket_impl.h
diff --git a/mojo/services/network/tcp_bound_socket_impl.h b/mojo/services/network/tcp_bound_socket_impl.h
deleted file mode 100644
index 8e4b2e8821b64e6d53dd668620c495dea0425fe0..0000000000000000000000000000000000000000
--- a/mojo/services/network/tcp_bound_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_BOUND_SOCKET_H_
-#define MOJO_SERVICES_NETWORK_TCP_BOUND_SOCKET_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
-#include "mojo/services/network/public/interfaces/tcp_bound_socket.mojom.h"
-#include "mojo/shell/public/cpp/message_loop_ref.h"
-#include "net/socket/tcp_socket.h"
-
-namespace mojo {
-
-class TCPBoundSocketImpl : public TCPBoundSocket {
- public:
- TCPBoundSocketImpl(scoped_ptr<mojo::MessageLoopRef> app_refcount,
- InterfaceRequest<TCPBoundSocket> request);
- ~TCPBoundSocketImpl() override;
-
- // Does the actual binding. Returns a net error code. On net::OK, the bound
- // socket will be ready to use and send back to the client. On failure, this
- // object should be destroyed and no longer used.
- int Bind(NetAddressPtr local_address);
-
- // Returns the local address associated with this socket. This should only
- // be called after Bind has succeeded.
- NetAddressPtr GetLocalAddress() const;
-
- // TCPBoundSocket.
- void StartListening(InterfaceRequest<TCPServerSocket> server,
- const Callback<void(NetworkErrorPtr)>& callback) override;
- void Connect(NetAddressPtr remote_address,
- ScopedDataPipeConsumerHandle send_stream,
- ScopedDataPipeProducerHandle receive_stream,
- InterfaceRequest<TCPConnectedSocket> client_socket,
- const Callback<void(NetworkErrorPtr)>& callback) override;
-
- private:
- void OnConnected(int result);
-
- scoped_ptr<net::TCPSocket> socket_;
-
- // Valid when waiting for a connect callback.
- ScopedDataPipeConsumerHandle pending_connect_send_stream_;
- ScopedDataPipeProducerHandle pending_connect_receive_stream_;
- InterfaceRequest<TCPConnectedSocket> pending_connect_socket_;
- Callback<void(NetworkErrorPtr)> pending_connect_callback_;
- scoped_ptr<mojo::MessageLoopRef> app_refcount_;
- StrongBinding<TCPBoundSocket> binding_;
-};
-
-} // namespace mojo
-
-#endif // MOJO_SERVICES_NETWORK_TCP_BOUND_SOCKET_H_
« no previous file with comments | « mojo/services/network/public/interfaces/web_socket_factory.mojom ('k') | mojo/services/network/tcp_bound_socket_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698