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

Side by Side Diff: webrtc/rtc_base/nethelpers.cc

Issue 2963273002: Update includes for webrtc/{base => rtc_base} rename (3/3) (Closed)
Patch Set: git cl format Created 3 years, 5 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/rtc_base/nethelpers.h ('k') | webrtc/rtc_base/network.h » ('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 2008 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2008 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
11 #include "webrtc/base/nethelpers.h" 11 #include "webrtc/rtc_base/nethelpers.h"
12 12
13 #include <memory> 13 #include <memory>
14 14
15 #if defined(WEBRTC_WIN) 15 #if defined(WEBRTC_WIN)
16 #include <ws2spi.h> 16 #include <ws2spi.h>
17 #include <ws2tcpip.h> 17 #include <ws2tcpip.h>
18 #include "webrtc/base/win32.h" 18 #include "webrtc/rtc_base/win32.h"
19 #endif 19 #endif
20 #if defined(WEBRTC_POSIX) && !defined(__native_client__) 20 #if defined(WEBRTC_POSIX) && !defined(__native_client__)
21 #if defined(WEBRTC_ANDROID) 21 #if defined(WEBRTC_ANDROID)
22 #include "webrtc/base/ifaddrs-android.h" 22 #include "webrtc/rtc_base/ifaddrs-android.h"
23 #else 23 #else
24 #include <ifaddrs.h> 24 #include <ifaddrs.h>
25 #endif 25 #endif
26 #endif // defined(WEBRTC_POSIX) && !defined(__native_client__) 26 #endif // defined(WEBRTC_POSIX) && !defined(__native_client__)
27 27
28 #include "webrtc/base/bind.h" 28 #include "webrtc/rtc_base/bind.h"
29 #include "webrtc/base/byteorder.h" 29 #include "webrtc/rtc_base/byteorder.h"
30 #include "webrtc/base/checks.h" 30 #include "webrtc/rtc_base/checks.h"
31 #include "webrtc/base/logging.h" 31 #include "webrtc/rtc_base/logging.h"
32 #include "webrtc/base/ptr_util.h" 32 #include "webrtc/rtc_base/ptr_util.h"
33 #include "webrtc/base/task_queue.h" 33 #include "webrtc/rtc_base/task_queue.h"
34 #include "webrtc/base/thread.h" 34 #include "webrtc/rtc_base/thread.h"
35 35
36 namespace rtc { 36 namespace rtc {
37 37
38 namespace { 38 namespace {
39 int ResolveHostname(const std::string& hostname, int family, 39 int ResolveHostname(const std::string& hostname, int family,
40 std::vector<IPAddress>* addresses) { 40 std::vector<IPAddress>* addresses) {
41 #ifdef __native_client__ 41 #ifdef __native_client__
42 RTC_NOTREACHED(); 42 RTC_NOTREACHED();
43 LOG(LS_WARNING) << "ResolveHostname() is not implemented for NaCl"; 43 LOG(LS_WARNING) << "ResolveHostname() is not implemented for NaCl";
44 return -1; 44 return -1;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 break; 276 break;
277 } 277 }
278 } 278 }
279 freeifaddrs(ifa); 279 freeifaddrs(ifa);
280 return has_ipv6; 280 return has_ipv6;
281 #else 281 #else
282 return true; 282 return true;
283 #endif 283 #endif
284 } 284 }
285 } // namespace rtc 285 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/rtc_base/nethelpers.h ('k') | webrtc/rtc_base/network.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698