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

Unified Diff: content/common/url_loader.mojom

Issue 2646343007: [Mojo-Loading] Implement URLLoader::SetPriority (Closed)
Patch Set: fix Created 3 years, 11 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
Index: content/common/url_loader.mojom
diff --git a/content/common/url_loader.mojom b/content/common/url_loader.mojom
index 17af152dd8b4b296c2656a335a607fc93d95c9ba..98deb497c3ea1f5fc8a8f30ece6bd497a6ba2ff8 100644
--- a/content/common/url_loader.mojom
+++ b/content/common/url_loader.mojom
@@ -16,12 +16,25 @@ struct URLRequestRedirectInfo;
[Native]
struct URLLoaderStatus;
+// This enum corresponds to net::RequestPriority. See its comments for details.
+enum RequestPriority {
+ kThrottled = 0,
+ kIdle,
+ kLowest,
+ kLow,
+ kMedium,
+ kHighest
+};
+
// Destroying a URLLoader will cancel the associated request.
interface URLLoader {
// If the associated request has |auto_follow_redirects| set to false,
// then upon receiving an URLResponse with a non-NULL |redirect_url| field,
// |FollowRedirect| may be called to load the URL indicated by the redirect.
FollowRedirect();
+
+ // Sets the request priority.
+ SetPriority(RequestPriority priority, int32 intra_priority_value);
dcheng 2017/01/24 19:07:18 Nit: maybe document what intra_priority_value is?
yhirano 2017/01/27 07:53:55 I found no document but it looks so according to t
};
// Opaque handle passed from the browser process to a child process to manage

Powered by Google App Engine
This is Rietveld 408576698