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 "chrome/browser/payments/android/chrome_payments_jni_registrar.h" | 5 #include "chrome/browser/payments/android/chrome_payments_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 "chrome/browser/payments/android/journey_logger_android.h" | 10 #include "chrome/browser/payments/android/journey_logger_android.h" |
| 11 #include "chrome/browser/payments/android/payment_manifest_downloader_android.h" |
| 12 #include "chrome/browser/payments/android/payment_manifest_parser_android.h" |
| 13 #include "chrome/browser/payments/android/payment_manifest_web_data_service_andr
oid.h" |
11 #include "chrome/browser/payments/android/ssl_validity_checker_android.h" | 14 #include "chrome/browser/payments/android/ssl_validity_checker_android.h" |
12 | 15 |
13 namespace payments { | 16 namespace payments { |
14 namespace android { | 17 namespace android { |
15 | 18 |
16 static base::android::RegistrationMethod kChromePaymentsRegisteredMethods[] = { | 19 static base::android::RegistrationMethod kChromePaymentsRegisteredMethods[] = { |
17 {"JourneyLogger", JourneyLoggerAndroid::Register}, | 20 {"JourneyLogger", JourneyLoggerAndroid::Register}, |
18 {"SslValidityChecker", RegisterSslValidityChecker}, | 21 {"SslValidityChecker", RegisterSslValidityChecker}, |
| 22 {"PaymentManifestDownloader", RegisterPaymentManifestDownloader}, |
| 23 {"PaymentManifestParser", RegisterPaymentManifestParser}, |
| 24 {"PaymentManifestWebDataService", |
| 25 PaymentManifestWebDataServiceAndroid::Register}, |
19 }; | 26 }; |
20 | 27 |
21 bool RegisterChromePayments(JNIEnv* env) { | 28 bool RegisterChromePayments(JNIEnv* env) { |
22 return base::android::RegisterNativeMethods( | 29 return base::android::RegisterNativeMethods( |
23 env, kChromePaymentsRegisteredMethods, | 30 env, kChromePaymentsRegisteredMethods, |
24 arraysize(kChromePaymentsRegisteredMethods)); | 31 arraysize(kChromePaymentsRegisteredMethods)); |
25 } | 32 } |
26 | 33 |
27 } // namespace android | 34 } // namespace android |
28 } // namespace payments | 35 } // namespace payments |
OLD | NEW |