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

Side by Side Diff: components/payments/content/utility/payment_manifest_parser.h

Issue 2759283002: Make payment manifest download/parse cross-platform (Closed)
Patch Set: Fix duplicate resource identifier. Created 3 years, 9 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698