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

Unified Diff: net/dns/dns_config_service_posix.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/dns/dns_config_service.cc ('k') | net/dns/dns_config_service_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « net/dns/dns_config_service.cc ('k') | net/dns/dns_config_service_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698