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

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

Issue 1284113003: Move the concept of multiple route into Network (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 4 months 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/base/network.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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual void StopUpdating() = 0; 83 virtual void StopUpdating() = 0;
84 84
85 // Returns the current list of networks available on this machine. 85 // Returns the current list of networks available on this machine.
86 // StartUpdating() must be called before this method is called. 86 // StartUpdating() must be called before this method is called.
87 // It makes sure that repeated calls return the same object for a 87 // It makes sure that repeated calls return the same object for a
88 // given network, so that quality is tracked appropriately. Does not 88 // given network, so that quality is tracked appropriately. Does not
89 // include ignored networks. 89 // include ignored networks.
90 virtual void GetNetworks(NetworkList* networks) const = 0; 90 virtual void GetNetworks(NetworkList* networks) const = 0;
91 91
92 // return the current permission state of GetNetworks() 92 // return the current permission state of GetNetworks()
93 virtual EnumerationPermission enumeration_permission() const { 93 virtual EnumerationPermission enumeration_permission() const;
94 return kEnumerationAllowed;
95 }
96 94
97 // "AnyAddressNetwork" is a network which only contains single "any address" 95 // "AnyAddressNetwork" is a network which only contains single "any address"
98 // IP address. (i.e. INADDR_ANY for IPv4 or in6addr_any for IPv6). This is 96 // IP address. (i.e. INADDR_ANY for IPv4 or in6addr_any for IPv6). This is
99 // useful as binding to such interfaces allow default routing behavior like 97 // useful as binding to such interfaces allow default routing behavior like
100 // http traffic. 98 // http traffic.
101 // TODO(guoweis): remove this body when chromium implements this. 99 // TODO(guoweis): remove this body when chromium implements this.
102 virtual void GetAnyAddressNetworks(NetworkList* networks) {} 100 virtual void GetAnyAddressNetworks(NetworkList* networks) {}
103 101
104 // Dumps a list of networks available to LS_INFO. 102 // Dumps a list of networks available to LS_INFO.
105 virtual void DumpNetworks(bool include_ignored) {} 103 virtual void DumpNetworks(bool include_ignored) {}
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 bool ignored_; 322 bool ignored_;
325 AdapterType type_; 323 AdapterType type_;
326 int preference_; 324 int preference_;
327 325
328 friend class NetworkManager; 326 friend class NetworkManager;
329 }; 327 };
330 328
331 } // namespace rtc 329 } // namespace rtc
332 330
333 #endif // WEBRTC_BASE_NETWORK_H_ 331 #endif // WEBRTC_BASE_NETWORK_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/base/network.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698