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

Unified Diff: net/udp/datagram_client_socket.h

Issue 2508593002: net: move udp directory into socket (Closed)
Patch Set: revert sys/socket.h change Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_simple_server_packet_writer.cc ('k') | net/udp/datagram_server_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/udp/datagram_client_socket.h
diff --git a/net/udp/datagram_client_socket.h b/net/udp/datagram_client_socket.h
deleted file mode 100644
index e8cf526248f77b2c5c879e4f5242535b97d64987..0000000000000000000000000000000000000000
--- a/net/udp/datagram_client_socket.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_UDP_DATAGRAM_CLIENT_SOCKET_H_
-#define NET_UDP_DATAGRAM_CLIENT_SOCKET_H_
-
-#include "net/base/net_export.h"
-#include "net/base/network_change_notifier.h"
-#include "net/socket/socket.h"
-#include "net/udp/datagram_socket.h"
-
-namespace net {
-
-class IPEndPoint;
-
-class NET_EXPORT_PRIVATE DatagramClientSocket : public DatagramSocket,
- public Socket {
- public:
- ~DatagramClientSocket() override {}
-
- // Initialize this socket as a client socket to server at |address|.
- // Returns a network error code.
- virtual int Connect(const IPEndPoint& address) = 0;
-
- // Binds this socket to |network| and initializes socket as a client socket
- // to server at |address|. All data traffic on the socket will be sent and
- // received via |network|. This call will fail if |network| has disconnected.
- // Communication using this socket will fail if |network| disconnects.
- // Returns a net error code.
- virtual int ConnectUsingNetwork(NetworkChangeNotifier::NetworkHandle network,
- const IPEndPoint& address) = 0;
-
- // Same as ConnectUsingNetwork, except that the current default network is
- // used. Returns a net error code.
- virtual int ConnectUsingDefaultNetwork(const IPEndPoint& address) = 0;
-
- // Returns the network that either ConnectUsingNetwork() or
- // ConnectUsingDefaultNetwork() bound this socket to. Returns
- // NetworkChangeNotifier::kInvalidNetworkHandle if not explicitly bound via
- // ConnectUsingNetwork() or ConnectUsingDefaultNetwork().
- virtual NetworkChangeNotifier::NetworkHandle GetBoundNetwork() const = 0;
-
-};
-
-} // namespace net
-
-#endif // NET_UDP_DATAGRAM_CLIENT_SOCKET_H_
« no previous file with comments | « net/tools/quic/quic_simple_server_packet_writer.cc ('k') | net/udp/datagram_server_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698