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.
5 #include "base/callback_forward.h"
6 #include "net/dns/dns_config_service_posix.h"
7 #include "net/dns/notify_watcher_mac.h"
12 // Watches DNS configuration on Mac.
13 class DnsConfigWatcher
{
15 bool Watch(const base::Callback
<void(bool succeeded
)>& callback
);
17 // Returns an error if the DNS configuration is invalid.
18 // Returns CONFIG_PARSE_POSIX_OK otherwise.
19 static ConfigParsePosixResult
CheckDnsConfig();
22 NotifyWatcherMac watcher_
;
25 } // namespace internal