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

Side by Side Diff: trunk/src/net/udp/udp_socket_win.h

Issue 191403002: Revert 255311 "Bind before sandbox lockdown on Windows." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « trunk/src/net/udp/udp_socket_libevent.cc ('k') | trunk/src/net/udp/udp_socket_win.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 #ifndef NET_UDP_UDP_SOCKET_WIN_H_ 5 #ifndef NET_UDP_UDP_SOCKET_WIN_H_
6 #define NET_UDP_UDP_SOCKET_WIN_H_ 6 #define NET_UDP_UDP_SOCKET_WIN_H_
7 7
8 #include <winsock2.h> 8 #include <winsock2.h>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // multicast loopback mode. On Windows, the applications with loopback off 154 // multicast loopback mode. On Windows, the applications with loopback off
155 // will not RECEIVE the loopback packets; while on Unix-like systems, the 155 // will not RECEIVE the loopback packets; while on Unix-like systems, the
156 // applications with loopback off will not SEND the loopback packets to 156 // applications with loopback off will not SEND the loopback packets to
157 // other applications on the same host. See MSDN: http://goo.gl/6vqbj 157 // other applications on the same host. See MSDN: http://goo.gl/6vqbj
158 int SetMulticastLoopbackMode(bool loopback); 158 int SetMulticastLoopbackMode(bool loopback);
159 159
160 // Set the differentiated services flags on outgoing packets. May not 160 // Set the differentiated services flags on outgoing packets. May not
161 // do anything on some platforms. 161 // do anything on some platforms.
162 int SetDiffServCodePoint(DiffServCodePoint dscp); 162 int SetDiffServCodePoint(DiffServCodePoint dscp);
163 163
164 // Resets the thread to be used for thread-safety checks.
165 void DetachFromThread();
166
167 private: 164 private:
168 enum SocketOptions { 165 enum SocketOptions {
169 SOCKET_OPTION_REUSE_ADDRESS = 1 << 0, 166 SOCKET_OPTION_REUSE_ADDRESS = 1 << 0,
170 SOCKET_OPTION_BROADCAST = 1 << 1, 167 SOCKET_OPTION_BROADCAST = 1 << 1,
171 SOCKET_OPTION_MULTICAST_LOOP = 1 << 2 168 SOCKET_OPTION_MULTICAST_LOOP = 1 << 2
172 }; 169 };
173 170
174 class Core; 171 class Core;
175 172
176 void DoReadCallback(int rv); 173 void DoReadCallback(int rv);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 CompletionCallback write_callback_; 251 CompletionCallback write_callback_;
255 252
256 BoundNetLog net_log_; 253 BoundNetLog net_log_;
257 254
258 DISALLOW_COPY_AND_ASSIGN(UDPSocketWin); 255 DISALLOW_COPY_AND_ASSIGN(UDPSocketWin);
259 }; 256 };
260 257
261 } // namespace net 258 } // namespace net
262 259
263 #endif // NET_UDP_UDP_SOCKET_WIN_H_ 260 #endif // NET_UDP_UDP_SOCKET_WIN_H_
OLDNEW
« no previous file with comments | « trunk/src/net/udp/udp_socket_libevent.cc ('k') | trunk/src/net/udp/udp_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698