dns_config_watcher_mac.h 745 B

123456789101112131415161718192021222324252627
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef NET_DNS_DNS_CONFIG_WATCHER_MAC_H_
  5. #define NET_DNS_DNS_CONFIG_WATCHER_MAC_H_
  6. #include "base/callback_forward.h"
  7. #include "net/dns/notify_watcher_mac.h"
  8. namespace net::internal {
  9. // Watches DNS configuration on Mac.
  10. class DnsConfigWatcher {
  11. public:
  12. bool Watch(const base::RepeatingCallback<void(bool succeeded)>& callback);
  13. // Returns false iff a valid config could not be determined.
  14. static bool CheckDnsConfig(bool& out_unhandled_options);
  15. private:
  16. NotifyWatcherMac watcher_;
  17. };
  18. } // namespace net::internal
  19. #endif // NET_DNS_DNS_CONFIG_WATCHER_MAC_H_