1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
|
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/jumbo.gni")
jumbo_static_library("content") {
sources = [
"can_make_payment_query_factory.cc",
"can_make_payment_query_factory.h",
"payment_details_converter.cc",
"payment_details_converter.h",
"payment_event_response_util.cc",
"payment_event_response_util.h",
"payment_handler_host.cc",
"payment_handler_host.h",
"payment_request_converter.cc",
"payment_request_converter.h",
]
deps = [
":content_common",
":utils",
"//components/autofill/core/browser",
"//components/keyed_service/content",
"//components/payments/content/utility",
"//components/payments/core",
"//components/payments/core:error_strings",
"//components/payments/mojom",
"//components/prefs",
"//components/strings:components_strings_grit",
"//components/ukm/content",
"//components/url_formatter",
"//content/public/browser",
"//third_party/blink/public:blink_headers",
"//url",
]
if (!is_android) {
sources += [
"autofill_payment_app_factory.cc",
"autofill_payment_app_factory.h",
"content_payment_request_delegate.h",
"initialization_task.cc",
"initialization_task.h",
"payment_app_factory.cc",
"payment_app_factory.h",
"payment_app_service.cc",
"payment_app_service.h",
"payment_app_service_factory.cc",
"payment_app_service_factory.h",
"payment_request.cc",
"payment_request.h",
"payment_request_dialog.h",
"payment_request_display_manager.cc",
"payment_request_display_manager.h",
"payment_request_spec.cc",
"payment_request_spec.h",
"payment_request_state.cc",
"payment_request_state.h",
"payment_request_web_contents_manager.cc",
"payment_request_web_contents_manager.h",
"payment_response_helper.cc",
"payment_response_helper.h",
"service_worker_payment_app.cc",
"service_worker_payment_app.h",
"service_worker_payment_app_factory.cc",
"service_worker_payment_app_factory.h",
]
deps += [ "//components/payments/core:method_strings" ]
}
}
# Files used by content and utility.
jumbo_static_library("content_common") {
sources = [
"web_app_manifest.cc",
"web_app_manifest.h",
]
deps = [
"//content/public/browser",
"//skia",
]
}
jumbo_static_library("utils") {
sources = [
"developer_console_logger.cc",
"developer_console_logger.h",
"installable_payment_app_crawler.cc",
"installable_payment_app_crawler.h",
"manifest_verifier.cc",
"manifest_verifier.h",
"payment_manifest_web_data_service.cc",
"payment_manifest_web_data_service.h",
"payment_method_manifest_table.cc",
"payment_method_manifest_table.h",
"service_worker_payment_app_finder.cc",
"service_worker_payment_app_finder.h",
"web_app_manifest_section_table.cc",
"web_app_manifest_section_table.h",
]
deps = [
":content_common",
"//components/autofill/core/browser",
"//components/payments/content/icon",
"//components/payments/content/utility",
"//components/payments/core",
"//components/payments/core:error_strings",
"//components/payments/core:method_strings",
"//components/strings",
"//components/webdata/common",
"//content/public/browser",
"//net",
"//sql",
"//third_party/blink/public:blink_headers",
"//ui/base",
]
public_deps = [
"//third_party/icu",
"//third_party/libaddressinput",
]
}
jumbo_source_set("unit_tests") {
testonly = true
sources = [
"payment_method_manifest_table_unittest.cc",
"service_worker_payment_app_finder_unittest.cc",
"test_content_payment_request_delegate.cc",
"test_content_payment_request_delegate.h",
"web_app_manifest_section_table_unittest.cc",
]
if (!is_android) {
sources += [
"payment_app_unittest.cc",
"payment_request_spec_unittest.cc",
"payment_request_state_unittest.cc",
"payment_response_helper_unittest.cc",
"service_worker_payment_app_unittest.cc",
]
}
deps = [
":content",
":utils",
"//base",
"//base/test:test_support",
"//components/autofill/core/browser",
"//components/autofill/core/browser:test_support",
"//components/payments/core",
"//components/payments/core:error_strings",
"//components/payments/core:test_support",
"//components/strings:components_strings_grit",
"//components/webdata/common",
"//content/test:test_support",
"//services/metrics/public/cpp:metrics_cpp",
"//sql",
"//testing/gtest",
"//third_party/blink/public:blink_headers",
"//third_party/icu",
"//third_party/libaddressinput:test_support",
]
}
|