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
170
171
172
173
174
175
176
|
# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
assert(!is_ios)
# This source set should contain only types and constants and no dependencies,
# for use in crosapi type mappings.
source_set("constants") {
sources = [
"install_result_code.cc",
"install_result_code.h",
"uninstall_result_code.cc",
"uninstall_result_code.h",
]
}
source_set("browser") {
sources = [
"banners/app_banner_manager.cc",
"banners/app_banner_manager.h",
"banners/app_banner_metrics.cc",
"banners/app_banner_metrics.h",
"banners/app_banner_settings_helper.cc",
"banners/app_banner_settings_helper.h",
"features.cc",
"features.h",
"installable/installable_data.cc",
"installable/installable_data.h",
"installable/installable_logging.cc",
"installable/installable_logging.h",
"installable/installable_manager.cc",
"installable/installable_manager.h",
"installable/installable_metrics.cc",
"installable/installable_metrics.h",
"installable/installable_params.cc",
"installable/installable_params.h",
"installable/installable_task_queue.cc",
"installable/installable_task_queue.h",
"pwa_install_path_tracker.cc",
"pwa_install_path_tracker.h",
"webapps_client.cc",
"webapps_client.h",
]
deps = [
"//base",
"//components/back_forward_cache",
"//components/content_settings/core/browser",
"//components/permissions",
"//components/security_state/core",
"//components/site_engagement/content",
"//components/variations",
"//components/webapps/common",
"//content/public/browser",
"//content/public/common",
"//net",
"//services/network/public/cpp",
"//skia",
"//third_party/blink/public/common",
"//third_party/blink/public/mojom:mojom_platform_headers",
"//url",
]
public_deps = [ ":constants" ]
if (is_android) {
sources += [
"android/add_to_homescreen_coordinator.cc",
"android/add_to_homescreen_coordinator.h",
"android/add_to_homescreen_data_fetcher.cc",
"android/add_to_homescreen_data_fetcher.h",
"android/add_to_homescreen_installer.cc",
"android/add_to_homescreen_installer.h",
"android/add_to_homescreen_mediator.cc",
"android/add_to_homescreen_mediator.h",
"android/add_to_homescreen_params.cc",
"android/add_to_homescreen_params.h",
"android/app_banner_manager_android.cc",
"android/app_banner_manager_android.h",
"android/bottomsheet/pwa_bottom_sheet_controller.cc",
"android/bottomsheet/pwa_bottom_sheet_controller.h",
"android/installable/installable_ambient_badge_client.h",
"android/installable/installable_ambient_badge_infobar.cc",
"android/installable/installable_ambient_badge_infobar.h",
"android/installable/installable_ambient_badge_infobar_delegate.cc",
"android/installable/installable_ambient_badge_infobar_delegate.h",
"android/installable/installable_ambient_badge_message_controller.cc",
"android/installable/installable_ambient_badge_message_controller.h",
"android/shortcut_info.cc",
"android/shortcut_info.h",
"android/webapk/webapk_icon_hasher.cc",
"android/webapk/webapk_icon_hasher.h",
"android/webapk/webapk_proto_builder.cc",
"android/webapk/webapk_proto_builder.h",
"android/webapk/webapk_types.h",
"android/webapps_icon_utils.cc",
"android/webapps_icon_utils.h",
"android/webapps_utils.cc",
"android/webapps_utils.h",
]
public_deps += [ "android:webapps_jni_headers" ]
deps += [
"//base",
"//components/dom_distiller/core",
"//components/favicon/content",
"//components/favicon/core",
"//components/favicon_base",
"//components/feature_engagement",
"//components/infobars/android",
"//components/infobars/content",
"//components/messages/android",
"//components/messages/android:feature_flags",
"//components/strings",
"//components/url_formatter",
"//components/version_info",
"//components/version_info/android:channel_getter",
"//components/webapk:proto",
"//components/webapps/common:mojo_bindings",
"//services/device/public/mojom",
"//third_party/smhasher:murmurhash2",
"//ui/android:android",
"//ui/base",
"//ui/gfx",
"//url:gurl_android",
]
}
}
source_set("test_support") {
testonly = true
sources = [
"installable/fake_installable_manager.cc",
"installable/fake_installable_manager.h",
]
deps = [
":browser",
"//base",
"//skia",
"//third_party/blink/public/common:headers",
"//third_party/blink/public/mojom:mojom_platform_headers",
"//url",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"banners/app_banner_settings_helper_unittest.cc",
"install_result_code_unittest.cc",
"installable/installable_manager_unittest.cc",
"installable/installable_task_queue_unittest.cc",
"pwa_install_path_tracker_unittest.cc",
]
deps = [
":browser",
"//base",
"//base/test:test_support",
"//components/content_settings/core/browser",
"//components/permissions:test_support",
"//components/prefs:test_support",
"//components/site_engagement/content",
"//components/user_prefs",
"//content/public/browser",
"//content/public/common",
"//content/test:test_support",
"//testing/gtest",
"//third_party/blink/public/mojom:mojom_platform_headers",
]
if (is_android) {
sources += [ "android/installable/installable_ambient_badge_message_controller_unittest.cc" ]
deps += [ "//components/messages/android:test_support" ]
}
}
|