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

Unified Diff: components/payments/content/android/BUILD.gn

Issue 2645813006: Download web payment manifests. (Closed)
Patch Set: At most INT_MAX sections in manifest and fingperints in section Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: components/payments/content/android/BUILD.gn
diff --git a/components/payments/content/android/BUILD.gn b/components/payments/content/android/BUILD.gn
index 8dafb9b75d61aaf8fd678c1d1a5a8ecba8196364..607dd988ebfbc07b91986d75e95a6227baec74e2 100644
--- a/components/payments/content/android/BUILD.gn
+++ b/components/payments/content/android/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/android/config.gni")
import("//build/config/android/rules.gni")
+import("//mojo/public/tools/bindings/mojom.gni")
static_library("android") {
sources = [
@@ -11,20 +12,65 @@ static_library("android") {
"currency_formatter_android.h",
"payment_details_validation_android.cc",
"payment_details_validation_android.h",
+ "payment_manifest_downloader_android.cc",
+ "payment_manifest_downloader_android.h",
+ "payment_manifest_parser_android.cc",
+ "payment_manifest_parser_android.h",
]
deps = [
+ ":downloader",
":jni_headers",
+ ":mojom",
"//base",
"//components/payments/content:payment_request",
"//components/payments/content:payment_validation",
"//components/payments/core",
+ "//components/strings",
+ "//content/public/browser",
+ "//net",
+ "//ui/base",
+ ]
+}
+
+static_library("downloader") {
+ sources = [
+ "payment_manifest_downloader.cc",
+ "payment_manifest_downloader.h",
+ ]
+ deps = [
+ "//base",
+ "//components/data_use_measurement/core",
+ "//components/link_header_util",
+ "//net",
]
}
generate_jni("jni_headers") {
sources = [
"//chrome/android/java/src/org/chromium/chrome/browser/payments/CurrencyFormatter.java",
+ "//chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestDownloader.java",
+ "//chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestParser.java",
"//chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentValidator.java",
]
jni_package = "payments"
}
+
+mojom("mojom") {
+ sources = [
+ "payment_manifest_parser.mojom",
+ ]
+}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "payment_manifest_downloader_test.cc",
+ ]
+ deps = [
+ ":downloader",
+ "//base",
+ "//content/test:test_support",
+ "//net:test_support",
+ "//testing/gtest",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698