blob: 9151a52a098b487bde6423bdd08330c9cce763fe [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_DNS_DNS_CONFIG_WATCHER_MAC_H_
#define NET_DNS_DNS_CONFIG_WATCHER_MAC_H_
#include "base/callback_forward.h"
#include "net/dns/notify_watcher_mac.h"
namespace net {
namespace internal {
// Watches DNS configuration on Mac.
class DnsConfigWatcher {
public:
bool Watch(const base::RepeatingCallback<void(bool succeeded)>& callback);
// Returns false iff a valid config could not be determined.
static bool CheckDnsConfig(bool* out_unhandled_options);
private:
NotifyWatcherMac watcher_;
};
} // namespace internal
} // namespace net
#endif // NET_DNS_DNS_CONFIG_WATCHER_MAC_H_