diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-19 22:45:53 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-19 22:45:53 +0000 |
commit | 61a86c4d5644817d291e7f22ffd0b0b5cef56295 (patch) | |
tree | dfd15e590bbbf44af479f702875d24aa19d1f491 /net/base/host_resolver_impl.h | |
parent | 74d7e1d0cb8040ba0bfe15619ccb240e5c7d5c19 (diff) | |
download | chromium_src-61a86c4d5644817d291e7f22ffd0b0b5cef56295.zip chromium_src-61a86c4d5644817d291e7f22ffd0b0b5cef56295.tar.gz chromium_src-61a86c4d5644817d291e7f22ffd0b0b5cef56295.tar.bz2 |
Fix crash on IP address change.
Revert r43908: "Flush socket pools and SPDY session pool properly on explicit requests and network changes."
This change was reverted on the 375 branch, but not on trunk.
BUG=41190
Review URL: http://codereview.chromium.org/1604045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44973 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/host_resolver_impl.h')
-rw-r--r-- | net/base/host_resolver_impl.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/base/host_resolver_impl.h b/net/base/host_resolver_impl.h index 4814921..1a182b3 100644 --- a/net/base/host_resolver_impl.h +++ b/net/base/host_resolver_impl.h @@ -47,7 +47,8 @@ namespace net { // // Requests are ordered in the queue based on their priority. -class HostResolverImpl : public HostResolver { +class HostResolverImpl : public HostResolver, + public NetworkChangeNotifier::Observer { public: // The index into |job_pools_| for the various job pools. Pools with a higher // index have lower priority. @@ -87,7 +88,6 @@ class HostResolverImpl : public HostResolver { virtual void CancelRequest(RequestHandle req); virtual void AddObserver(HostResolver::Observer* observer); virtual void RemoveObserver(HostResolver::Observer* observer); - virtual void Flush(); // Set address family, and disable IPv6 probe support. virtual void SetDefaultAddressFamily(AddressFamily address_family); @@ -180,6 +180,9 @@ class HostResolverImpl : public HostResolver { int request_id, const RequestInfo& info); + // NetworkChangeNotifier::Observer methods: + virtual void OnIPAddressChanged(); + // Notify IPv6ProbeJob not to call back, and discard reference to the job. void DiscardIPv6ProbeJob(); |