OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_BASE_REQUEST_PRIORITY_H__ | 5 #ifndef NET_BASE_REQUEST_PRIORITY_H__ |
6 #define NET_BASE_REQUEST_PRIORITY_H__ | 6 #define NET_BASE_REQUEST_PRIORITY_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 namespace net { | 9 namespace net { |
10 | 10 |
11 // Prioritization used in various parts of the networking code such | 11 // Prioritization used in various parts of the networking code such |
12 // as connection prioritization and resource loading prioritization. | 12 // as connection prioritization and resource loading prioritization. |
13 enum RequestPriority { | 13 enum RequestPriority { |
14 HIGHEST = 0, // 0 must be the highest priority. | 14 MINIMUM_PRIORITY = 0, |
| 15 IDLE = 0, |
| 16 LOWEST, |
| 17 LOW, |
15 MEDIUM, | 18 MEDIUM, |
16 LOW, | 19 HIGHEST, |
17 LOWEST, | |
18 IDLE, | |
19 NUM_PRIORITIES, | 20 NUM_PRIORITIES, |
20 }; | 21 }; |
21 | 22 |
22 } // namespace net | 23 } // namespace net |
23 | 24 |
24 #endif // NET_BASE_REQUEST_PRIORITY_H__ | 25 #endif // NET_BASE_REQUEST_PRIORITY_H__ |
OLD | NEW |