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

Side by Side Diff: net/android/cert_verify_result_android.h

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none Created 4 years, 4 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_ANDROID_CERT_VERIFY_RESULT_ANDROID_H_ 5 #ifndef NET_ANDROID_CERT_VERIFY_RESULT_ANDROID_H_
6 #define NET_ANDROID_CERT_VERIFY_RESULT_ANDROID_H_ 6 #define NET_ANDROID_CERT_VERIFY_RESULT_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 26 matching lines...) Expand all
37 // its value is not correct for a web server. 37 // its value is not correct for a web server.
38 CERT_VERIFY_STATUS_ANDROID_INCORRECT_KEY_USAGE = -6, 38 CERT_VERIFY_STATUS_ANDROID_INCORRECT_KEY_USAGE = -6,
39 }; 39 };
40 40
41 // Extract parameters out of an AndroidCertVerifyResult object. 41 // Extract parameters out of an AndroidCertVerifyResult object.
42 void ExtractCertVerifyResult(jobject result, 42 void ExtractCertVerifyResult(jobject result,
43 CertVerifyStatusAndroid* status, 43 CertVerifyStatusAndroid* status,
44 bool* is_issued_by_known_root, 44 bool* is_issued_by_known_root,
45 std::vector<std::string>* verified_chain); 45 std::vector<std::string>* verified_chain);
46 46
47 // Register JNI methods.
48 bool RegisterCertVerifyResult(JNIEnv* env);
49
50 } // namespace android 47 } // namespace android
51 48
52 } // namespace net 49 } // namespace net
53 50
54 #endif // NET_ANDROID_CERT_VERIFY_RESULT_ANDROID_H_ 51 #endif // NET_ANDROID_CERT_VERIFY_RESULT_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698