diff options
author | Paul Stewart <pstew@chromium.org> | 2011-08-08 11:38:36 -0700 |
---|---|---|
committer | Paul Stewart <pstew@chromium.org> | 2011-08-16 15:18:57 -0700 |
commit | dd60e4549cc8898f7f517283eacc58f67570bd1f (patch) | |
tree | 0bafbdd8a87f9adcc72b119d2ba5dbde0853f6da /resolver.h | |
parent | 77cb681ab58c6623464a355e646138ab84d38573 (diff) | |
download | shill-dd60e4549cc8898f7f517283eacc58f67570bd1f.tar.gz |
shill: Add connection class
The connection class represents the snapshot of connectivity
state, including routing, address information and addressing.
It is able to apply itself as the "default" connection, by
setting routing table metrics and DNS resolver files.
BUG=chromium-os:19095
TEST=New unittest
Change-Id: I7021867ed8a8559db0e84f58a72692abaf105cad
Reviewed-on: http://gerrit.chromium.org/gerrit/5938
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
Diffstat (limited to 'resolver.h')
-rw-r--r-- | resolver.h | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -22,13 +22,17 @@ class Resolver { // Since this is a singleton, use Resolver::GetInstance()->Foo() static Resolver *GetInstance(); - void set_path(const FilePath &path) { path_ = path; } + virtual void set_path(const FilePath &path) { path_ = path; } - // Set the default domain name mservice parameters, given an ipconfig entry - bool SetDNS(const IPConfigRefPtr &ipconfig); + // Set the default domain name service parameters, given an ipconfig entry + virtual bool SetDNSFromIPConfig(const IPConfigRefPtr &ipconfig); + + // Set the default domain name service parameters, given an ipconfig entry + virtual bool SetDNSFromLists(const std::vector<std::string> &dns_servers, + const std::vector<std::string> &domain_search); // Remove any created domain name service file - bool ClearDNS(); + virtual bool ClearDNS(); protected: Resolver(); |