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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
348 | 348 |
349 // When we enumerate networks and find a previously-seen network is missing, | 349 // When we enumerate networks and find a previously-seen network is missing, |
350 // we do not remove it (because it may be used elsewhere). Instead, we mark | 350 // we do not remove it (because it may be used elsewhere). Instead, we mark |
351 // it inactive, so that we can detect network changes properly. | 351 // it inactive, so that we can detect network changes properly. |
352 bool active() const { return active_; } | 352 bool active() const { return active_; } |
353 void set_active(bool active) { active_ = active; } | 353 void set_active(bool active) { active_ = active; } |
354 | 354 |
355 // Debugging description of this network | 355 // Debugging description of this network |
356 std::string ToString() const; | 356 std::string ToString() const; |
357 | 357 |
358 NetworkHandle handle() const { return 0; } | |
359 bool IsHandleValid() const { return false; } | |
pthatcher1
2016/01/06 21:58:46
Can you leave a comment about what these are how t
honghaiz3
2016/01/12 20:36:42
Acknowledged.
| |
360 | |
358 private: | 361 private: |
359 const DefaultLocalAddressProvider* default_local_address_provider_ = nullptr; | 362 const DefaultLocalAddressProvider* default_local_address_provider_ = nullptr; |
360 std::string name_; | 363 std::string name_; |
361 std::string description_; | 364 std::string description_; |
362 IPAddress prefix_; | 365 IPAddress prefix_; |
363 int prefix_length_; | 366 int prefix_length_; |
364 std::string key_; | 367 std::string key_; |
365 std::vector<InterfaceAddress> ips_; | 368 std::vector<InterfaceAddress> ips_; |
366 int scope_id_; | 369 int scope_id_; |
367 bool ignored_; | 370 bool ignored_; |
368 AdapterType type_; | 371 AdapterType type_; |
369 int preference_; | 372 int preference_; |
370 bool active_ = true; | 373 bool active_ = true; |
371 | 374 |
372 friend class NetworkManager; | 375 friend class NetworkManager; |
373 }; | 376 }; |
374 | 377 |
375 } // namespace rtc | 378 } // namespace rtc |
376 | 379 |
377 #endif // WEBRTC_BASE_NETWORK_H_ | 380 #endif // WEBRTC_BASE_NETWORK_H_ |
OLD | NEW |