| Index: net/base/host_resolver.h
|
| diff --git a/net/base/host_resolver.h b/net/base/host_resolver.h
|
| index cfd1c6e11fac97b3dedd01824d42feb1a0a1d665..f7873daae47000aa8d30c6bc2d053db33ab36c30 100644
|
| --- a/net/base/host_resolver.h
|
| +++ b/net/base/host_resolver.h
|
| @@ -98,27 +98,6 @@ class NET_EXPORT HostResolver {
|
| GURL referrer_;
|
| };
|
|
|
| - // Interface for observing the requests that flow through a HostResolver.
|
| - class Observer {
|
| - public:
|
| - virtual ~Observer() {}
|
| -
|
| - // Called at the start of HostResolver::Resolve(). |id| is a unique number
|
| - // given to the request, so it can be matched up with a corresponding call
|
| - // to OnFinishResolutionWithStatus() or OnCancelResolution().
|
| - virtual void OnStartResolution(int id, const RequestInfo& info) = 0;
|
| -
|
| - // Called on completion of request |id|. Note that if the request was
|
| - // cancelled, OnCancelResolution() will be called instead.
|
| - virtual void OnFinishResolutionWithStatus(int id, bool was_resolved,
|
| - const RequestInfo& info) = 0;
|
| -
|
| - // Called when request |id| has been cancelled. A request is "cancelled"
|
| - // if either the HostResolver is destroyed while a resolution is in
|
| - // progress, or HostResolver::CancelRequest() is called.
|
| - virtual void OnCancelResolution(int id, const RequestInfo& info) = 0;
|
| - };
|
| -
|
| // Opaque type used to cancel a request.
|
| typedef void* RequestHandle;
|
|
|
| @@ -173,14 +152,6 @@ class NET_EXPORT HostResolver {
|
| // After a request is cancelled, its completion callback will not be called.
|
| virtual void CancelRequest(RequestHandle req) = 0;
|
|
|
| - // Adds an observer to this resolver. The observer will be notified of the
|
| - // start and completion of all requests (excluding cancellation). |observer|
|
| - // must remain valid for the duration of this HostResolver's lifetime.
|
| - virtual void AddObserver(Observer* observer) = 0;
|
| -
|
| - // Unregisters an observer previously added by AddObserver().
|
| - virtual void RemoveObserver(Observer* observer) = 0;
|
| -
|
| // Sets the default AddressFamily to use when requests have left it
|
| // unspecified. For example, this could be used to restrict resolution
|
| // results to AF_INET by passing in ADDRESS_FAMILY_IPV4, or to
|
|
|