Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: net/base/request_priority.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
8 #include "net/base/net_export.h"
9
10 namespace net {
11
12 // Prioritization used in various parts of the networking code such
13 // as connection prioritization and resource loading prioritization.
14 // A Java counterpart will be generated for this enum.
15 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.net
16 // GENERATED_JAVA_CLASS_NAME_OVERRIDE: RequestPriority
17 // GENERATED_JAVA_PREFIX_TO_STRIP:
18 enum RequestPriority {
19 IDLE = 0,
20 MINIMUM_PRIORITY = IDLE,
21 LOWEST,
22 DEFAULT_PRIORITY = LOWEST,
23 LOW,
24 MEDIUM,
25 HIGHEST,
26 MAXIMUM_PRIORITY = HIGHEST,
27 };
28
29 // For simplicity, one can assume that one can index into array of
30 // NUM_PRIORITIES elements with a RequestPriority (i.e.,
31 // MINIMUM_PRIORITY == 0).
32 enum RequestPrioritySize {
33 NUM_PRIORITIES = MAXIMUM_PRIORITY + 1,
34 };
35
36 NET_EXPORT const char* RequestPriorityToString(RequestPriority priority);
37
38 } // namespace net
39
40 #endif // NET_BASE_REQUEST_PRIORITY_H_
OLDNEW
« no previous file with comments | « net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc ('k') | net/base/request_priority.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698