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

Side by Side Diff: net/udp/udp_socket_win.cc

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_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 #include "net/udp/udp_socket_win.h" 5 #include "net/udp/udp_socket_win.h"
6 6
7 #include <mstcpip.h> 7 #include <mstcpip.h>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 is_connected_(false), 250 is_connected_(false),
251 socket_options_(SOCKET_OPTION_MULTICAST_LOOP), 251 socket_options_(SOCKET_OPTION_MULTICAST_LOOP),
252 multicast_interface_(0), 252 multicast_interface_(0),
253 multicast_time_to_live_(1), 253 multicast_time_to_live_(1),
254 bind_type_(bind_type), 254 bind_type_(bind_type),
255 rand_int_cb_(rand_int_cb), 255 rand_int_cb_(rand_int_cb),
256 use_non_blocking_io_(false), 256 use_non_blocking_io_(false),
257 read_iobuffer_len_(0), 257 read_iobuffer_len_(0),
258 write_iobuffer_len_(0), 258 write_iobuffer_len_(0),
259 recv_from_address_(NULL), 259 recv_from_address_(NULL),
260 net_log_(BoundNetLog::Make(net_log, NetLogSourceType::UDP_SOCKET)), 260 net_log_(NetLogWithSource::Make(net_log, NetLogSourceType::UDP_SOCKET)),
261 qos_handle_(NULL), 261 qos_handle_(NULL),
262 qos_flow_id_(0) { 262 qos_flow_id_(0) {
263 EnsureWinsockInit(); 263 EnsureWinsockInit();
264 net_log_.BeginEvent(NetLogEventType::SOCKET_ALIVE, 264 net_log_.BeginEvent(NetLogEventType::SOCKET_ALIVE,
265 source.ToEventParametersCallback()); 265 source.ToEventParametersCallback());
266 if (bind_type == DatagramSocket::RANDOM_BIND) 266 if (bind_type == DatagramSocket::RANDOM_BIND)
267 DCHECK(!rand_int_cb.is_null()); 267 DCHECK(!rand_int_cb.is_null());
268 } 268 }
269 269
270 UDPSocketWin::~UDPSocketWin() { 270 UDPSocketWin::~UDPSocketWin() {
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 void UDPSocketWin::DetachFromThread() { 1191 void UDPSocketWin::DetachFromThread() {
1192 base::NonThreadSafe::DetachFromThread(); 1192 base::NonThreadSafe::DetachFromThread();
1193 } 1193 }
1194 1194
1195 void UDPSocketWin::UseNonBlockingIO() { 1195 void UDPSocketWin::UseNonBlockingIO() {
1196 DCHECK(!core_); 1196 DCHECK(!core_);
1197 use_non_blocking_io_ = true; 1197 use_non_blocking_io_ = true;
1198 } 1198 }
1199 1199
1200 } // namespace net 1200 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698