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

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

Issue 145213003: Initial upload of cronet for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed copyright year on sample code back to 2012 Created 6 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 | Annotate | Revision Log
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"
9
8 namespace net { 10 namespace net {
9 11
10 // Prioritization used in various parts of the networking code such 12 // Prioritization used in various parts of the networking code such
11 // as connection prioritization and resource loading prioritization. 13 // as connection prioritization and resource loading prioritization.
12 enum RequestPriority { 14 enum RequestPriority {
13 IDLE = 0, 15 IDLE = 0,
14 MINIMUM_PRIORITY = IDLE, 16 MINIMUM_PRIORITY = IDLE,
15 LOWEST, 17 LOWEST,
16 DEFAULT_PRIORITY = LOWEST, 18 DEFAULT_PRIORITY = LOWEST,
17 LOW, 19 LOW,
18 MEDIUM, 20 MEDIUM,
19 HIGHEST, 21 HIGHEST,
20 MAXIMUM_PRIORITY = HIGHEST, 22 MAXIMUM_PRIORITY = HIGHEST,
21 }; 23 };
22 24
23 // For simplicity, one can assume that one can index into array of 25 // For simplicity, one can assume that one can index into array of
24 // NUM_PRIORITIES elements with a RequestPriority (i.e., 26 // NUM_PRIORITIES elements with a RequestPriority (i.e.,
25 // MINIMUM_PRIORITY == 0). 27 // MINIMUM_PRIORITY == 0).
26 enum RequestPrioritySize { 28 enum RequestPrioritySize {
27 NUM_PRIORITIES = MAXIMUM_PRIORITY + 1, 29 NUM_PRIORITIES = MAXIMUM_PRIORITY + 1,
28 }; 30 };
29 31
30 const char* RequestPriorityToString(RequestPriority priority); 32 NET_EXPORT const char* RequestPriorityToString(RequestPriority priority);
31 33
32 } // namespace net 34 } // namespace net
33 35
34 #endif // NET_BASE_REQUEST_PRIORITY_H_ 36 #endif // NET_BASE_REQUEST_PRIORITY_H_
OLDNEW
« no previous file with comments | « build/android/adb_gdb_cronet_sample ('k') | net/cronet/android/java/src/org/chromium/net/UrlRequest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698