Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / net / dns / dns_config_watcher_mac.h
blobd3e9924626c7b9d1c8904817c2148f163e3593be
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"
9 namespace net {
10 namespace internal {
12 // Watches DNS configuration on Mac.
13 class DnsConfigWatcher {
14 public:
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();
21 private:
22 NotifyWatcherMac watcher_;
25 } // namespace internal
26 } // namespace net