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

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

Issue 2508593002: net: move udp directory into socket (Closed)
Patch Set: revert sys/socket.h change Created 4 years, 1 month 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/udp_socket_win.h ('k') | net/tools/quic/quic_simple_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/socket/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"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
14 #include "base/metrics/histogram_macros.h" 14 #include "base/metrics/histogram_macros.h"
15 #include "base/metrics/sparse_histogram.h" 15 #include "base/metrics/sparse_histogram.h"
16 #include "base/rand_util.h" 16 #include "base/rand_util.h"
17 #include "net/base/io_buffer.h" 17 #include "net/base/io_buffer.h"
18 #include "net/base/ip_address.h" 18 #include "net/base/ip_address.h"
19 #include "net/base/ip_endpoint.h" 19 #include "net/base/ip_endpoint.h"
20 #include "net/base/net_errors.h" 20 #include "net/base/net_errors.h"
21 #include "net/base/network_activity_monitor.h" 21 #include "net/base/network_activity_monitor.h"
22 #include "net/base/network_change_notifier.h" 22 #include "net/base/network_change_notifier.h"
23 #include "net/base/sockaddr_storage.h" 23 #include "net/base/sockaddr_storage.h"
24 #include "net/base/winsock_init.h" 24 #include "net/base/winsock_init.h"
25 #include "net/base/winsock_util.h" 25 #include "net/base/winsock_util.h"
26 #include "net/log/net_log.h" 26 #include "net/log/net_log.h"
27 #include "net/log/net_log_event_type.h" 27 #include "net/log/net_log_event_type.h"
28 #include "net/log/net_log_source.h" 28 #include "net/log/net_log_source.h"
29 #include "net/log/net_log_source_type.h" 29 #include "net/log/net_log_source_type.h"
30 #include "net/socket/socket_descriptor.h" 30 #include "net/socket/socket_descriptor.h"
31 #include "net/udp/udp_net_log_parameters.h" 31 #include "net/socket/udp_net_log_parameters.h"
32 32
33 namespace { 33 namespace {
34 34
35 const int kBindRetries = 10; 35 const int kBindRetries = 10;
36 const int kPortStart = 1024; 36 const int kPortStart = 1024;
37 const int kPortEnd = 65535; 37 const int kPortEnd = 65535;
38 38
39 } // namespace 39 } // namespace
40 40
41 namespace net { 41 namespace net {
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1192 void UDPSocketWin::DetachFromThread() { 1192 void UDPSocketWin::DetachFromThread() {
1193 base::NonThreadSafe::DetachFromThread(); 1193 base::NonThreadSafe::DetachFromThread();
1194 } 1194 }
1195 1195
1196 void UDPSocketWin::UseNonBlockingIO() { 1196 void UDPSocketWin::UseNonBlockingIO() {
1197 DCHECK(!core_); 1197 DCHECK(!core_);
1198 use_non_blocking_io_ = true; 1198 use_non_blocking_io_ = true;
1199 } 1199 }
1200 1200
1201 } // namespace net 1201 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/udp_socket_win.h ('k') | net/tools/quic/quic_simple_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698