summaryrefslogtreecommitdiffstats
path: root/net/android/network_change_notifier_android.h
diff options
context:
space:
mode:
authorttuttle@chromium.org <ttuttle@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-21 20:31:14 +0000
committerttuttle@chromium.org <ttuttle@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-21 20:31:14 +0000
commitf667903d802f93956d4efcc30be5f4e30ce294f9 (patch)
tree4bbbe2b59c499173e368331b6ce87b76d888c13e /net/android/network_change_notifier_android.h
parentcf2a970c2c65f8111f3015d640118e1fb98dc485 (diff)
downloadchromium_src-f667903d802f93956d4efcc30be5f4e30ce294f9.zip
chromium_src-f667903d802f93956d4efcc30be5f4e30ce294f9.tar.gz
chromium_src-f667903d802f93956d4efcc30be5f4e30ce294f9.tar.bz2
Add Android support in DnsConfigServicePosix.
Add support for Android in DnsConfigServicePosix by: 1. Adding ReadDnsConfig that reads the net.dns[12] system properties. 2. Adding ConfigWatcher that triggers on network change events. 3. Pointing HostsWatcher at /system/etc/hosts. BUG=149752,334794 Review URL: https://codereview.chromium.org/138623003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246101 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/android/network_change_notifier_android.h')
-rw-r--r--net/android/network_change_notifier_android.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/android/network_change_notifier_android.h b/net/android/network_change_notifier_android.h
index f167cfc..e82b852 100644
--- a/net/android/network_change_notifier_android.h
+++ b/net/android/network_change_notifier_android.h
@@ -56,12 +56,15 @@ class NET_EXPORT_PRIVATE NetworkChangeNotifierAndroid
friend class NetworkChangeNotifierAndroidTest;
friend class NetworkChangeNotifierFactoryAndroid;
+ class DnsConfigServiceThread;
+
explicit NetworkChangeNotifierAndroid(
NetworkChangeNotifierDelegateAndroid* delegate);
static NetworkChangeCalculatorParams NetworkChangeCalculatorParamsAndroid();
NetworkChangeNotifierDelegateAndroid* const delegate_;
+ scoped_ptr<DnsConfigServiceThread> dns_config_service_thread_;
DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierAndroid);
};