| 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_UDP_DATAGRAM_CLIENT_SOCKET_H_ | 5 #ifndef NET_SOCKET_DATAGRAM_CLIENT_SOCKET_H_ |
| 6 #define NET_UDP_DATAGRAM_CLIENT_SOCKET_H_ | 6 #define NET_SOCKET_DATAGRAM_CLIENT_SOCKET_H_ |
| 7 | 7 |
| 8 #include "net/base/net_export.h" | 8 #include "net/base/net_export.h" |
| 9 #include "net/base/network_change_notifier.h" | 9 #include "net/base/network_change_notifier.h" |
| 10 #include "net/socket/datagram_socket.h" |
| 10 #include "net/socket/socket.h" | 11 #include "net/socket/socket.h" |
| 11 #include "net/udp/datagram_socket.h" | |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 | 14 |
| 15 class IPEndPoint; | 15 class IPEndPoint; |
| 16 | 16 |
| 17 class NET_EXPORT_PRIVATE DatagramClientSocket : public DatagramSocket, | 17 class NET_EXPORT_PRIVATE DatagramClientSocket : public DatagramSocket, |
| 18 public Socket { | 18 public Socket { |
| 19 public: | 19 public: |
| 20 ~DatagramClientSocket() override {} | 20 ~DatagramClientSocket() override {} |
| 21 | 21 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 38 // Returns the network that either ConnectUsingNetwork() or | 38 // Returns the network that either ConnectUsingNetwork() or |
| 39 // ConnectUsingDefaultNetwork() bound this socket to. Returns | 39 // ConnectUsingDefaultNetwork() bound this socket to. Returns |
| 40 // NetworkChangeNotifier::kInvalidNetworkHandle if not explicitly bound via | 40 // NetworkChangeNotifier::kInvalidNetworkHandle if not explicitly bound via |
| 41 // ConnectUsingNetwork() or ConnectUsingDefaultNetwork(). | 41 // ConnectUsingNetwork() or ConnectUsingDefaultNetwork(). |
| 42 virtual NetworkChangeNotifier::NetworkHandle GetBoundNetwork() const = 0; | 42 virtual NetworkChangeNotifier::NetworkHandle GetBoundNetwork() const = 0; |
| 43 | 43 |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace net | 46 } // namespace net |
| 47 | 47 |
| 48 #endif // NET_UDP_DATAGRAM_CLIENT_SOCKET_H_ | 48 #endif // NET_SOCKET_DATAGRAM_CLIENT_SOCKET_H_ |
| OLD | NEW |