| 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 #ifndef COMPONENTS_PAYMENTS_CONTENT_ANDROID_UTILITY_PAYMENT_MANIFEST_PARSER_H_ | 5 #ifndef COMPONENTS_PAYMENTS_CONTENT_UTILITY_PAYMENT_MANIFEST_PARSER_H_ |
| 6 #define COMPONENTS_PAYMENTS_CONTENT_ANDROID_UTILITY_PAYMENT_MANIFEST_PARSER_H_ | 6 #define COMPONENTS_PAYMENTS_CONTENT_UTILITY_PAYMENT_MANIFEST_PARSER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "components/payments/content/android/payment_manifest_parser.mojom.h" | 12 #include "components/payments/content/payment_manifest_parser.mojom.h" |
| 13 | 13 |
| 14 namespace payments { | 14 namespace payments { |
| 15 | 15 |
| 16 // Parser for payment manifests. Should be used only in a utility process. | 16 // Parser for payment manifests. Should be used only in a utility process. |
| 17 // | 17 // |
| 18 // Example valid manifest structure: | 18 // Example valid manifest structure: |
| 19 // | 19 // |
| 20 // { | 20 // { |
| 21 // "android": [{ | 21 // "android": [{ |
| 22 // "package": "com.bobpay.app", | 22 // "package": "com.bobpay.app", |
| (...skipping 18 matching lines...) Expand all Loading... |
| 41 // mojom::PaymentManifestParser | 41 // mojom::PaymentManifestParser |
| 42 void Parse(const std::string& content, | 42 void Parse(const std::string& content, |
| 43 const ParseCallback& callback) override; | 43 const ParseCallback& callback) override; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 DISALLOW_COPY_AND_ASSIGN(PaymentManifestParser); | 46 DISALLOW_COPY_AND_ASSIGN(PaymentManifestParser); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace payments | 49 } // namespace payments |
| 50 | 50 |
| 51 #endif // COMPONENTS_PAYMENTS_CONTENT_ANDROID_UTILITY_PAYMENT_MANIFEST_PARSER_H
_ | 51 #endif // COMPONENTS_PAYMENTS_CONTENT_UTILITY_PAYMENT_MANIFEST_PARSER_H_ |
| OLD | NEW |