| Index: net/base/network_change_notifier_mac.h
|
| diff --git a/net/base/network_change_notifier_mac.h b/net/base/network_change_notifier_mac.h
|
| index ec2bb1fed50e97c42be5bf424f01e8e9117f9546..8857685f261384d9915971f40cde7f0fe5d40642 100644
|
| --- a/net/base/network_change_notifier_mac.h
|
| +++ b/net/base/network_change_notifier_mac.h
|
| @@ -14,6 +14,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/synchronization/condition_variable.h"
|
| #include "base/synchronization/lock.h"
|
| +#include "net/base/file_path_watcher_callback.h"
|
| #include "net/base/network_change_notifier.h"
|
| #include "net/base/network_config_watcher_mac.h"
|
|
|
| @@ -24,9 +25,11 @@ class NetworkChangeNotifierMac: public NetworkChangeNotifier {
|
| NetworkChangeNotifierMac();
|
| virtual ~NetworkChangeNotifierMac();
|
|
|
| - // NetworkChangeNotifier implementation:
|
| + // NetworkChangeNotifier:
|
| virtual bool IsCurrentlyOffline() const OVERRIDE;
|
|
|
| + virtual bool IsCurrentlyWatchingDNS() const OVERRIDE;
|
| +
|
| private:
|
| enum OnlineState {
|
| UNINITIALIZED = -1,
|
| @@ -34,6 +37,8 @@ class NetworkChangeNotifierMac: public NetworkChangeNotifier {
|
| ONLINE = 1
|
| };
|
|
|
| + class DNSWatcher;
|
| +
|
| // Forwarder just exists to keep the NetworkConfigWatcherMac API out of
|
| // NetworkChangeNotifierMac's public API.
|
| class Forwarder : public NetworkConfigWatcherMac::Delegate {
|
| @@ -83,6 +88,8 @@ class NetworkChangeNotifierMac: public NetworkChangeNotifier {
|
| Forwarder forwarder_;
|
| scoped_ptr<const NetworkConfigWatcherMac> config_watcher_;
|
|
|
| + scoped_ptr<DNSWatcher> dns_watcher_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierMac);
|
| };
|
|
|
|
|