request_priority.h revision 4e180b6a0b4720a9b8e9e959a882386f690f08ff
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.
4
5#ifndef NET_BASE_REQUEST_PRIORITY_H_
6#define NET_BASE_REQUEST_PRIORITY_H_
7
8namespace net {
9
10// Prioritization used in various parts of the networking code such
11// as connection prioritization and resource loading prioritization.
12enum RequestPriority {
13  IDLE = 0,
14  MINIMUM_PRIORITY = IDLE,
15  LOWEST,
16  DEFAULT_PRIORITY = LOWEST,
17  LOW,
18  MEDIUM,
19  HIGHEST,
20  NUM_PRIORITIES,
21};
22
23const char* RequestPriorityToString(RequestPriority priority);
24
25}  // namespace net
26
27#endif  // NET_BASE_REQUEST_PRIORITY_H_
28