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

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

Issue 2599673003: If network enumeration fails, try binding to the "ANY" address. (Closed)
Patch Set: Getting rid of redundant test. Created 4 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
« no previous file with comments | « no previous file | webrtc/p2p/client/basicportallocator.cc » ('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 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 }; 135 };
136 136
137 // Base class for NetworkManager implementations. 137 // Base class for NetworkManager implementations.
138 class NetworkManagerBase : public NetworkManager { 138 class NetworkManagerBase : public NetworkManager {
139 public: 139 public:
140 NetworkManagerBase(); 140 NetworkManagerBase();
141 ~NetworkManagerBase() override; 141 ~NetworkManagerBase() override;
142 142
143 void GetNetworks(NetworkList* networks) const override; 143 void GetNetworks(NetworkList* networks) const override;
144 void GetAnyAddressNetworks(NetworkList* networks) override; 144 void GetAnyAddressNetworks(NetworkList* networks) override;
145 // Defaults to true.
145 bool ipv6_enabled() const { return ipv6_enabled_; } 146 bool ipv6_enabled() const { return ipv6_enabled_; }
146 void set_ipv6_enabled(bool enabled) { ipv6_enabled_ = enabled; } 147 void set_ipv6_enabled(bool enabled) { ipv6_enabled_ = enabled; }
147 148
148 void set_max_ipv6_networks(int networks) { max_ipv6_networks_ = networks; } 149 void set_max_ipv6_networks(int networks) { max_ipv6_networks_ = networks; }
149 int max_ipv6_networks() { return max_ipv6_networks_; } 150 int max_ipv6_networks() { return max_ipv6_networks_; }
150 151
151 EnumerationPermission enumeration_permission() const override; 152 EnumerationPermission enumeration_permission() const override;
152 153
153 bool GetDefaultLocalAddress(int family, IPAddress* ipaddr) const override; 154 bool GetDefaultLocalAddress(int family, IPAddress* ipaddr) const override;
154 155
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 int preference_; 420 int preference_;
420 bool active_ = true; 421 bool active_ = true;
421 uint16_t id_ = 0; 422 uint16_t id_ = 0;
422 423
423 friend class NetworkManager; 424 friend class NetworkManager;
424 }; 425 };
425 426
426 } // namespace rtc 427 } // namespace rtc
427 428
428 #endif // WEBRTC_BASE_NETWORK_H_ 429 #endif // WEBRTC_BASE_NETWORK_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/p2p/client/basicportallocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698