diff options
Diffstat (limited to 'net/base/host_resolver.h')
-rw-r--r-- | net/base/host_resolver.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/base/host_resolver.h b/net/base/host_resolver.h index 3c7a9c9..8a88402 100644 --- a/net/base/host_resolver.h +++ b/net/base/host_resolver.h @@ -185,6 +185,10 @@ class SingleRequestHostResolver { CompletionCallback* callback, LoadLog* load_log); + // Cancels the in-progress request, if any. This prevents the callback + // from being invoked. Resolve() can be called again after cancelling. + void Cancel(); + private: // Callback for when the request to |resolver_| completes, so we dispatch // to the user's callback. |