| 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_UDP_SOCKET_IMPL_H_ | 5 #ifndef MOJO_SERVICES_NETWORK_UDP_SOCKET_IMPL_H_ |
| 6 #define MOJO_SERVICES_NETWORK_UDP_SOCKET_IMPL_H_ | 6 #define MOJO_SERVICES_NETWORK_UDP_SOCKET_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "mojo/public/cpp/bindings/interface_impl.h" | |
| 13 #include "mojo/services/network/public/interfaces/udp_socket.mojom.h" | 12 #include "mojo/services/network/public/interfaces/udp_socket.mojom.h" |
| 14 #include "net/base/ip_endpoint.h" | 13 #include "net/base/ip_endpoint.h" |
| 15 #include "net/udp/udp_server_socket.h" | 14 #include "net/udp/udp_server_socket.h" |
| 15 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_impl.h" |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 class IOBuffer; | 18 class IOBuffer; |
| 19 class IOBufferWithSize; | 19 class IOBufferWithSize; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace mojo { | 22 namespace mojo { |
| 23 | 23 |
| 24 class UDPSocketImpl : public InterfaceImpl<UDPSocket> { | 24 class UDPSocketImpl : public InterfaceImpl<UDPSocket> { |
| 25 public: | 25 public: |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 std::deque<PendingSendRequest*> pending_send_requests_; | 93 std::deque<PendingSendRequest*> pending_send_requests_; |
| 94 // The maximum size of the |pending_send_requests_| queue. | 94 // The maximum size of the |pending_send_requests_| queue. |
| 95 size_t max_pending_send_requests_; | 95 size_t max_pending_send_requests_; |
| 96 | 96 |
| 97 DISALLOW_COPY_AND_ASSIGN(UDPSocketImpl); | 97 DISALLOW_COPY_AND_ASSIGN(UDPSocketImpl); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace mojo | 100 } // namespace mojo |
| 101 | 101 |
| 102 #endif // MOJO_SERVICES_NETWORK_UDP_SOCKET_IMPL_H_ | 102 #endif // MOJO_SERVICES_NETWORK_UDP_SOCKET_IMPL_H_ |
| OLD | NEW |