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

Unified Diff: net/base/network_change_notifier.h

Issue 10689015: [net] Adds AddressTrackerLinux which keeps track of interface addresses using rtnetlink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added test for ignored attribute. Created 8 years, 5 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
Index: net/base/network_change_notifier.h
diff --git a/net/base/network_change_notifier.h b/net/base/network_change_notifier.h
index 8420a8f5477c7d03e4cccb6e1c555b179630fb67..192aa9a47583b968cdb8d75482034eb597ef4357 100644
--- a/net/base/network_change_notifier.h
+++ b/net/base/network_change_notifier.h
@@ -16,6 +16,10 @@ class NetworkChangeNotifierFactory;
namespace internal {
class DnsConfigWatcher;
+
+#if defined(OS_LINUX)
+class AddressTrackerLinux;
+#endif
}
// NetworkChangeNotifier monitors the system for network changes, and notifies
@@ -124,6 +128,11 @@ class NET_EXPORT NetworkChangeNotifier {
// attempt to a particular remote site will be successful.
static ConnectionType GetConnectionType();
+#if defined(OS_LINUX)
+ // Returns the AddressTrackerLinux if present.
+ static const internal::AddressTrackerLinux* GetAddressTracker();
+#endif
+
// Convenience method to determine if the user is offline.
// Returns true if there is currently no internet connection.
//

Powered by Google App Engine
This is Rietveld 408576698