summaryrefslogtreecommitdiffstats
path: root/net/base/network_change_notifier.h
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-05 23:40:51 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-05 23:40:51 +0000
commite1439025774175eccdef9ef61d680fbed1207c1a (patch)
tree02702fdab70a14a34add1e0f8c24669217cdd727 /net/base/network_change_notifier.h
parentc3b33fae9fb7a278e3fc472646a24034514d01b1 (diff)
downloadchromium_src-e1439025774175eccdef9ef61d680fbed1207c1a.zip
chromium_src-e1439025774175eccdef9ef61d680fbed1207c1a.tar.gz
chromium_src-e1439025774175eccdef9ef61d680fbed1207c1a.tar.bz2
Revert 99666 (sync tests started failing on mac10.6:
http://build.chromium.org/p/chromium/builders/Mac10.6%20Sync/builds/9198 - Linux: Monitor resolv.conf for changes and use that to reload resolver. BUG=67734 TEST=manual testing by poking at resolv.conf Review URL: http://codereview.chromium.org/6903061 TBR=craig.schlenter@chromium.org Review URL: http://codereview.chromium.org/7833030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99677 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/network_change_notifier.h')
-rw-r--r--net/base/network_change_notifier.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/net/base/network_change_notifier.h b/net/base/network_change_notifier.h
index 39b9e05..dad71c3 100644
--- a/net/base/network_change_notifier.h
+++ b/net/base/network_change_notifier.h
@@ -50,22 +50,6 @@ class NET_EXPORT NetworkChangeNotifier {
DISALLOW_COPY_AND_ASSIGN(OnlineStateObserver);
};
- class NET_EXPORT DNSObserver {
- public:
- virtual ~DNSObserver() {}
-
- // Will be called when the DNS resolver of the system may have changed.
- // This is only used on Linux currently and watches /etc/resolv.conf
- // and /etc/hosts
- virtual void OnDNSChanged() = 0;
-
- protected:
- DNSObserver() {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(DNSObserver);
- };
-
virtual ~NetworkChangeNotifier();
// See the description of NetworkChangeNotifier::IsOffline().
@@ -105,7 +89,6 @@ class NET_EXPORT NetworkChangeNotifier {
// thread), in which case it will simply do nothing.
static void AddIPAddressObserver(IPAddressObserver* observer);
static void AddOnlineStateObserver(OnlineStateObserver* observer);
- static void AddDNSObserver(DNSObserver* observer);
// Unregisters |observer| from receiving notifications. This must be called
// on the same thread on which AddObserver() was called. Like AddObserver(),
@@ -116,7 +99,6 @@ class NET_EXPORT NetworkChangeNotifier {
// there's no reason to use the API in this risky way, so don't do it.
static void RemoveIPAddressObserver(IPAddressObserver* observer);
static void RemoveOnlineStateObserver(OnlineStateObserver* observer);
- static void RemoveDNSObserver(DNSObserver* observer);
// Allow unit tests to trigger notifications.
static void NotifyObserversOfIPAddressChangeForTests() {
@@ -131,15 +113,12 @@ class NET_EXPORT NetworkChangeNotifier {
// tests.
static void NotifyObserversOfIPAddressChange();
static void NotifyObserversOfOnlineStateChange();
- static void NotifyObserversOfDNSChange();
private:
const scoped_refptr<ObserverListThreadSafe<IPAddressObserver> >
ip_address_observer_list_;
const scoped_refptr<ObserverListThreadSafe<OnlineStateObserver> >
online_state_observer_list_;
- const scoped_refptr<ObserverListThreadSafe<DNSObserver> >
- resolver_state_observer_list_;
DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifier);
};