summaryrefslogtreecommitdiffstats
path: root/extensions/browser/BUILD.gn
blob: fdead32e01d402311d3de4a035f7513fe938ae5d (plain)
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
# Copyright 2014 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/crypto.gni")
import("//build/config/features.gni")

# GYP version: extensions/extensions.gyp:extensions_browser
source_set("browser") {
  sources = []

  deps = [
    "//components/copresence_endpoints",
    "//components/keyed_service/content",
    "//components/keyed_service/core",
    "//components/pref_registry",
    "//components/sessions:sessions_content",
    "//components/ui/zoom:ui_zoom",
    "//components/web_cache/browser",
    "//components/web_modal",
    "//content/public/browser",
    "//crypto:platform",
    "//extensions/common",
    "//extensions/common/api",
    "//extensions/common/api:api_registration",
    "//extensions/strings",
    "//google_apis",
    "//skia",
    "//third_party/leveldatabase",
    "//third_party/re2",
  ]

  if (enable_extensions) {
    # Includes all API implementations and the ExtensionsApiClient
    # interface. Moving an API from src/chrome to src/extensions implies
    # it can be cleanly disabled with enable_extensions=false.
    # TODO: Eventually the entire extensions module should not be built
    # when enable_extensions=false.
    sources += [
      "api/activity_log/web_request_constants.cc",
      "api/activity_log/web_request_constants.h",
      "api/api_resource.cc",
      "api/api_resource.h",
      "api/api_resource_manager.h",
      "api/app_current_window_internal/app_current_window_internal_api.cc",
      "api/app_current_window_internal/app_current_window_internal_api.h",
      "api/app_runtime/app_runtime_api.cc",
      "api/app_runtime/app_runtime_api.h",
      "api/app_view/app_view_guest_internal_api.cc",
      "api/app_view/app_view_guest_internal_api.h",
      "api/app_window/app_window_api.cc",
      "api/app_window/app_window_api.h",
      "api/async_api_function.cc",
      "api/async_api_function.h",
      "api/audio/audio_api.cc",
      "api/audio/audio_api.h",
      "api/audio/audio_service.h",
      "api/bluetooth/bluetooth_api.cc",
      "api/bluetooth/bluetooth_api.h",
      "api/bluetooth/bluetooth_api_pairing_delegate.cc",
      "api/bluetooth/bluetooth_api_pairing_delegate.h",
      "api/bluetooth/bluetooth_api_utils.cc",
      "api/bluetooth/bluetooth_api_utils.h",
      "api/bluetooth/bluetooth_event_router.cc",
      "api/bluetooth/bluetooth_event_router.h",
      "api/bluetooth/bluetooth_extension_function.cc",
      "api/bluetooth/bluetooth_extension_function.h",
      "api/bluetooth/bluetooth_private_api.cc",
      "api/bluetooth/bluetooth_private_api.h",
      "api/bluetooth_low_energy/bluetooth_low_energy_api.cc",
      "api/bluetooth_low_energy/bluetooth_low_energy_api.h",
      "api/bluetooth_low_energy/bluetooth_low_energy_connection.cc",
      "api/bluetooth_low_energy/bluetooth_low_energy_connection.h",
      "api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc",
      "api/bluetooth_low_energy/bluetooth_low_energy_event_router.h",
      "api/bluetooth_low_energy/bluetooth_low_energy_notify_session.cc",
      "api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h",
      "api/bluetooth_low_energy/utils.cc",
      "api/bluetooth_low_energy/utils.h",
      "api/bluetooth_socket/bluetooth_api_socket.cc",
      "api/bluetooth_socket/bluetooth_api_socket.h",
      "api/bluetooth_socket/bluetooth_socket_api.cc",
      "api/bluetooth_socket/bluetooth_socket_api.h",
      "api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc",
      "api/bluetooth_socket/bluetooth_socket_event_dispatcher.h",
      "api/capture_web_contents_function.cc",
      "api/capture_web_contents_function.h",
      "api/cast_channel/cast_auth_ica.cc",
      "api/cast_channel/cast_auth_ica.h",
      "api/cast_channel/cast_auth_util.cc",
      "api/cast_channel/cast_auth_util.h",
      "api/cast_channel/cast_channel_api.cc",
      "api/cast_channel/cast_channel_api.h",
      "api/cast_channel/cast_framer.cc",
      "api/cast_channel/cast_framer.h",
      "api/cast_channel/cast_message_util.cc",
      "api/cast_channel/cast_message_util.h",
      "api/cast_channel/cast_socket.cc",
      "api/cast_channel/cast_socket.h",
      "api/cast_channel/cast_transport.cc",
      "api/cast_channel/cast_transport.h",
      "api/cast_channel/keep_alive_delegate.cc",
      "api/cast_channel/keep_alive_delegate.h",
      "api/cast_channel/logger.cc",
      "api/cast_channel/logger.h",
      "api/cast_channel/logger_util.cc",
      "api/cast_channel/logger_util.h",
      "api/copresence_endpoints/copresence_endpoints_api.cc",
      "api/copresence_endpoints/copresence_endpoints_api.h",
      "api/copresence_endpoints/copresence_endpoint_resource.cc",
      "api/copresence_endpoints/copresence_endpoint_resource.h",
      "api/declarative/declarative_api.cc",
      "api/declarative/declarative_api.h",
      "api/declarative/declarative_rule.h",
      "api/declarative/deduping_factory.h",
      "api/declarative/rules_cache_delegate.cc",
      "api/declarative/rules_cache_delegate.h",
      "api/declarative/rules_registry.cc",
      "api/declarative/rules_registry.h",
      "api/declarative/rules_registry_service.cc",
      "api/declarative/rules_registry_service.h",
      "api/declarative/test_rules_registry.cc",
      "api/declarative/test_rules_registry.h",
      "api/declarative_content/content_rules_registry.h",
      "api/declarative_webrequest/request_stage.cc",
      "api/declarative_webrequest/request_stage.h",
      "api/declarative_webrequest/webrequest_action.cc",
      "api/declarative_webrequest/webrequest_action.h",
      "api/declarative_webrequest/webrequest_condition_attribute.cc",
      "api/declarative_webrequest/webrequest_condition_attribute.h",
      "api/declarative_webrequest/webrequest_condition.cc",
      "api/declarative_webrequest/webrequest_condition.h",
      "api/declarative_webrequest/webrequest_constants.cc",
      "api/declarative_webrequest/webrequest_constants.h",
      "api/declarative_webrequest/webrequest_rules_registry.cc",
      "api/declarative_webrequest/webrequest_rules_registry.h",
      "api/device_permissions_manager.cc",
      "api/device_permissions_manager.h",
      "api/device_permissions_prompt.cc",
      "api/device_permissions_prompt.h",
      "api/dns/dns_api.cc",
      "api/dns/dns_api.h",
      "api/dns/host_resolver_wrapper.cc",
      "api/dns/host_resolver_wrapper.h",
      "api/execute_code_function.cc",
      "api/execute_code_function.h",
      "api/extensions_api_client.cc",
      "api/extensions_api_client.h",
      "api/guest_view/guest_view_internal_api.cc",
      "api/guest_view/guest_view_internal_api.h",
      "api/hid/hid_api.cc",
      "api/hid/hid_api.h",
      "api/hid/hid_connection_resource.cc",
      "api/hid/hid_connection_resource.h",
      "api/hid/hid_device_manager.cc",
      "api/hid/hid_device_manager.h",
      "api/management/management_api.cc",
      "api/management/management_api.h",
      "api/management/management_api_constants.cc",
      "api/management/management_api_constants.h",
      "api/management/management_api_delegate.h",
      "api/messaging/native_message_host.cc",
      "api/power/power_api.cc",
      "api/power/power_api.h",
      "api/power/power_api_manager.cc",
      "api/power/power_api_manager.h",
      "api/runtime/runtime_api.cc",
      "api/runtime/runtime_api.h",
      "api/runtime/runtime_api_delegate.cc",
      "api/runtime/runtime_api_delegate.h",
      "api/serial/serial_api.cc",
      "api/serial/serial_api.h",
      "api/serial/serial_connection.cc",
      "api/serial/serial_connection.h",
      "api/serial/serial_event_dispatcher.cc",
      "api/serial/serial_event_dispatcher.h",
      "api/socket/socket.cc",
      "api/socket/socket.h",
      "api/socket/socket_api.cc",
      "api/socket/socket_api.h",
      "api/socket/tcp_socket.cc",
      "api/socket/tcp_socket.h",
      "api/socket/tls_socket.cc",
      "api/socket/tls_socket.h",
      "api/socket/udp_socket.cc",
      "api/socket/udp_socket.h",
      "api/sockets_tcp/sockets_tcp_api.cc",
      "api/sockets_tcp/sockets_tcp_api.h",
      "api/sockets_tcp/tcp_socket_event_dispatcher.cc",
      "api/sockets_tcp/tcp_socket_event_dispatcher.h",
      "api/sockets_tcp_server/sockets_tcp_server_api.cc",
      "api/sockets_tcp_server/sockets_tcp_server_api.h",
      "api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc",
      "api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h",
      "api/sockets_udp/sockets_udp_api.cc",
      "api/sockets_udp/sockets_udp_api.h",
      "api/sockets_udp/udp_socket_event_dispatcher.cc",
      "api/sockets_udp/udp_socket_event_dispatcher.h",
      "api/storage/leveldb_settings_storage_factory.cc",
      "api/storage/leveldb_settings_storage_factory.h",
      "api/storage/local_value_store_cache.cc",
      "api/storage/local_value_store_cache.h",
      "api/storage/settings_namespace.cc",
      "api/storage/settings_namespace.h",
      "api/storage/settings_observer.h",
      "api/storage/settings_storage_factory.h",
      "api/storage/settings_storage_quota_enforcer.cc",
      "api/storage/settings_storage_quota_enforcer.h",
      "api/storage/storage_api.cc",
      "api/storage/storage_api.h",
      "api/storage/storage_frontend.cc",
      "api/storage/storage_frontend.h",
      "api/storage/value_store_cache.cc",
      "api/storage/value_store_cache.h",
      "api/storage/weak_unlimited_settings_storage.cc",
      "api/storage/weak_unlimited_settings_storage.h",
      "api/system_cpu/cpu_info_provider.cc",
      "api/system_cpu/cpu_info_provider.h",
      "api/system_cpu/cpu_info_provider_linux.cc",
      "api/system_cpu/cpu_info_provider_mac.cc",
      "api/system_cpu/cpu_info_provider_win.cc",
      "api/system_cpu/system_cpu_api.cc",
      "api/system_cpu/system_cpu_api.h",
      "api/system_display/display_info_provider.cc",
      "api/system_display/display_info_provider.h",
      "api/system_display/system_display_api.cc",
      "api/system_display/system_display_api.h",
      "api/system_info/system_info_api.cc",
      "api/system_info/system_info_api.h",
      "api/system_info/system_info_provider.cc",
      "api/system_info/system_info_provider.h",
      "api/system_memory/memory_info_provider.cc",
      "api/system_memory/memory_info_provider.h",
      "api/system_memory/system_memory_api.cc",
      "api/system_memory/system_memory_api.h",
      "api/system_network/system_network_api.cc",
      "api/system_network/system_network_api.h",
      "api/system_storage/storage_info_provider.cc",
      "api/system_storage/storage_info_provider.h",
      "api/system_storage/system_storage_api.cc",
      "api/system_storage/system_storage_api.h",
      "api/test/test_api.cc",
      "api/test/test_api.h",
      "api/usb/usb_api.cc",
      "api/usb/usb_api.h",
      "api/usb/usb_event_router.cc",
      "api/usb/usb_event_router.h",
      "api/usb/usb_device_resource.cc",
      "api/usb/usb_device_resource.h",
      "api/virtual_keyboard_private/virtual_keyboard_private_api.cc",
      "api/virtual_keyboard_private/virtual_keyboard_private_api.h",
      "api/virtual_keyboard_private/virtual_keyboard_delegate.h",
      "api/web_request/form_data_parser.cc",
      "api/web_request/form_data_parser.h",
      "api/web_request/upload_data_presenter.cc",
      "api/web_request/upload_data_presenter.h",
      "api/web_request/web_request_api.cc",
      "api/web_request/web_request_api.h",
      "api/web_request/web_request_api_constants.cc",
      "api/web_request/web_request_api_constants.h",
      "api/web_request/web_request_api_helpers.cc",
      "api/web_request/web_request_api_helpers.h",
      "api/web_request/web_request_permissions.cc",
      "api/web_request/web_request_permissions.h",
      "api/web_request/web_request_event_router_delegate.cc",
      "api/web_request/web_request_event_router_delegate.h",
      "api/web_request/web_request_time_tracker.cc",
      "api/web_request/web_request_time_tracker.h",
      "api/web_view/web_view_internal_api.cc",
      "api/web_view/web_view_internal_api.h",
      "api/webcam_private/webcam_private_api.h",
      "api/webcam_private/webcam_private_api_chromeos.cc",
      "api_activity_monitor.h",
      "app_sorting.h",
      "app_window/app_delegate.h",
      "app_window/app_web_contents_helper.cc",
      "app_window/app_web_contents_helper.h",
      "app_window/app_window.cc",
      "app_window/app_window.h",
      "app_window/app_window_client.cc",
      "app_window/app_window_client.h",
      "app_window/app_window_contents.cc",
      "app_window/app_window_contents.h",
      "app_window/app_window_geometry_cache.cc",
      "app_window/app_window_geometry_cache.h",
      "app_window/app_window_registry.cc",
      "app_window/app_window_registry.h",
      "app_window/native_app_window.h",
      "app_window/size_constraints.cc",
      "app_window/size_constraints.h",
      "blacklist_state.h",
      "blob_holder.cc",
      "blob_holder.h",
      "browser_context_keyed_api_factory.h",
      "browser_context_keyed_service_factories.cc",
      "browser_context_keyed_service_factories.h",
      "component_extension_resource_manager.h",
      "computed_hashes.cc",
      "computed_hashes.h",
      "content_hash_fetcher.cc",
      "content_hash_fetcher.h",
      "content_hash_reader.cc",
      "content_hash_reader.h",
      "content_hash_tree.cc",
      "content_hash_tree.h",
      "content_verifier.cc",
      "content_verifier.h",
      "content_verifier_delegate.h",
      "content_verifier_io_data.cc",
      "content_verifier_io_data.h",
      "content_verify_job.cc",
      "content_verify_job.h",
      "error_map.cc",
      "error_map.h",
      "event_listener_map.cc",
      "event_listener_map.h",
      "event_router.cc",
      "event_router.h",
      "extension_error.cc",
      "extension_error.h",
      "extension_function.cc",
      "extension_function.h",
      "extension_function_dispatcher.cc",
      "extension_function_dispatcher.h",
      "extension_function_registry.cc",
      "extension_function_registry.h",
      "extension_function_util.cc",
      "extension_function_util.h",
      "extension_host.cc",
      "extension_host.h",
      "extension_host_delegate.h",
      "extension_icon_image.cc",
      "extension_icon_image.h",
      "extension_message_filter.cc",
      "extension_message_filter.h",
      "extension_pref_store.cc",
      "extension_pref_store.h",
      "extension_pref_value_map.cc",
      "extension_pref_value_map.h",
      "extension_pref_value_map_factory.cc",
      "extension_pref_value_map_factory.h",
      "extension_prefs.cc",
      "extension_prefs.h",
      "extension_prefs_factory.cc",
      "extension_prefs_factory.h",
      "extension_prefs_observer.h",
      "extension_prefs_scope.h",
      "extension_protocols.cc",
      "extension_protocols.h",
      "extension_registry.cc",
      "extension_registry.h",
      "extension_registry_factory.cc",
      "extension_registry_factory.h",
      "extension_registry_observer.h",
      "extension_scoped_prefs.h",
      "extension_system.cc",
      "extension_system.h",
      "extension_system_provider.cc",
      "extension_system_provider.h",
      "extension_util.cc",
      "extension_util.h",
      "extension_web_contents_observer.cc",
      "extension_web_contents_observer.h",
      "extension_zoom_request_client.cc",
      "extension_zoom_request_client.h",
      "extensions_browser_client.cc",
      "extensions_browser_client.h",
      "external_provider_interface.h",
      "file_highlighter.cc",
      "file_highlighter.h",
      "file_reader.cc",
      "file_reader.h",
      "granted_file_entry.cc",
      "granted_file_entry.h",
      "guest_view/app_view/app_view_constants.cc",
      "guest_view/app_view/app_view_constants.h",
      "guest_view/app_view/app_view_guest.cc",
      "guest_view/app_view/app_view_guest.h",
      "guest_view/app_view/app_view_guest_delegate.cc",
      "guest_view/app_view/app_view_guest_delegate.h",
      "guest_view/extension_options/extension_options_constants.cc",
      "guest_view/extension_options/extension_options_constants.h",
      "guest_view/extension_options/extension_options_guest.cc",
      "guest_view/extension_options/extension_options_guest.h",
      "guest_view/extension_options/extension_options_guest_delegate.cc",
      "guest_view/extension_options/extension_options_guest_delegate.h",
      "guest_view/guest_view_base.cc",
      "guest_view/guest_view_base.h",
      "guest_view/guest_view_manager_factory.h",
      "guest_view/guest_view_manager.cc",
      "guest_view/guest_view_manager.h",
      "guest_view/guest_view.h",
      "guest_view/mime_handler_view/mime_handler_stream_manager.cc",
      "guest_view/mime_handler_view/mime_handler_stream_manager.h",
      "guest_view/mime_handler_view/mime_handler_view_constants.cc",
      "guest_view/mime_handler_view/mime_handler_view_constants.h",
      "guest_view/mime_handler_view/mime_handler_view_guest.h",
      "guest_view/mime_handler_view/mime_handler_view_guest.cc",
      "guest_view/mime_handler_view/mime_handler_view_guest_delegate.cc",
      "guest_view/mime_handler_view/mime_handler_view_guest_delegate.h",
      "guest_view/surface_worker/surface_worker_constants.cc",
      "guest_view/surface_worker/surface_worker_constants.h",
      "guest_view/surface_worker/surface_worker_guest.cc",
      "guest_view/surface_worker/surface_worker_guest.h",
      "guest_view/web_view/javascript_dialog_helper.cc",
      "guest_view/web_view/javascript_dialog_helper.h",
      "guest_view/web_view/web_view_constants.cc",
      "guest_view/web_view/web_view_constants.h",
      "guest_view/web_view/web_view_find_helper.cc",
      "guest_view/web_view/web_view_find_helper.h",
      "guest_view/web_view/web_view_guest.cc",
      "guest_view/web_view/web_view_guest.h",
      "guest_view/web_view/web_view_guest_delegate.h",
      "guest_view/web_view/web_view_permission_types.h",
      "guest_view/web_view/web_view_permission_helper.cc",
      "guest_view/web_view/web_view_permission_helper.h",
      "guest_view/web_view/web_view_permission_helper_delegate.cc",
      "guest_view/web_view/web_view_permission_helper_delegate.h",
      "guest_view/web_view/web_view_renderer_state.cc",
      "guest_view/web_view/web_view_renderer_state.h",
      "image_loader.cc",
      "image_loader.h",
      "image_loader_factory.cc",
      "image_loader_factory.h",
      "info_map.cc",
      "info_map.h",
      "install/crx_installer_error.h",
      "install/extension_install_ui.cc",
      "install/extension_install_ui.h",
      "install_flag.h",
      "lazy_background_task_queue.cc",
      "lazy_background_task_queue.h",
      "management_policy.cc",
      "management_policy.h",
      "mojo/keep_alive_impl.cc",
      "mojo/keep_alive_impl.h",
      "mojo/service_registration_manager.cc",
      "mojo/service_registration_manager.h",
      "mojo/stash_backend.cc",
      "mojo/stash_backend.h",
      "notification_types.cc",
      "notification_types.h",
      "null_app_sorting.cc",
      "null_app_sorting.h",
      "pref_names.cc",
      "pref_names.h",
      "process_manager.cc",
      "process_manager.h",
      "process_manager_delegate.h",
      "process_manager_factory.cc",
      "process_manager_factory.h",
      "process_manager_observer.h",
      "process_map.cc",
      "process_map.h",
      "process_map_factory.cc",
      "process_map_factory.h",
      "quota_service.cc",
      "quota_service.h",
      "renderer_startup_helper.cc",
      "renderer_startup_helper.h",
      "runtime_data.cc",
      "runtime_data.h",
      "script_execution_observer.h",
      "script_executor.cc",
      "script_executor.h",
      "state_store.cc",
      "state_store.h",
      "suggest_permission_util.cc",
      "suggest_permission_util.h",
      "uninstall_reason.h",
      "update_observer.h",
      "updater/extension_cache.h",
      "updater/extension_downloader.cc",
      "updater/extension_downloader.h",
      "updater/extension_downloader_delegate.cc",
      "updater/extension_downloader_delegate.h",
      "updater/manifest_fetch_data.cc",
      "updater/manifest_fetch_data.h",
      "updater/null_extension_cache.cc",
      "updater/null_extension_cache.h",
      "updater/request_queue.h",
      "updater/request_queue_impl.h",
      "updater/safe_manifest_parser.cc",
      "updater/safe_manifest_parser.h",
      "updater/update_service.cc",
      "updater/update_service.h",
      "updater/update_service_factory.cc",
      "updater/update_service_factory.h",
      "url_request_util.cc",
      "url_request_util.h",
      "value_store/leveldb_value_store.cc",
      "value_store/leveldb_value_store.h",
      "value_store/testing_value_store.cc",
      "value_store/testing_value_store.h",
      "value_store/value_store.cc",
      "value_store/value_store.h",
      "value_store/value_store_change.cc",
      "value_store/value_store_change.h",
      "value_store/value_store_frontend.cc",
      "value_store/value_store_frontend.h",
      "value_store/value_store_util.cc",
      "value_store/value_store_util.h",
      "verified_contents.cc",
      "verified_contents.h",
      "view_type_utils.cc",
      "view_type_utils.h",
      "warning_service.cc",
      "warning_service.h",
      "warning_service_factory.cc",
      "warning_service_factory.h",
      "warning_set.cc",
      "warning_set.h",
    ]

    deps += [
      "//components/storage_monitor",
      "//crypto:platform",
      "//device/bluetooth",
      "//device/core",
      "//device/hid",
      "//device/serial",
      "//device/usb",
      "//extensions/common/api/cast_channel:cast_channel_proto",
    ]

    if (use_openssl) {
      sources += [ "api/cast_channel/cast_auth_util_openssl.cc" ]
    } else {
      sources += [ "api/cast_channel/cast_auth_util_nss.cc" ]
    }

    if (is_chromeos) {
      deps += [ "//chromeos" ]
      sources += [
        "api/audio/audio_service_chromeos.cc",
        "api/vpn_provider/vpn_provider_api.cc",
        "api/vpn_provider/vpn_provider_api.h",
        "api/vpn_provider/vpn_service.cc",
        "api/vpn_provider/vpn_service.h",
        "api/vpn_provider/vpn_service_factory.h",
      ]
    } else if (is_linux) {
      sources += [ "api/audio/audio_service_linux.cc" ]
    } else {
      sources += [ "api/audio/audio_service.cc" ]
    }
  }

  if (is_win) {
    cflags = [ "/wd4267" ]  # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
  }
}