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

Unified Diff: net/base/network_change_notifier_mac.h

Issue 10873018: [net] Move DnsConfigService to NetworkChangeNotifier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment Created 8 years, 4 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/base/network_change_notifier_linux.cc ('k') | net/base/network_change_notifier_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_change_notifier_mac.h
diff --git a/net/base/network_change_notifier_mac.h b/net/base/network_change_notifier_mac.h
index 70299291f79b3a1ee3c5fe12a1ed9545699f73f8..9a9e6bf0b67d4374ecfb7609b48551183e551fe8 100644
--- a/net/base/network_change_notifier_mac.h
+++ b/net/base/network_change_notifier_mac.h
@@ -26,8 +26,6 @@ class NetworkChangeNotifierMac: public NetworkChangeNotifier {
// NetworkChangeNotifier implementation:
virtual ConnectionType GetCurrentConnectionType() const OVERRIDE;
- class DnsWatcherThread;
-
// Forwarder just exists to keep the NetworkConfigWatcherMac API out of
// NetworkChangeNotifierMac's public API.
class Forwarder : public NetworkConfigWatcherMac::Delegate {
@@ -47,6 +45,9 @@ class NetworkChangeNotifierMac: public NetworkChangeNotifier {
DISALLOW_COPY_AND_ASSIGN(Forwarder);
};
+ private:
+ class DnsConfigServiceThread;
+
// Methods directly called by the NetworkConfigWatcherMac::Delegate:
void StartReachabilityNotifications();
void SetDynamicStoreNotificationKeys(SCDynamicStoreRef store);
@@ -70,8 +71,7 @@ class NetworkChangeNotifierMac: public NetworkChangeNotifier {
Forwarder forwarder_;
scoped_ptr<const NetworkConfigWatcherMac> config_watcher_;
- // Thread on which we can run DnsConfigWatcher, which requires TYPE_IO.
- scoped_ptr<DnsWatcherThread> dns_watcher_thread_;
+ scoped_ptr<DnsConfigServiceThread> dns_config_service_thread_;
DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierMac);
};
« no previous file with comments | « net/base/network_change_notifier_linux.cc ('k') | net/base/network_change_notifier_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698