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

Side by Side Diff: net/socket/socket_net_log_params.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/socket/socket_libevent.cc ('k') | net/socket/socket_net_log_params.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NET_SOCKET_SOCKET_NET_LOG_PARAMS_H_
6 #define NET_SOCKET_SOCKET_NET_LOG_PARAMS_H_
7
8 #include "net/base/net_log.h"
9 #include "net/base/sys_addrinfo.h"
10
11 namespace net {
12
13 class HostPortPair;
14 class IPEndPoint;
15
16 // Creates a NetLog callback for socket error events.
17 NetLog::ParametersCallback CreateNetLogSocketErrorCallback(int net_error,
18 int os_error);
19
20 // Creates a NetLog callback for a HostPortPair.
21 // |host_and_port| must remain valid for the lifetime of the returned callback.
22 NetLog::ParametersCallback CreateNetLogHostPortPairCallback(
23 const HostPortPair* host_and_port);
24
25 // Creates a NetLog callback for an IPEndPoint.
26 // |address| must remain valid for the lifetime of the returned callback.
27 NetLog::ParametersCallback CreateNetLogIPEndPointCallback(
28 const IPEndPoint* address);
29
30 // Creates a NetLog callback for the source sockaddr on connect events.
31 // |net_address| must remain valid for the lifetime of the returned callback.
32 NetLog::ParametersCallback CreateNetLogSourceAddressCallback(
33 const struct sockaddr* net_address,
34 socklen_t address_len);
35
36 } // namespace net
37
38 #endif // NET_SOCKET_SOCKET_NET_LOG_PARAMS_H_
OLDNEW
« no previous file with comments | « net/socket/socket_libevent.cc ('k') | net/socket/socket_net_log_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698