| Index: net/dns/dns_config_watcher_mac.h
|
| diff --git a/net/dns/dns_config_watcher_mac.h b/net/dns/dns_config_watcher_mac.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d8fed7424d6f9bef297411953d73afed18634fce
|
| --- /dev/null
|
| +++ b/net/dns/dns_config_watcher_mac.h
|
| @@ -0,0 +1,26 @@
|
| +// 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.
|
| +
|
| +#include "base/callback_forward.h"
|
| +#include "net/dns/dns_config_service_posix.h"
|
| +#include "net/dns/notify_watcher_mac.h"
|
| +
|
| +namespace net {
|
| +namespace internal {
|
| +
|
| +// Watches DNS configuration on Mac.
|
| +class DnsConfigWatcher {
|
| + public:
|
| + bool Watch(const base::Callback<void(bool succeeded)>& callback);
|
| +
|
| + // Returns an error if the DNS configuration is invalid.
|
| + // Returns CONFIG_PARSE_POSIX_OK otherwise.
|
| + static ConfigParsePosixResult GetDnsConfigError();
|
| +
|
| + private:
|
| + NotifyWatcherMac watcher_;
|
| +};
|
| +
|
| +} // naespace internal
|
| +} // namespace net
|
|
|