OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 #include "chrome/browser/payments/android/ssl_validity_checker_android.h" |
| 6 |
| 7 #include "base/android/scoped_java_ref.h" |
| 8 #include "chrome/browser/payments/ssl_validity_checker.h" |
| 9 #include "content/public/browser/web_contents.h" |
| 10 #include "jni/SslValidityChecker_jni.h" |
| 11 |
| 12 namespace payments { |
| 13 |
| 14 // static |
| 15 jboolean IsSslCertificateValid( |
| 16 JNIEnv* env, |
| 17 const base::android::JavaParamRef<jclass>& jcaller, |
| 18 const base::android::JavaParamRef<jobject>& jweb_contents) { |
| 19 return SslValidityChecker::IsSslCertificateValid( |
| 20 content::WebContents::FromJavaWebContents(jweb_contents)); |
| 21 } |
| 22 |
| 23 bool RegisterSslValidityChecker(JNIEnv* env) { |
| 24 return RegisterNativesImpl(env); |
| 25 } |
| 26 |
| 27 } // namespace payments |
OLD | NEW |