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

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

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 side-by-side diff with in-line comments
Download patch
Index: components/payments/content/BUILD.gn
diff --git a/components/payments/content/BUILD.gn b/components/payments/content/BUILD.gn
index bc33a0f821d7edb38cf18300593cd7cc690fdc5b..7fd84def140469121f1d5e5e1f26402f120e2b0d 100644
--- a/components/payments/content/BUILD.gn
+++ b/components/payments/content/BUILD.gn
@@ -4,24 +4,7 @@
import("//mojo/public/tools/bindings/mojom.gni")
-mojom("payment_request") {
- sources = [
- "payment_request.mojom",
- ]
-}
-
-mojom("payment_app") {
- sources = [
- "payment_app.mojom",
- ]
-
- public_deps = [
- ":payment_request",
- "//url/mojo:url_mojom_gurl",
- ]
-}
-
-static_library("payment_request_impl") {
+static_library("content") {
sources = [
"payment_request.cc",
"payment_request.h",
@@ -36,8 +19,8 @@ static_library("payment_request_impl") {
]
deps = [
- ":payment_request",
- ":payment_validation",
+ ":mojom",
+ ":utils",
"//components/autofill/core/browser",
"//components/payments/core",
"//content/public/browser",
@@ -45,20 +28,54 @@ static_library("payment_request_impl") {
]
}
-static_library("payment_validation") {
+mojom("mojom") {
+ sources = [
+ "payment_request.mojom",
+ ]
+}
+
+mojom("mojom_parser") {
+ sources = [
+ "payment_manifest_parser.mojom",
+ ]
+}
+
+mojom("mojom_payment_app") {
+ sources = [
+ "payment_app.mojom",
+ ]
+
+ public_deps = [
+ ":mojom",
+ "//url/mojo:url_mojom_gurl",
+ ]
+}
+
+static_library("utils") {
sources = [
"payment_details_validation.cc",
"payment_details_validation.h",
+ "payment_manifest_downloader.cc",
+ "payment_manifest_downloader.h",
+ "payment_manifest_parser_host.cc",
+ "payment_manifest_parser_host.h",
"payments_validators.cc",
"payments_validators.h",
]
deps = [
- ":payment_request",
+ ":mojom",
+ ":mojom_parser",
"//base",
"//components/autofill/core/browser",
+ "//components/data_use_measurement/core",
+ "//components/link_header_util",
"//components/payments/core",
+ "//components/strings",
+ "//content/public/browser",
+ "//net",
"//third_party/re2",
+ "//ui/base",
"//url",
]
@@ -71,19 +88,22 @@ static_library("payment_validation") {
source_set("unit_tests") {
testonly = true
sources = [
+ "payment_manifest_downloader_unittest.cc",
"payment_request_spec_unittest.cc",
"payment_request_state_unittest.cc",
"payments_validators_unittest.cc",
]
deps = [
- ":payment_request",
- ":payment_request_impl",
- ":payment_validation",
+ ":content",
+ ":mojom",
+ ":utils",
"//base",
"//base/test:test_support",
"//components/autofill/core/browser",
"//components/autofill/core/browser:test_support",
+ "//content/test:test_support",
+ "//net:test_support",
"//testing/gtest",
"//third_party/icu",
"//third_party/libaddressinput:test_support",

Powered by Google App Engine
This is Rietveld 408576698