OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_H_ |
| 6 #define COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_H_ |
| 7 |
| 8 #include <jni.h> |
| 9 |
| 10 namespace cronet { |
| 11 |
| 12 // Define request priority values like CRONET_REQUEST_PRIORITY_IDLE in a |
| 13 // way that ensures they're always the same than their Java counterpart. |
| 14 // |
| 15 // A Java counterpart will be generated for this enum. |
| 16 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.net |
| 17 // GENERATED_JAVA_CLASS_NAME_OVERRIDE: CronetUrlRequestPriority |
| 18 // GENERATED_JAVA_PREFIX_TO_STRIP: CRONET_REQUEST_PRIORITY_ |
| 19 enum CronetUrlRequestPriority { |
| 20 CRONET_REQUEST_PRIORITY_IDLE = 0, |
| 21 CRONET_REQUEST_PRIORITY_LOWEST = 1, |
| 22 CRONET_REQUEST_PRIORITY_LOW = 2, |
| 23 CRONET_REQUEST_PRIORITY_MEDIUM = 3, |
| 24 CRONET_REQUEST_PRIORITY_HIGHEST = 4, |
| 25 }; |
| 26 |
| 27 bool CronetUrlRequestRegisterJni(JNIEnv* env); |
| 28 |
| 29 } // namespace cronet |
| 30 |
| 31 #endif // COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_H_ |
OLD | NEW |