| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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 #include "components/payments/content/android/component_jni_registrar.h" | 5 #include "components/payments/content/android/component_jni_registrar.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_registrar.h" | 8 #include "base/android/jni_registrar.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "components/payments/content/android/currency_formatter_android.h" | 10 #include "components/payments/content/android/currency_formatter_android.h" |
| 11 #include "components/payments/content/android/origin_security_checker_android.h" | 11 #include "components/payments/content/android/origin_security_checker_android.h" |
| 12 #include "components/payments/content/android/payment_details_validation_android
.h" | 12 #include "components/payments/content/android/payment_details_validation_android
.h" |
| 13 #include "components/payments/content/android/payment_manifest_downloader_androi
d.h" | |
| 14 #include "components/payments/content/android/payment_manifest_parser_android.h" | |
| 15 | 13 |
| 16 namespace payments { | 14 namespace payments { |
| 17 namespace android { | 15 namespace android { |
| 18 | 16 |
| 19 static base::android::RegistrationMethod kPaymentsRegisteredMethods[] = { | 17 static base::android::RegistrationMethod kPaymentsRegisteredMethods[] = { |
| 20 {"CurrencyFormatter", CurrencyFormatterAndroid::Register}, | 18 {"CurrencyFormatter", CurrencyFormatterAndroid::Register}, |
| 21 {"OriginSecurityChecker", RegisterOriginSecurityChecker}, | 19 {"OriginSecurityChecker", RegisterOriginSecurityChecker}, |
| 22 {"PaymentManifestDownloader", RegisterPaymentManifestDownloader}, | |
| 23 {"PaymentManifestParser", RegisterPaymentManifestParser}, | |
| 24 {"PaymentValidator", RegisterPaymentValidator}, | 20 {"PaymentValidator", RegisterPaymentValidator}, |
| 25 }; | 21 }; |
| 26 | 22 |
| 27 bool RegisterPayments(JNIEnv* env) { | 23 bool RegisterPayments(JNIEnv* env) { |
| 28 return base::android::RegisterNativeMethods( | 24 return base::android::RegisterNativeMethods( |
| 29 env, kPaymentsRegisteredMethods, arraysize(kPaymentsRegisteredMethods)); | 25 env, kPaymentsRegisteredMethods, arraysize(kPaymentsRegisteredMethods)); |
| 30 } | 26 } |
| 31 | 27 |
| 32 } // namespace android | 28 } // namespace android |
| 33 } // namespace payments | 29 } // namespace payments |
| OLD | NEW |