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

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

Issue 1531763006: Enable IPv6 temporary address filtering on iOS (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years 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
(Empty)
1 /*
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_BASE_IFADDRS_CONVERTER_H_
12 #define WEBRTC_BASE_IFADDRS_CONVERTER_H_
13
14 #if defined(WEBRTC_ANDROID)
15 #include "webrtc/base/ifaddrs-android.h"
16 #else
17 #include <ifaddrs.h>
18 #endif // WEBRTC_ANDROID
19
20 #include "webrtc/base/ipaddress.h"
21
22 namespace rtc {
23
24 class IfAddrsConverter {
pthatcher1 2015/12/18 19:51:20 Can you please leave a comment explaining the purp
guoweis_webrtc 2015/12/21 20:26:33 Done.
25 public:
26 IfAddrsConverter();
27 virtual ~IfAddrsConverter();
28 virtual bool Convert(const struct ifaddrs* interface,
29 InterfaceAddress* ipaddress,
30 IPAddress* mask);
pthatcher1 2015/12/18 19:51:20 I like the name pattern ConvertXToY. Can you use
guoweis_webrtc 2015/12/21 20:26:33 Done.
31
32 protected:
33 virtual bool ConvertNativeToIPAttributes(const struct ifaddrs* interface,
34 int* ip_attributes);
35 };
36
37 IfAddrsConverter* CreateIfAddrsConverter();
38
39 } // namespace rtc
40
41 #endif // WEBRTC_BASE_IFADDRS_CONVERTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698