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

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

Issue 2505703002: Update error message in java_cpp_enum.py. (Closed)
Patch Set: Fix //net/base/request_priority.h empty prefix Created 4 years, 1 month 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
« no previous file with comments | « build/android/gyp/java_cpp_enum_tests.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 7
8 #include "net/base/net_export.h" 8 #include "net/base/net_export.h"
9 9
10 namespace net { 10 namespace net {
11 11
12 // Prioritization used in various parts of the networking code such 12 // Prioritization used in various parts of the networking code such
13 // as connection prioritization and resource loading prioritization. 13 // as connection prioritization and resource loading prioritization.
14 // A Java counterpart will be generated for this enum. 14 // A Java counterpart will be generated for this enum.
15 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.net 15 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.net
16 // GENERATED_JAVA_CLASS_NAME_OVERRIDE: RequestPriority 16 // GENERATED_JAVA_CLASS_NAME_OVERRIDE: RequestPriority
17 // GENERATED_JAVA_PREFIX_TO_STRIP:
18 enum RequestPriority { 17 enum RequestPriority {
19 THROTTLED = 0, // Used to signal that resources 18 THROTTLED = 0, // Used to signal that resources
20 // should be reserved for following 19 // should be reserved for following
21 // requests (i.e. that higher priority 20 // requests (i.e. that higher priority
22 // following requests are expected). 21 // following requests are expected).
23 MINIMUM_PRIORITY = THROTTLED, 22 MINIMUM_PRIORITY = THROTTLED,
24 IDLE, // Default "as resources available" level. 23 IDLE, // Default "as resources available" level.
25 LOWEST, 24 LOWEST,
26 DEFAULT_PRIORITY = LOWEST, 25 DEFAULT_PRIORITY = LOWEST,
27 LOW, 26 LOW,
28 MEDIUM, 27 MEDIUM,
29 HIGHEST, 28 HIGHEST,
30 MAXIMUM_PRIORITY = HIGHEST, 29 MAXIMUM_PRIORITY = HIGHEST,
31 }; 30 };
32 31
33 // For simplicity, one can assume that one can index into array of 32 // For simplicity, one can assume that one can index into array of
34 // NUM_PRIORITIES elements with a RequestPriority (i.e., 33 // NUM_PRIORITIES elements with a RequestPriority (i.e.,
35 // MINIMUM_PRIORITY == 0). 34 // MINIMUM_PRIORITY == 0).
36 enum RequestPrioritySize { 35 enum RequestPrioritySize {
37 NUM_PRIORITIES = MAXIMUM_PRIORITY + 1, 36 NUM_PRIORITIES = MAXIMUM_PRIORITY + 1,
38 }; 37 };
39 38
40 NET_EXPORT const char* RequestPriorityToString(RequestPriority priority); 39 NET_EXPORT const char* RequestPriorityToString(RequestPriority priority);
41 40
42 } // namespace net 41 } // namespace net
43 42
44 #endif // NET_BASE_REQUEST_PRIORITY_H_ 43 #endif // NET_BASE_REQUEST_PRIORITY_H_
OLDNEW
« no previous file with comments | « build/android/gyp/java_cpp_enum_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698