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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 int prefix_length); | 51 int prefix_length); |
52 | 52 |
53 // Generic network manager interface. It provides list of local | 53 // Generic network manager interface. It provides list of local |
54 // networks. | 54 // networks. |
55 class NetworkManager { | 55 class NetworkManager { |
56 public: | 56 public: |
57 typedef std::vector<Network*> NetworkList; | 57 typedef std::vector<Network*> NetworkList; |
58 | 58 |
59 // This enum indicates whether adapter enumeration is allowed. | 59 // This enum indicates whether adapter enumeration is allowed. |
60 enum EnumerationPermission { | 60 enum EnumerationPermission { |
61 kEnumerationAllowed, // Adapter enumeration is allowed. Getting 0 | 61 ENUMERATION_ALLOWED, // Adapter enumeration is allowed. Getting 0 network |
62 // network from GetNetworks means that there is no | 62 // from GetNetworks means that there is no network |
63 // network available. | 63 // available. |
64 kEnumerationDisallowed, // Adapter enumeration is | 64 ENUMERATION_BLOCKED, // Adapter enumeration is disabled. |
65 // disabled. GetAnyAddressNetworks() should be used | 65 // GetAnyAddressNetworks() should be used instead. |
66 // instead. | |
67 }; | 66 }; |
68 | 67 |
69 NetworkManager(); | 68 NetworkManager(); |
70 virtual ~NetworkManager(); | 69 virtual ~NetworkManager(); |
71 | 70 |
72 // Called when network list is updated. | 71 // Called when network list is updated. |
73 sigslot::signal0<> SignalNetworksChanged; | 72 sigslot::signal0<> SignalNetworksChanged; |
74 | 73 |
75 // Indicates a failure when getting list of network interfaces. | 74 // Indicates a failure when getting list of network interfaces. |
76 sigslot::signal0<> SignalError; | 75 sigslot::signal0<> SignalError; |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 bool ignored_; | 321 bool ignored_; |
323 AdapterType type_; | 322 AdapterType type_; |
324 int preference_; | 323 int preference_; |
325 | 324 |
326 friend class NetworkManager; | 325 friend class NetworkManager; |
327 }; | 326 }; |
328 | 327 |
329 } // namespace rtc | 328 } // namespace rtc |
330 | 329 |
331 #endif // WEBRTC_BASE_NETWORK_H_ | 330 #endif // WEBRTC_BASE_NETWORK_H_ |
OLD | NEW |