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

Side by Side Diff: net/udp/udp_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/udp/datagram_server_socket.h ('k') | net/udp/udp_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_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 "net/base/net_log.h" 8 #include "net/base/net_log.h"
9 #include "net/base/rand_callback.h" 9 #include "net/base/rand_callback.h"
10 #include "net/udp/datagram_client_socket.h" 10 #include "net/udp/datagram_client_socket.h"
11 #include "net/udp/udp_socket.h" 11 #include "net/udp/udp_socket.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 class BoundNetLog; 15 class BoundNetLog;
16 16
17 // A client socket that uses UDP as the transport layer. 17 // A client socket that uses UDP as the transport layer.
18 class NET_EXPORT_PRIVATE UDPClientSocket : public DatagramClientSocket { 18 class NET_EXPORT_PRIVATE UDPClientSocket : public DatagramClientSocket {
19 public: 19 public:
20 UDPClientSocket(DatagramSocket::BindType bind_type, 20 UDPClientSocket(DatagramSocket::BindType bind_type,
21 const RandIntCallback& rand_int_cb, 21 const RandIntCallback& rand_int_cb,
22 net::NetLog* net_log, 22 net::NetLog* net_log,
23 const net::NetLog::Source& source); 23 const net::NetLog::Source& source);
24 virtual ~UDPClientSocket(); 24 ~UDPClientSocket() override;
25 25
26 // DatagramClientSocket implementation. 26 // DatagramClientSocket implementation.
27 virtual int Connect(const IPEndPoint& address) override; 27 int Connect(const IPEndPoint& address) override;
28 virtual int Read(IOBuffer* buf, int buf_len, 28 int Read(IOBuffer* buf,
29 const CompletionCallback& callback) override; 29 int buf_len,
30 virtual int Write(IOBuffer* buf, int buf_len, 30 const CompletionCallback& callback) override;
31 const CompletionCallback& callback) override; 31 int Write(IOBuffer* buf,
32 virtual void Close() override; 32 int buf_len,
33 virtual int GetPeerAddress(IPEndPoint* address) const override; 33 const CompletionCallback& callback) override;
34 virtual int GetLocalAddress(IPEndPoint* address) const override; 34 void Close() override;
35 virtual int SetReceiveBufferSize(int32 size) override; 35 int GetPeerAddress(IPEndPoint* address) const override;
36 virtual int SetSendBufferSize(int32 size) override; 36 int GetLocalAddress(IPEndPoint* address) const override;
37 virtual const BoundNetLog& NetLog() const override; 37 int SetReceiveBufferSize(int32 size) override;
38 int SetSendBufferSize(int32 size) override;
39 const BoundNetLog& NetLog() const override;
38 40
39 private: 41 private:
40 UDPSocket socket_; 42 UDPSocket socket_;
41 DISALLOW_COPY_AND_ASSIGN(UDPClientSocket); 43 DISALLOW_COPY_AND_ASSIGN(UDPClientSocket);
42 }; 44 };
43 45
44 } // namespace net 46 } // namespace net
45 47
46 #endif // NET_SOCKET_UDP_CLIENT_SOCKET_H_ 48 #endif // NET_SOCKET_UDP_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/udp/datagram_server_socket.h ('k') | net/udp/udp_server_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698