Revert "Always activate MojoApplicationHost"
[chromium-blink-merge.git] / net / base / request_priority.h
blobe663610fff4fefaae7f9228d3b3370e5049cdbca
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef NET_BASE_REQUEST_PRIORITY_H_
6 #define NET_BASE_REQUEST_PRIORITY_H_
8 #include "net/base/net_export.h"
10 namespace net {
12 // Prioritization used in various parts of the networking code such
13 // as connection prioritization and resource loading prioritization.
14 enum RequestPriority {
15 IDLE = 0,
16 MINIMUM_PRIORITY = IDLE,
17 LOWEST,
18 DEFAULT_PRIORITY = LOWEST,
19 LOW,
20 MEDIUM,
21 HIGHEST,
22 MAXIMUM_PRIORITY = HIGHEST,
25 // For simplicity, one can assume that one can index into array of
26 // NUM_PRIORITIES elements with a RequestPriority (i.e.,
27 // MINIMUM_PRIORITY == 0).
28 enum RequestPrioritySize {
29 NUM_PRIORITIES = MAXIMUM_PRIORITY + 1,
32 NET_EXPORT const char* RequestPriorityToString(RequestPriority priority);
34 } // namespace net
36 #endif // NET_BASE_REQUEST_PRIORITY_H_