| OLD | NEW |
| 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/application/app_lifetime_helper.h" | 9 #include "mojo/application/public/cpp/app_lifetime_helper.h" |
| 10 #include "mojo/services/network/public/interfaces/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 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_impl.h" | 12 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_impl.h" |
| 13 | 13 |
| 14 namespace mojo { | 14 namespace mojo { |
| 15 | 15 |
| 16 class TCPBoundSocketImpl : public InterfaceImpl<TCPBoundSocket> { | 16 class TCPBoundSocketImpl : public InterfaceImpl<TCPBoundSocket> { |
| 17 public: | 17 public: |
| 18 explicit TCPBoundSocketImpl(scoped_ptr<mojo::AppRefCount> app_refcount); | 18 explicit TCPBoundSocketImpl(scoped_ptr<mojo::AppRefCount> app_refcount); |
| 19 ~TCPBoundSocketImpl() override; | 19 ~TCPBoundSocketImpl() override; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 45 ScopedDataPipeConsumerHandle pending_connect_send_stream_; | 45 ScopedDataPipeConsumerHandle pending_connect_send_stream_; |
| 46 ScopedDataPipeProducerHandle pending_connect_receive_stream_; | 46 ScopedDataPipeProducerHandle pending_connect_receive_stream_; |
| 47 InterfaceRequest<TCPConnectedSocket> pending_connect_socket_; | 47 InterfaceRequest<TCPConnectedSocket> pending_connect_socket_; |
| 48 Callback<void(NetworkErrorPtr)> pending_connect_callback_; | 48 Callback<void(NetworkErrorPtr)> pending_connect_callback_; |
| 49 scoped_ptr<mojo::AppRefCount> app_refcount_; | 49 scoped_ptr<mojo::AppRefCount> app_refcount_; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace mojo | 52 } // namespace mojo |
| 53 | 53 |
| 54 #endif // MOJO_SERVICES_NETWORK_TCP_BOUND_SOCKET_H_ | 54 #endif // MOJO_SERVICES_NETWORK_TCP_BOUND_SOCKET_H_ |
| OLD | NEW |