Index: net/base/dns_reload_timer.h |
=================================================================== |
--- net/base/dns_reload_timer.h (revision 70147) |
+++ net/base/dns_reload_timer.h (working copy) |
@@ -8,7 +8,12 @@ |
#include "build/build_config.h" |
-#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD) |
+#define WATCH_RESOLV_CONF \ |
+ defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD) |
+ |
+#if WATCH_RESOLV_CONF |
+namespace base { class Thread; } |
+ |
namespace net { |
// DnsReloadTimerExpired tests the thread local DNS reload timer and, if it has |
@@ -16,6 +21,14 @@ |
// host_resolver_proc.cc for details. |
bool DnsReloadTimerHasExpired(); |
+// Returns true if a change to resolver configuration has been detected. |
+bool ResolvConfUpdated(); |
+ |
+// Installs a FileWatch on system's resolver config (/etc/resolv.conf). |
+// FileWatch has to run in file thread, so all this does is schedule a task to |
+// run on file_thread. |
+void InitResolvConfWatcher(base::Thread* file_thread); |
+ |
} // namespace net |
#endif |