Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(694)

Unified Diff: net/dns/dns_config_watcher_mac.h

Issue 135043003: Remove private system API calls in dns_config_service_posix on iOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix compile again Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/dns/dns_config_service_posix.cc ('k') | net/dns/dns_config_watcher_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0c3fc6a1a20536a22fd63c1a819fa782d653c914
--- /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 CheckDnsConfig();
+
+ private:
+ NotifyWatcherMac watcher_;
+};
+
+} // naespace internal
+} // namespace net
« no previous file with comments | « net/dns/dns_config_service_posix.cc ('k') | net/dns/dns_config_watcher_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698