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

Side by Side Diff: components/payments/content/android/payment_manifest_parser_android.h

Issue 2838433002: [Payments] Cache payment manifests. (Closed)
Patch Set: fix tests Created 3 years, 8 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
(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 #ifndef COMPONENTS_PAYMENTS_CONTENT_ANDROID_PAYMENT_MANIFEST_PARSER_ANDROID_H_
6 #define COMPONENTS_PAYMENTS_CONTENT_ANDROID_PAYMENT_MANIFEST_PARSER_ANDROID_H_
7
8 #include <jni.h>
9
10 #include <memory>
11 #include <vector>
12
13 #include "base/android/jni_android.h"
14 #include "base/android/scoped_java_ref.h"
15 #include "base/macros.h"
16 #include "components/payments/content/payment_manifest_parser_host.h"
17
18 namespace payments {
19
20 // Android wrapper for the host of the utility process that parses manifest
21 // contents.
22 class PaymentManifestParserAndroid {
23 public:
24 PaymentManifestParserAndroid();
25 ~PaymentManifestParserAndroid();
26
27 void StartUtilityProcess(JNIEnv* env,
28 const base::android::JavaParamRef<jobject>& jcaller);
29
30 void ParsePaymentMethodManifest(
31 JNIEnv* env,
32 const base::android::JavaParamRef<jobject>& jcaller,
33 const base::android::JavaParamRef<jstring>& jcontent,
34 const base::android::JavaParamRef<jobject>& jcallback);
35
36 void ParseWebAppManifest(
37 JNIEnv* env,
38 const base::android::JavaParamRef<jobject>& jcaller,
39 const base::android::JavaParamRef<jstring>& jcontent,
40 const base::android::JavaParamRef<jobject>& jcallback);
41
42 // Deletes this object.
43 void StopUtilityProcess(JNIEnv* env,
44 const base::android::JavaParamRef<jobject>& jcaller);
45
46 private:
47 PaymentManifestParserHost host_;
48
49 DISALLOW_COPY_AND_ASSIGN(PaymentManifestParserAndroid);
50 };
51
52 bool RegisterPaymentManifestParser(JNIEnv* env);
53
54 } // namespace payments
55
56 #endif // COMPONENTS_PAYMENTS_CONTENT_ANDROID_PAYMENT_MANIFEST_PARSER_ANDROID_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698