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

Side by Side Diff: mojo/services/network/tcp_bound_socket_impl.h

Issue 789243002: Restructure public side of network service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SERVICES_NETWORK_TCP_BOUND_SOCKET_H_ 5 #ifndef MOJO_SERVICES_NETWORK_TCP_BOUND_SOCKET_H_
6 #define MOJO_SERVICES_NETWORK_TCP_BOUND_SOCKET_H_ 6 #define MOJO_SERVICES_NETWORK_TCP_BOUND_SOCKET_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "mojo/public/cpp/bindings/interface_impl.h" 9 #include "mojo/public/cpp/bindings/interface_impl.h"
10 #include "mojo/services/public/interfaces/network/tcp_bound_socket.mojom.h" 10 #include "mojo/services/network/public/interfaces/tcp_bound_socket.mojom.h"
11 #include "net/socket/tcp_socket.h" 11 #include "net/socket/tcp_socket.h"
12 12
13 namespace mojo { 13 namespace mojo {
14 14
15 class TCPBoundSocketImpl : public InterfaceImpl<TCPBoundSocket> { 15 class TCPBoundSocketImpl : public InterfaceImpl<TCPBoundSocket> {
16 public: 16 public:
17 TCPBoundSocketImpl(); 17 TCPBoundSocketImpl();
18 ~TCPBoundSocketImpl() override; 18 ~TCPBoundSocketImpl() override;
19 19
20 // Does the actual binding. Returns a net error code. On net::OK, the bound 20 // Does the actual binding. Returns a net error code. On net::OK, the bound
(...skipping 22 matching lines...) Expand all
43 // Valid when waiting for a connect callback. 43 // Valid when waiting for a connect callback.
44 ScopedDataPipeConsumerHandle pending_connect_send_stream_; 44 ScopedDataPipeConsumerHandle pending_connect_send_stream_;
45 ScopedDataPipeProducerHandle pending_connect_receive_stream_; 45 ScopedDataPipeProducerHandle pending_connect_receive_stream_;
46 InterfaceRequest<TCPConnectedSocket> pending_connect_socket_; 46 InterfaceRequest<TCPConnectedSocket> pending_connect_socket_;
47 Callback<void(NetworkErrorPtr)> pending_connect_callback_; 47 Callback<void(NetworkErrorPtr)> pending_connect_callback_;
48 }; 48 };
49 49
50 } // namespace mojo 50 } // namespace mojo
51 51
52 #endif // MOJO_SERVICES_NETWORK_TCP_BOUND_SOCKET_H_ 52 #endif // MOJO_SERVICES_NETWORK_TCP_BOUND_SOCKET_H_
OLDNEW
« no previous file with comments | « mojo/services/network/public/interfaces/web_socket.mojom ('k') | mojo/services/network/tcp_connected_socket_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698