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

Side by Side Diff: webrtc/base/virtualsocketserver.h

Issue 2718663005: Replace NULL with nullptr or null in webrtc/base/. (Closed)
Patch Set: Fixing Windows and formatting issues. Created 3 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 | « webrtc/base/virtualsocket_unittest.cc ('k') | webrtc/base/virtualsocketserver.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 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // Basic operations on functions. Those that return a function also take 206 // Basic operations on functions. Those that return a function also take
207 // ownership of the function given (and hence, may modify or delete it). 207 // ownership of the function given (and hence, may modify or delete it).
208 static Function* Accumulate(Function* f); 208 static Function* Accumulate(Function* f);
209 static Function* Invert(Function* f); 209 static Function* Invert(Function* f);
210 static Function* Resample(Function* f, 210 static Function* Resample(Function* f,
211 double x1, 211 double x1,
212 double x2, 212 double x2,
213 uint32_t samples); 213 uint32_t samples);
214 static double Evaluate(Function* f, double x); 214 static double Evaluate(Function* f, double x);
215 215
216 // NULL out our message queue if it goes away. Necessary in the case where 216 // Null out our message queue if it goes away. Necessary in the case where
217 // our lifetime is greater than that of the thread we are using, since we 217 // our lifetime is greater than that of the thread we are using, since we
218 // try to send Close messages for all connected sockets when we shutdown. 218 // try to send Close messages for all connected sockets when we shutdown.
219 void OnMessageQueueDestroyed() { msg_queue_ = NULL; } 219 void OnMessageQueueDestroyed() { msg_queue_ = nullptr; }
220 220
221 // Determine if two sockets should be able to communicate. 221 // Determine if two sockets should be able to communicate.
222 // We don't (currently) specify an address family for sockets; instead, 222 // We don't (currently) specify an address family for sockets; instead,
223 // the currently bound address is used to infer the address family. 223 // the currently bound address is used to infer the address family.
224 // Any socket that is not explicitly bound to an IPv4 address is assumed to be 224 // Any socket that is not explicitly bound to an IPv4 address is assumed to be
225 // dual-stack capable. 225 // dual-stack capable.
226 // This function tests if two addresses can communicate, as well as the 226 // This function tests if two addresses can communicate, as well as the
227 // sockets to which they may be bound (the addresses may or may not yet be 227 // sockets to which they may be bound (the addresses may or may not yet be
228 // bound to the sockets). 228 // bound to the sockets).
229 // First the addresses are tested (after normalization): 229 // First the addresses are tested (after normalization):
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 386
387 // Store the options that are set 387 // Store the options that are set
388 OptionsMap options_map_; 388 OptionsMap options_map_;
389 389
390 friend class VirtualSocketServer; 390 friend class VirtualSocketServer;
391 }; 391 };
392 392
393 } // namespace rtc 393 } // namespace rtc
394 394
395 #endif // WEBRTC_BASE_VIRTUALSOCKETSERVER_H_ 395 #endif // WEBRTC_BASE_VIRTUALSOCKETSERVER_H_
OLDNEW
« no previous file with comments | « webrtc/base/virtualsocket_unittest.cc ('k') | webrtc/base/virtualsocketserver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698