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/payment_details_validation_android
.h" | 12 #include "components/payments/content/android/payment_details_validation_android
.h" |
12 #include "components/payments/content/android/payment_manifest_downloader_androi
d.h" | 13 #include "components/payments/content/android/payment_manifest_downloader_androi
d.h" |
13 #include "components/payments/content/android/payment_manifest_parser_android.h" | 14 #include "components/payments/content/android/payment_manifest_parser_android.h" |
14 | 15 |
15 namespace payments { | 16 namespace payments { |
16 namespace android { | 17 namespace android { |
17 | 18 |
18 static base::android::RegistrationMethod kPaymentsRegisteredMethods[] = { | 19 static base::android::RegistrationMethod kPaymentsRegisteredMethods[] = { |
19 {"CurrencyFormatter", CurrencyFormatterAndroid::Register}, | 20 {"CurrencyFormatter", CurrencyFormatterAndroid::Register}, |
| 21 {"OriginSecurityChecker", RegisterOriginSecurityChecker}, |
20 {"PaymentManifestDownloader", RegisterPaymentManifestDownloader}, | 22 {"PaymentManifestDownloader", RegisterPaymentManifestDownloader}, |
21 {"PaymentManifestParser", RegisterPaymentManifestParser}, | 23 {"PaymentManifestParser", RegisterPaymentManifestParser}, |
22 {"PaymentValidator", RegisterPaymentValidator}, | 24 {"PaymentValidator", RegisterPaymentValidator}, |
23 }; | 25 }; |
24 | 26 |
25 bool RegisterPayments(JNIEnv* env) { | 27 bool RegisterPayments(JNIEnv* env) { |
26 return base::android::RegisterNativeMethods( | 28 return base::android::RegisterNativeMethods( |
27 env, kPaymentsRegisteredMethods, arraysize(kPaymentsRegisteredMethods)); | 29 env, kPaymentsRegisteredMethods, arraysize(kPaymentsRegisteredMethods)); |
28 } | 30 } |
29 | 31 |
30 } // namespace android | 32 } // namespace android |
31 } // namespace payments | 33 } // namespace payments |
OLD | NEW |