| 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 NET_CRONET_ANDROID_URLREQUEST_H_ | |
| 6 #define NET_CRONET_ANDROID_URLREQUEST_H_ | |
| 7 | |
| 8 #include <jni.h> | |
| 9 | |
| 10 namespace net { | |
| 11 | |
| 12 // Define request priority values like REQUEST_PRIORITY_IDLE in a | |
| 13 // way that ensures they're always the same than their Java counterpart. | |
| 14 enum UrlRequestPriority { | |
| 15 #define DEFINE_REQUEST_PRIORITY(x, y) REQUEST_PRIORITY_##x = y, | |
| 16 #include "net/cronet/android/org_chromium_net_UrlRequest_priority_list.h" | |
| 17 #undef DEFINE_REQUEST_PRIORITY | |
| 18 }; | |
| 19 | |
| 20 // Define request priority values like REQUEST_ERROR_SUCCESS in a | |
| 21 // way that ensures they're always the same than their Java counterpart. | |
| 22 enum UrlRequestError { | |
| 23 #define DEFINE_REQUEST_ERROR(x, y) REQUEST_ERROR_##x = y, | |
| 24 #include "net/cronet/android/org_chromium_net_UrlRequest_error_list.h" | |
| 25 #undef DEFINE_REQUEST_ERROR | |
| 26 }; | |
| 27 | |
| 28 bool UrlRequestRegisterJni(JNIEnv* env); | |
| 29 | |
| 30 } // namespace net | |
| 31 | |
| 32 #endif // NET_CRONET_ANDROID_URLREQUEST_H_ | |
| OLD | NEW |