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_net_log_parameters.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_UDP_UDP_NET_LOG_PARAMETERS_H_ 5 #ifndef NET_UDP_UDP_NET_LOG_PARAMETERS_H_
6 #define NET_UDP_UDP_NET_LOG_PARAMETERS_H_ 6 #define NET_UDP_UDP_NET_LOG_PARAMETERS_H_
7 7
8 #include "net/base/network_change_notifier.h" 8 #include "net/base/network_change_notifier.h"
9 #include "net/log/net_log.h" 9 #include "net/log/net_log_parameters_callback.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 class IPEndPoint; 13 class IPEndPoint;
14 14
15 // Creates a NetLog callback that returns parameters describing a UDP 15 // Creates a NetLog callback that returns parameters describing a UDP
16 // receive/send event. |bytes| are only logged when byte logging is 16 // receive/send event. |bytes| are only logged when byte logging is
17 // enabled. |address| may be NULL. |address| (if given) and |bytes| 17 // enabled. |address| may be NULL. |address| (if given) and |bytes|
18 // must be valid for the life of the callback. 18 // must be valid for the life of the callback.
19 NetLog::ParametersCallback CreateNetLogUDPDataTranferCallback( 19 NetLogParametersCallback CreateNetLogUDPDataTranferCallback(
20 int byte_count, 20 int byte_count,
21 const char* bytes, 21 const char* bytes,
22 const IPEndPoint* address); 22 const IPEndPoint* address);
23 23
24 // Creates a NetLog callback that returns parameters describing a UDP 24 // Creates a NetLog callback that returns parameters describing a UDP
25 // connect event. |address| cannot be NULL, and must remain valid for 25 // connect event. |address| cannot be NULL, and must remain valid for
26 // the lifetime of the callback. 26 // the lifetime of the callback.
27 NetLog::ParametersCallback CreateNetLogUDPConnectCallback( 27 NetLogParametersCallback CreateNetLogUDPConnectCallback(
28 const IPEndPoint* address, 28 const IPEndPoint* address,
29 NetworkChangeNotifier::NetworkHandle network); 29 NetworkChangeNotifier::NetworkHandle network);
30 30
31 } // namespace net 31 } // namespace net
32 32
33 #endif // NET_UDP_UDP_NET_LOG_PARAMETERS_H_ 33 #endif // NET_UDP_UDP_NET_LOG_PARAMETERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698