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

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

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ Created 4 years, 3 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_SOCKET_POSIX_H_ 5 #ifndef NET_UDP_UDP_SOCKET_POSIX_H_
6 #define NET_UDP_UDP_SOCKET_POSIX_H_ 6 #define NET_UDP_UDP_SOCKET_POSIX_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Requests that packets sent by this socket not be fragment, either locally 122 // Requests that packets sent by this socket not be fragment, either locally
123 // by the host, or by routers (via the DF bit in the IPv4 packet header). 123 // by the host, or by routers (via the DF bit in the IPv4 packet header).
124 // May not be supported by all platforms. Returns a return a network error 124 // May not be supported by all platforms. Returns a return a network error
125 // code if there was a problem, but the socket will still be usable. Can not 125 // code if there was a problem, but the socket will still be usable. Can not
126 // return ERR_IO_PENDING. 126 // return ERR_IO_PENDING.
127 int SetDoNotFragment(); 127 int SetDoNotFragment();
128 128
129 // Returns true if the socket is already connected or bound. 129 // Returns true if the socket is already connected or bound.
130 bool is_connected() const { return is_connected_; } 130 bool is_connected() const { return is_connected_; }
131 131
132 const BoundNetLog& NetLog() const { return net_log_; } 132 const NetLogWithSource& NetLog() const { return net_log_; }
133 133
134 // Sets corresponding flags in |socket_options_| to allow the socket 134 // Sets corresponding flags in |socket_options_| to allow the socket
135 // to share the local address to which the socket will be bound with 135 // to share the local address to which the socket will be bound with
136 // other processes. Should be called between Open() and Bind(). 136 // other processes. Should be called between Open() and Bind().
137 // Returns a net error code. 137 // Returns a net error code.
138 int AllowAddressReuse(); 138 int AllowAddressReuse();
139 139
140 // Sets corresponding flags in |socket_options_| to allow or disallow sending 140 // Sets corresponding flags in |socket_options_| to allow or disallow sending
141 // and receiving packets to and from broadcast addresses. 141 // and receiving packets to and from broadcast addresses.
142 // Returns a net error code. 142 // Returns a net error code.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 scoped_refptr<IOBuffer> write_buf_; 308 scoped_refptr<IOBuffer> write_buf_;
309 int write_buf_len_; 309 int write_buf_len_;
310 std::unique_ptr<IPEndPoint> send_to_address_; 310 std::unique_ptr<IPEndPoint> send_to_address_;
311 311
312 // External callback; called when read is complete. 312 // External callback; called when read is complete.
313 CompletionCallback read_callback_; 313 CompletionCallback read_callback_;
314 314
315 // External callback; called when write is complete. 315 // External callback; called when write is complete.
316 CompletionCallback write_callback_; 316 CompletionCallback write_callback_;
317 317
318 BoundNetLog net_log_; 318 NetLogWithSource net_log_;
319 319
320 // Network that this socket is bound to via BindToNetwork(). 320 // Network that this socket is bound to via BindToNetwork().
321 NetworkChangeNotifier::NetworkHandle bound_network_; 321 NetworkChangeNotifier::NetworkHandle bound_network_;
322 322
323 DISALLOW_COPY_AND_ASSIGN(UDPSocketPosix); 323 DISALLOW_COPY_AND_ASSIGN(UDPSocketPosix);
324 }; 324 };
325 325
326 } // namespace net 326 } // namespace net
327 327
328 #endif // NET_UDP_UDP_SOCKET_POSIX_H_ 328 #endif // NET_UDP_UDP_SOCKET_POSIX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698