summaryrefslogtreecommitdiffstats
path: root/net/base/host_resolver_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/host_resolver_impl.h')
-rw-r--r--net/base/host_resolver_impl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/base/host_resolver_impl.h b/net/base/host_resolver_impl.h
index a06a478..58d8598 100644
--- a/net/base/host_resolver_impl.h
+++ b/net/base/host_resolver_impl.h
@@ -156,6 +156,14 @@ class HostResolverImpl : public HostResolver,
void OnJobComplete(Job* job, int net_error, int os_error,
const AddressList& addrlist);
+ // Aborts |job|. Same as OnJobComplete() except does not remove |job|
+ // from |jobs_| and does not cache the result (ERR_ABORTED).
+ void AbortJob(Job* job);
+
+ // Used by both OnJobComplete() and AbortJob();
+ void OnJobCompleteInternal(Job* job, int net_error, int os_error,
+ const AddressList& addrlist);
+
// Called when a request has just been started.
void OnStartRequest(const BoundNetLog& source_net_log,
const BoundNetLog& request_net_log,
@@ -211,6 +219,12 @@ class HostResolverImpl : public HostResolver,
// Adds a pending request |req| to |pool|.
int EnqueueRequest(JobPool* pool, Request* req);
+ // Cancels all jobs.
+ void CancelAllJobs();
+
+ // Aborts all jobs.
+ void AbortAllJobs();
+
// Cache of host resolution results.
scoped_ptr<HostCache> cache_;