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

Side by Side Diff: net/udp/datagram_client_socket.h

Issue 667923003: Standardize usage of virtual/override/final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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 unified diff | Download patch
« no previous file with comments | « net/tools/net_watcher/net_watcher.cc ('k') | net/udp/datagram_server_socket.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_UDP_DATAGRAM_CLIENT_SOCKET_H_
6 #define NET_UDP_DATAGRAM_CLIENT_SOCKET_H_ 6 #define NET_UDP_DATAGRAM_CLIENT_SOCKET_H_
7 7
8 #include "net/socket/socket.h" 8 #include "net/socket/socket.h"
9 #include "net/udp/datagram_socket.h" 9 #include "net/udp/datagram_socket.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 class IPEndPoint; 13 class IPEndPoint;
14 14
15 class NET_EXPORT_PRIVATE DatagramClientSocket : public DatagramSocket, 15 class NET_EXPORT_PRIVATE DatagramClientSocket : public DatagramSocket,
16 public Socket { 16 public Socket {
17 public: 17 public:
18 virtual ~DatagramClientSocket() {} 18 ~DatagramClientSocket() override {}
19 19
20 // Initialize this socket as a client socket to server at |address|. 20 // Initialize this socket as a client socket to server at |address|.
21 // Returns a network error code. 21 // Returns a network error code.
22 virtual int Connect(const IPEndPoint& address) = 0; 22 virtual int Connect(const IPEndPoint& address) = 0;
23 }; 23 };
24 24
25 } // namespace net 25 } // namespace net
26 26
27 #endif // NET_UDP_DATAGRAM_CLIENT_SOCKET_H_ 27 #endif // NET_UDP_DATAGRAM_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/tools/net_watcher/net_watcher.cc ('k') | net/udp/datagram_server_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698