Chromium Code Reviews| 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 |