| // Copyright 2021 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| module network.mojom; |
| |
| // This enum corresponds to net::RequestPriority. See its comments for details. |
| // It also corresponds to the "internal priority" of a fetch. |
| // https://fetch.spec.whatwg.org/#request-internal-priority |
| enum RequestPriority { |
| kThrottled = 0, |
| kIdle, |
| kLowest, |
| kLow, |
| kMedium, |
| kHighest |
| }; |
| |
| // Represents possible values for the fetch `priority` attribute. |
| // https://fetch.spec.whatwg.org/#enumdef-requestpriority |
| enum FetchPriorityAttribute { |
| kLow, |
| kAuto, |
| kHigh, |
| }; |