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

Unified Diff: net/base/network_change_notifier.cc

Issue 9540011: [net] Add DNS-related signals and NetLog to NetworkChangeNotifier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved DNS watch to a separate IO thread on mac. Created 8 years, 10 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 | « net/base/network_change_notifier.h ('k') | net/base/network_change_notifier_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_change_notifier.cc
diff --git a/net/base/network_change_notifier.cc b/net/base/network_change_notifier.cc
index 593eeeb283b16e09c68f5ffd6d3d28b5e7eec6b4..8f95b13ead60c1aed72e137068fbb985cb8a03d6 100644
--- a/net/base/network_change_notifier.cc
+++ b/net/base/network_change_notifier.cc
@@ -38,6 +38,10 @@ NetworkChangeNotifier::~NetworkChangeNotifier() {
g_network_change_notifier = NULL;
}
+bool NetworkChangeNotifier::IsCurrentlyWatchingDNS() const {
+ return false;
+}
+
// static
void NetworkChangeNotifier::SetFactory(
NetworkChangeNotifierFactory* factory) {
@@ -76,6 +80,12 @@ bool NetworkChangeNotifier::IsOffline() {
}
// static
+bool NetworkChangeNotifier::IsWatchingDNS() {
+ return g_network_change_notifier &&
+ g_network_change_notifier->IsCurrentlyWatchingDNS();
+}
+
+// static
NetworkChangeNotifier* NetworkChangeNotifier::CreateMock() {
return new MockNetworkChangeNotifier();
}
« no previous file with comments | « net/base/network_change_notifier.h ('k') | net/base/network_change_notifier_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698