OLD | NEW |
---|---|
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
111 // include ignored networks. | 111 // include ignored networks. |
112 virtual void GetNetworks(NetworkList* networks) const = 0; | 112 virtual void GetNetworks(NetworkList* networks) const = 0; |
113 | 113 |
114 // return the current permission state of GetNetworks() | 114 // return the current permission state of GetNetworks() |
115 virtual EnumerationPermission enumeration_permission() const; | 115 virtual EnumerationPermission enumeration_permission() const; |
116 | 116 |
117 // "AnyAddressNetwork" is a network which only contains single "any address" | 117 // "AnyAddressNetwork" is a network which only contains single "any address" |
118 // IP address. (i.e. INADDR_ANY for IPv4 or in6addr_any for IPv6). This is | 118 // IP address. (i.e. INADDR_ANY for IPv4 or in6addr_any for IPv6). This is |
119 // useful as binding to such interfaces allow default routing behavior like | 119 // useful as binding to such interfaces allow default routing behavior like |
120 // http traffic. | 120 // http traffic. |
121 // | |
122 // This method appends the "any address" networks to the list, such that this | |
123 // can optionally be called after GetNetworks. | |
Taylor Brandstetter
2017/06/13 03:41:30
Wanted to add this comment because I'm now startin
| |
124 // | |
121 // TODO(guoweis): remove this body when chromium implements this. | 125 // TODO(guoweis): remove this body when chromium implements this. |
122 virtual void GetAnyAddressNetworks(NetworkList* networks) {} | 126 virtual void GetAnyAddressNetworks(NetworkList* networks) {} |
123 | 127 |
124 // Dumps the current list of networks in the network manager. | 128 // Dumps the current list of networks in the network manager. |
125 virtual void DumpNetworks() {} | 129 virtual void DumpNetworks() {} |
126 bool GetDefaultLocalAddress(int family, IPAddress* ipaddr) const override; | 130 bool GetDefaultLocalAddress(int family, IPAddress* ipaddr) const override; |
127 | 131 |
128 struct Stats { | 132 struct Stats { |
129 int ipv4_network_count; | 133 int ipv4_network_count; |
130 int ipv6_network_count; | 134 int ipv6_network_count; |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
421 int preference_; | 425 int preference_; |
422 bool active_ = true; | 426 bool active_ = true; |
423 uint16_t id_ = 0; | 427 uint16_t id_ = 0; |
424 | 428 |
425 friend class NetworkManager; | 429 friend class NetworkManager; |
426 }; | 430 }; |
427 | 431 |
428 } // namespace rtc | 432 } // namespace rtc |
429 | 433 |
430 #endif // WEBRTC_BASE_NETWORK_H_ | 434 #endif // WEBRTC_BASE_NETWORK_H_ |
OLD | NEW |