Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1661)

Unified Diff: net/dns/host_resolver.h

Issue 1928743003: DNS: Support reprioritization of requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/dns/host_resolver.cc » ('j') | net/dns/host_resolver.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/host_resolver.h
diff --git a/net/dns/host_resolver.h b/net/dns/host_resolver.h
index 4e19e63af3f8311c507d195e3ecb933829995a34..840aeb80e35de806ec97caa2ef86e07825b78e3b 100644
--- a/net/dns/host_resolver.h
+++ b/net/dns/host_resolver.h
@@ -163,6 +163,12 @@ class NET_EXPORT HostResolver {
AddressList* addresses,
const BoundNetLog& net_log) = 0;
+ // Changes the priority of the specified request. |req| is the handle returned
+ // by Resolve(). ChangeRequestPriority must NOT be called after the request's
+ // completion callback has already run or the request was canceled.
+ virtual void ChangeRequestPriority(RequestHandle req,
+ RequestPriority priority);
+
// Cancels the specified request. |req| is the handle returned by Resolve().
// After a request is canceled, its completion callback will not be called.
// CancelRequest must NOT be called after the request's completion callback
« no previous file with comments | « no previous file | net/dns/host_resolver.cc » ('j') | net/dns/host_resolver.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698