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

Unified Diff: net/base/address_tracker_linux.h

Issue 538243003: proposed interface change at //net for webrtc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Define IPv6 Address flags and expose online_links_ from address tracker Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/base/address_tracker_linux.cc » ('j') | net/base/net_util.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/address_tracker_linux.h
diff --git a/net/base/address_tracker_linux.h b/net/base/address_tracker_linux.h
index 415e8c89e9d8dc354d48c8a48dc24064068f71fd..d3996127c6c1b0be8cedf621ec0c6a530fe30dd1 100644
--- a/net/base/address_tracker_linux.h
+++ b/net/base/address_tracker_linux.h
@@ -46,6 +46,7 @@ class NET_EXPORT_PRIVATE AddressTrackerLinux :
void Init();
AddressMap GetAddressMap() const;
+ base::hash_set<int> GetOnlineLinks() const;
// Implementation of NetworkChangeNotifierLinux::GetCurrentConnectionType().
// Safe to call from any thread, but will block until Init() has completed.
@@ -105,6 +106,7 @@ class NET_EXPORT_PRIVATE AddressTrackerLinux :
AddressMap address_map_;
// Set of interface indices for links that are currently online.
+ mutable base::Lock online_links_lock_;
base::hash_set<int> online_links_;
base::Lock is_offline_lock_;
« no previous file with comments | « no previous file | net/base/address_tracker_linux.cc » ('j') | net/base/net_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698