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

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

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SERVER_SOCKET_H_ 5 #ifndef NET_SOCKET_UDP_SERVER_SOCKET_H_
6 #define NET_SOCKET_UDP_SERVER_SOCKET_H_ 6 #define NET_SOCKET_UDP_SERVER_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/completion_callback.h" 11 #include "net/base/completion_callback.h"
12 #include "net/udp/datagram_server_socket.h" 12 #include "net/udp/datagram_server_socket.h"
13 #include "net/udp/udp_socket.h" 13 #include "net/udp/udp_socket.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 class IPAddress; 17 class IPAddress;
18 class IPEndPoint; 18 class IPEndPoint;
19 class NetLogWithSource; 19 class NetLog;
20 struct NetLogSource;
20 21
21 // A client socket that uses UDP as the transport layer. 22 // A client socket that uses UDP as the transport layer.
22 class NET_EXPORT UDPServerSocket : public DatagramServerSocket { 23 class NET_EXPORT UDPServerSocket : public DatagramServerSocket {
23 public: 24 public:
24 UDPServerSocket(net::NetLog* net_log, const net::NetLog::Source& source); 25 UDPServerSocket(net::NetLog* net_log, const net::NetLogSource& source);
25 ~UDPServerSocket() override; 26 ~UDPServerSocket() override;
26 27
27 // Implement DatagramServerSocket: 28 // Implement DatagramServerSocket:
28 int Listen(const IPEndPoint& address) override; 29 int Listen(const IPEndPoint& address) override;
29 int RecvFrom(IOBuffer* buf, 30 int RecvFrom(IOBuffer* buf,
30 int buf_len, 31 int buf_len,
31 IPEndPoint* address, 32 IPEndPoint* address,
32 const CompletionCallback& callback) override; 33 const CompletionCallback& callback) override;
33 int SendTo(IOBuffer* buf, 34 int SendTo(IOBuffer* buf,
34 int buf_len, 35 int buf_len,
(...skipping 20 matching lines...) Expand all
55 private: 56 private:
56 UDPSocket socket_; 57 UDPSocket socket_;
57 bool allow_address_reuse_; 58 bool allow_address_reuse_;
58 bool allow_broadcast_; 59 bool allow_broadcast_;
59 DISALLOW_COPY_AND_ASSIGN(UDPServerSocket); 60 DISALLOW_COPY_AND_ASSIGN(UDPServerSocket);
60 }; 61 };
61 62
62 } // namespace net 63 } // namespace net
63 64
64 #endif // NET_SOCKET_UDP_SERVER_SOCKET_H_ 65 #endif // NET_SOCKET_UDP_SERVER_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698