| Index: net/dns/dns_config_service_posix.h
|
| diff --git a/net/dns/dns_config_service_posix.h b/net/dns/dns_config_service_posix.h
|
| index 029e467eb1c3afe35143ceffe22b41dd53814968..14504571b1a43bbbc2eab89dcbb6f4747ae8dab8 100644
|
| --- a/net/dns/dns_config_service_posix.h
|
| +++ b/net/dns/dns_config_service_posix.h
|
| @@ -15,8 +15,6 @@
|
|
|
| namespace net {
|
|
|
| -class SerialWorker;
|
| -
|
| // Use DnsConfigService::CreateSystemService to use it outside of tests.
|
| namespace internal {
|
|
|
| @@ -26,11 +24,20 @@ class NET_EXPORT_PRIVATE DnsConfigServicePosix : public DnsConfigService {
|
| virtual ~DnsConfigServicePosix();
|
|
|
| private:
|
| - // NetworkChangeNotifier::DNSObserver:
|
| - virtual void OnDNSChanged(unsigned detail) OVERRIDE;
|
| + class Watcher;
|
| + class ConfigReader;
|
| + class HostsReader;
|
| +
|
| + // DnsConfigService:
|
| + virtual void ReadNow() OVERRIDE;
|
| + virtual bool StartWatching() OVERRIDE;
|
| +
|
| + void OnConfigChanged(bool succeeded);
|
| + void OnHostsChanged(bool succeeded);
|
|
|
| - scoped_refptr<SerialWorker> config_reader_;
|
| - scoped_refptr<SerialWorker> hosts_reader_;
|
| + scoped_ptr<Watcher> watcher_;
|
| + scoped_refptr<ConfigReader> config_reader_;
|
| + scoped_refptr<HostsReader> hosts_reader_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(DnsConfigServicePosix);
|
| };
|
|
|