Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / components / cronet / android / chromium_url_request.h
blob4296738358715f3f8e970e1273ec203f8261ddc3
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.
5 #ifndef COMPONENTS_CRONET_ANDROID_CHROMIUM_URL_REQUEST_H_
6 #define COMPONENTS_CRONET_ANDROID_CHROMIUM_URL_REQUEST_H_
8 #include <jni.h>
10 namespace cronet {
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 "components/cronet/android/chromium_url_request_priority_list.h"
17 #undef DEFINE_REQUEST_PRIORITY
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 "components/cronet/android/chromium_url_request_error_list.h"
25 #undef DEFINE_REQUEST_ERROR
28 bool ChromiumUrlRequestRegisterJni(JNIEnv* env);
30 } // namespace cronet
32 #endif // COMPONENTS_CRONET_ANDROID_CHROMIUM_URL_REQUEST_H_