| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 NET_SOCKET_UDP_CLIENT_SOCKET_H_ | 5 #ifndef NET_SOCKET_UDP_CLIENT_SOCKET_H_ |
| 6 #define NET_SOCKET_UDP_CLIENT_SOCKET_H_ | 6 #define NET_SOCKET_UDP_CLIENT_SOCKET_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
| 12 #include "net/base/rand_callback.h" | 12 #include "net/base/rand_callback.h" |
| 13 #include "net/udp/datagram_client_socket.h" | 13 #include "net/socket/datagram_client_socket.h" |
| 14 #include "net/udp/udp_socket.h" | 14 #include "net/socket/udp_socket.h" |
| 15 | 15 |
| 16 namespace net { | 16 namespace net { |
| 17 | 17 |
| 18 class NetLog; | 18 class NetLog; |
| 19 struct NetLogSource; | 19 struct NetLogSource; |
| 20 | 20 |
| 21 // A client socket that uses UDP as the transport layer. | 21 // A client socket that uses UDP as the transport layer. |
| 22 class NET_EXPORT_PRIVATE UDPClientSocket : public DatagramClientSocket { | 22 class NET_EXPORT_PRIVATE UDPClientSocket : public DatagramClientSocket { |
| 23 public: | 23 public: |
| 24 UDPClientSocket(DatagramSocket::BindType bind_type, | 24 UDPClientSocket(DatagramSocket::BindType bind_type, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 52 // before other calls. | 52 // before other calls. |
| 53 private: | 53 private: |
| 54 UDPSocket socket_; | 54 UDPSocket socket_; |
| 55 NetworkChangeNotifier::NetworkHandle network_; | 55 NetworkChangeNotifier::NetworkHandle network_; |
| 56 DISALLOW_COPY_AND_ASSIGN(UDPClientSocket); | 56 DISALLOW_COPY_AND_ASSIGN(UDPClientSocket); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace net | 59 } // namespace net |
| 60 | 60 |
| 61 #endif // NET_SOCKET_UDP_CLIENT_SOCKET_H_ | 61 #endif // NET_SOCKET_UDP_CLIENT_SOCKET_H_ |
| OLD | NEW |