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

Unified Diff: net/base/network_change_notifier.h

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/file_path_watcher_callback.cc ('k') | net/base/network_change_notifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_change_notifier.h
diff --git a/net/base/network_change_notifier.h b/net/base/network_change_notifier.h
index f4875015e48532b15d71bd94da6c8d00d9f36da7..23a4e858b04799b228c48bdc3345faca8d85aef0 100644
--- a/net/base/network_change_notifier.h
+++ b/net/base/network_change_notifier.h
@@ -84,6 +84,12 @@ class NET_EXPORT NetworkChangeNotifier {
// cheap as this could be called (repeatedly) from the IO thread.
virtual bool IsCurrentlyOffline() const = 0;
+ // Returns true if DNS watchers are operational.
+ // Otherwise, OnDNSChanged might not be issued for future changes.
+ // TODO(szym): This is a temporary interface, consider restarting them.
+ // http://crbug.com/116139
+ virtual bool IsCurrentlyWatchingDNS() const;
+
// Replaces the default class factory instance of NetworkChangeNotifier class.
// The method will take over the ownership of |factory| object.
static void SetFactory(NetworkChangeNotifierFactory* factory);
@@ -105,6 +111,9 @@ class NET_EXPORT NetworkChangeNotifier {
// will be successfully.
static bool IsOffline();
+ // Returns true if DNS watchers are operational.
+ static bool IsWatchingDNS();
+
// Like Create(), but for use in tests. The mock object doesn't monitor any
// events, it merely rebroadcasts notifications when requested.
static NetworkChangeNotifier* CreateMock();
« no previous file with comments | « net/base/file_path_watcher_callback.cc ('k') | net/base/network_change_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698