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

Side by Side Diff: components/cronet/android/chromium_url_request.h

Issue 2361413002: Obliterate legacy cronet API. All of its users have been migrated. (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 COMPONENTS_CRONET_ANDROID_CHROMIUM_URL_REQUEST_H_ 5 #ifndef COMPONENTS_CRONET_ANDROID_CHROMIUM_URL_REQUEST_H_
6 #define COMPONENTS_CRONET_ANDROID_CHROMIUM_URL_REQUEST_H_ 6 #define COMPONENTS_CRONET_ANDROID_CHROMIUM_URL_REQUEST_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 namespace cronet { 10 namespace cronet {
(...skipping 22 matching lines...) Expand all
33 // GENERATED_JAVA_PREFIX_TO_STRIP: REQUEST_ERROR_ 33 // GENERATED_JAVA_PREFIX_TO_STRIP: REQUEST_ERROR_
34 enum UrlRequestError { 34 enum UrlRequestError {
35 REQUEST_ERROR_SUCCESS = 0, 35 REQUEST_ERROR_SUCCESS = 0,
36 REQUEST_ERROR_UNKNOWN = 1, 36 REQUEST_ERROR_UNKNOWN = 1,
37 REQUEST_ERROR_MALFORMED_URL = 2, 37 REQUEST_ERROR_MALFORMED_URL = 2,
38 REQUEST_ERROR_CONNECTION_TIMED_OUT = 3, 38 REQUEST_ERROR_CONNECTION_TIMED_OUT = 3,
39 REQUEST_ERROR_UNKNOWN_HOST = 4, 39 REQUEST_ERROR_UNKNOWN_HOST = 4,
40 REQUEST_ERROR_TOO_MANY_REDIRECTS = 5, 40 REQUEST_ERROR_TOO_MANY_REDIRECTS = 5,
41 }; 41 };
42 42
43 bool ChromiumUrlRequestRegisterJni(JNIEnv* env);
44
45 } // namespace cronet 43 } // namespace cronet
46 44
47 #endif // COMPONENTS_CRONET_ANDROID_CHROMIUM_URL_REQUEST_H_ 45 #endif // COMPONENTS_CRONET_ANDROID_CHROMIUM_URL_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698