1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni")
8 # GYP version: extensions/extensions.gyp:extensions_browser
9 source_set("browser") {
14 "//components/copresence_sockets",
15 "//components/keyed_service/content",
16 "//components/keyed_service/core",
17 "//components/pref_registry",
18 "//components/sessions:sessions_content",
19 "//components/web_cache/browser",
20 "//components/web_modal",
21 "//content/public/browser",
23 "//extensions/common",
24 "//extensions/common/api",
25 "//extensions/common/api:api_registration",
26 "//extensions/strings",
29 "//third_party/leveldatabase",
33 if (enable_extensions) {
34 # Includes all API implementations and the ExtensionsApiClient
35 # interface. Moving an API from src/chrome to src/extensions implies
36 # it can be cleanly disabled with enable_extensions=false.
37 # TODO: Eventually the entire extensions module should not be built
38 # when enable_extensions=false.
40 "api/activity_log/web_request_constants.cc",
41 "api/activity_log/web_request_constants.h",
42 "api/api_resource.cc",
44 "api/api_resource_manager.h",
45 "api/app_current_window_internal/app_current_window_internal_api.cc",
46 "api/app_current_window_internal/app_current_window_internal_api.h",
47 "api/app_runtime/app_runtime_api.cc",
48 "api/app_runtime/app_runtime_api.h",
49 "api/app_view/app_view_guest_internal_api.cc",
50 "api/app_view/app_view_guest_internal_api.h",
51 "api/app_window/app_window_api.cc",
52 "api/app_window/app_window_api.h",
53 "api/async_api_function.cc",
54 "api/async_api_function.h",
55 "api/bluetooth/bluetooth_api.cc",
56 "api/bluetooth/bluetooth_api.h",
57 "api/bluetooth/bluetooth_api_pairing_delegate.cc",
58 "api/bluetooth/bluetooth_api_pairing_delegate.h",
59 "api/bluetooth/bluetooth_api_utils.cc",
60 "api/bluetooth/bluetooth_api_utils.h",
61 "api/bluetooth/bluetooth_event_router.cc",
62 "api/bluetooth/bluetooth_event_router.h",
63 "api/bluetooth/bluetooth_extension_function.cc",
64 "api/bluetooth/bluetooth_extension_function.h",
65 "api/bluetooth/bluetooth_private_api.cc",
66 "api/bluetooth/bluetooth_private_api.h",
67 "api/bluetooth_low_energy/bluetooth_low_energy_api.cc",
68 "api/bluetooth_low_energy/bluetooth_low_energy_api.h",
69 "api/bluetooth_low_energy/bluetooth_low_energy_connection.cc",
70 "api/bluetooth_low_energy/bluetooth_low_energy_connection.h",
71 "api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc",
72 "api/bluetooth_low_energy/bluetooth_low_energy_event_router.h",
73 "api/bluetooth_low_energy/bluetooth_low_energy_notify_session.cc",
74 "api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h",
75 "api/bluetooth_low_energy/utils.cc",
76 "api/bluetooth_low_energy/utils.h",
77 "api/bluetooth_socket/bluetooth_api_socket.cc",
78 "api/bluetooth_socket/bluetooth_api_socket.h",
79 "api/bluetooth_socket/bluetooth_socket_api.cc",
80 "api/bluetooth_socket/bluetooth_socket_api.h",
81 "api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc",
82 "api/bluetooth_socket/bluetooth_socket_event_dispatcher.h",
83 "api/capture_web_contents_function.cc",
84 "api/capture_web_contents_function.h",
85 "api/cast_channel/cast_auth_ica.cc",
86 "api/cast_channel/cast_auth_ica.h",
87 "api/cast_channel/cast_auth_util.cc",
88 "api/cast_channel/cast_auth_util.h",
89 "api/cast_channel/cast_channel_api.cc",
90 "api/cast_channel/cast_channel_api.h",
91 "api/cast_channel/cast_framer.cc",
92 "api/cast_channel/cast_framer.h",
93 "api/cast_channel/cast_message_util.cc",
94 "api/cast_channel/cast_message_util.h",
95 "api/cast_channel/cast_socket.cc",
96 "api/cast_channel/cast_socket.h",
97 "api/cast_channel/cast_transport.cc",
98 "api/cast_channel/cast_transport.h",
99 "api/cast_channel/logger.cc",
100 "api/cast_channel/logger.h",
101 "api/cast_channel/logger_util.cc",
102 "api/cast_channel/logger_util.h",
103 "api/copresence_socket/copresence_socket_api.cc",
104 "api/copresence_socket/copresence_socket_api.h",
105 "api/copresence_socket/copresence_socket_resources.cc",
106 "api/copresence_socket/copresence_socket_resources.h",
107 "api/declarative/declarative_api.cc",
108 "api/declarative/declarative_api.h",
109 "api/declarative/declarative_rule.h",
110 "api/declarative/deduping_factory.h",
111 "api/declarative/rules_cache_delegate.cc",
112 "api/declarative/rules_cache_delegate.h",
113 "api/declarative/rules_registry.cc",
114 "api/declarative/rules_registry.h",
115 "api/declarative/rules_registry_service.cc",
116 "api/declarative/rules_registry_service.h",
117 "api/declarative/test_rules_registry.cc",
118 "api/declarative/test_rules_registry.h",
119 "api/declarative_content/content_rules_registry.h",
120 "api/declarative_webrequest/request_stage.cc",
121 "api/declarative_webrequest/request_stage.h",
122 "api/declarative_webrequest/webrequest_action.cc",
123 "api/declarative_webrequest/webrequest_action.h",
124 "api/declarative_webrequest/webrequest_condition_attribute.cc",
125 "api/declarative_webrequest/webrequest_condition_attribute.h",
126 "api/declarative_webrequest/webrequest_condition.cc",
127 "api/declarative_webrequest/webrequest_condition.h",
128 "api/declarative_webrequest/webrequest_constants.cc",
129 "api/declarative_webrequest/webrequest_constants.h",
130 "api/declarative_webrequest/webrequest_rules_registry.cc",
131 "api/declarative_webrequest/webrequest_rules_registry.h",
132 "api/device_permissions_manager.cc",
133 "api/device_permissions_manager.h",
134 "api/device_permissions_prompt.cc",
135 "api/device_permissions_prompt.h",
136 "api/dns/dns_api.cc",
138 "api/dns/host_resolver_wrapper.cc",
139 "api/dns/host_resolver_wrapper.h",
140 "api/execute_code_function.cc",
141 "api/execute_code_function.h",
142 "api/extensions_api_client.cc",
143 "api/extensions_api_client.h",
144 "api/guest_view/guest_view_internal_api.cc",
145 "api/guest_view/guest_view_internal_api.h",
146 "api/hid/hid_api.cc",
148 "api/hid/hid_connection_resource.cc",
149 "api/hid/hid_connection_resource.h",
150 "api/hid/hid_device_manager.cc",
151 "api/hid/hid_device_manager.h",
152 "api/management/management_api.cc",
153 "api/management/management_api.h",
154 "api/management/management_api_constants.cc",
155 "api/management/management_api_constants.h",
156 "api/management/management_api_delegate.h",
157 "api/messaging/native_message_host.cc",
158 "api/power/power_api.cc",
159 "api/power/power_api.h",
160 "api/power/power_api_manager.cc",
161 "api/power/power_api_manager.h",
162 "api/runtime/runtime_api.cc",
163 "api/runtime/runtime_api.h",
164 "api/runtime/runtime_api_delegate.cc",
165 "api/runtime/runtime_api_delegate.h",
166 "api/serial/serial_api.cc",
167 "api/serial/serial_api.h",
168 "api/serial/serial_connection.cc",
169 "api/serial/serial_connection.h",
170 "api/serial/serial_event_dispatcher.cc",
171 "api/serial/serial_event_dispatcher.h",
172 "api/socket/socket.cc",
173 "api/socket/socket.h",
174 "api/socket/socket_api.cc",
175 "api/socket/socket_api.h",
176 "api/socket/tcp_socket.cc",
177 "api/socket/tcp_socket.h",
178 "api/socket/tls_socket.cc",
179 "api/socket/tls_socket.h",
180 "api/socket/udp_socket.cc",
181 "api/socket/udp_socket.h",
182 "api/sockets_tcp/sockets_tcp_api.cc",
183 "api/sockets_tcp/sockets_tcp_api.h",
184 "api/sockets_tcp/tcp_socket_event_dispatcher.cc",
185 "api/sockets_tcp/tcp_socket_event_dispatcher.h",
186 "api/sockets_tcp_server/sockets_tcp_server_api.cc",
187 "api/sockets_tcp_server/sockets_tcp_server_api.h",
188 "api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc",
189 "api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h",
190 "api/sockets_udp/sockets_udp_api.cc",
191 "api/sockets_udp/sockets_udp_api.h",
192 "api/sockets_udp/udp_socket_event_dispatcher.cc",
193 "api/sockets_udp/udp_socket_event_dispatcher.h",
194 "api/storage/leveldb_settings_storage_factory.cc",
195 "api/storage/leveldb_settings_storage_factory.h",
196 "api/storage/local_value_store_cache.cc",
197 "api/storage/local_value_store_cache.h",
198 "api/storage/settings_namespace.cc",
199 "api/storage/settings_namespace.h",
200 "api/storage/settings_observer.h",
201 "api/storage/settings_storage_factory.h",
202 "api/storage/settings_storage_quota_enforcer.cc",
203 "api/storage/settings_storage_quota_enforcer.h",
204 "api/storage/storage_api.cc",
205 "api/storage/storage_api.h",
206 "api/storage/storage_frontend.cc",
207 "api/storage/storage_frontend.h",
208 "api/storage/value_store_cache.cc",
209 "api/storage/value_store_cache.h",
210 "api/storage/weak_unlimited_settings_storage.cc",
211 "api/storage/weak_unlimited_settings_storage.h",
212 "api/system_cpu/cpu_info_provider.cc",
213 "api/system_cpu/cpu_info_provider.h",
214 "api/system_cpu/cpu_info_provider_linux.cc",
215 "api/system_cpu/cpu_info_provider_mac.cc",
216 "api/system_cpu/cpu_info_provider_win.cc",
217 "api/system_cpu/system_cpu_api.cc",
218 "api/system_cpu/system_cpu_api.h",
219 "api/system_display/display_info_provider.cc",
220 "api/system_display/display_info_provider.h",
221 "api/system_display/system_display_api.cc",
222 "api/system_display/system_display_api.h",
223 "api/system_info/system_info_api.cc",
224 "api/system_info/system_info_api.h",
225 "api/system_info/system_info_provider.cc",
226 "api/system_info/system_info_provider.h",
227 "api/system_memory/memory_info_provider.cc",
228 "api/system_memory/memory_info_provider.h",
229 "api/system_memory/system_memory_api.cc",
230 "api/system_memory/system_memory_api.h",
231 "api/system_network/system_network_api.cc",
232 "api/system_network/system_network_api.h",
233 "api/system_storage/storage_info_provider.cc",
234 "api/system_storage/storage_info_provider.h",
235 "api/system_storage/system_storage_api.cc",
236 "api/system_storage/system_storage_api.h",
237 "api/test/test_api.cc",
238 "api/test/test_api.h",
239 "api/usb/usb_api.cc",
241 "api/usb/usb_device_resource.cc",
242 "api/usb/usb_device_resource.h",
243 "api/virtual_keyboard_private/virtual_keyboard_private_api.cc",
244 "api/virtual_keyboard_private/virtual_keyboard_private_api.h",
245 "api/virtual_keyboard_private/virtual_keyboard_delegate.h",
246 "api/web_request/form_data_parser.cc",
247 "api/web_request/form_data_parser.h",
248 "api/web_request/upload_data_presenter.cc",
249 "api/web_request/upload_data_presenter.h",
250 "api/web_request/web_request_api.cc",
251 "api/web_request/web_request_api.h",
252 "api/web_request/web_request_api_constants.cc",
253 "api/web_request/web_request_api_constants.h",
254 "api/web_request/web_request_api_helpers.cc",
255 "api/web_request/web_request_api_helpers.h",
256 "api/web_request/web_request_permissions.cc",
257 "api/web_request/web_request_permissions.h",
258 "api/web_request/web_request_event_router_delegate.cc",
259 "api/web_request/web_request_event_router_delegate.h",
260 "api/web_request/web_request_time_tracker.cc",
261 "api/web_request/web_request_time_tracker.h",
262 "api/web_view/web_view_internal_api.cc",
263 "api/web_view/web_view_internal_api.h",
264 "api/webcam_private/webcam_private_api.h",
265 "api/webcam_private/webcam_private_api_chromeos.cc",
266 "api_activity_monitor.h",
268 "app_window/app_delegate.h",
269 "app_window/app_web_contents_helper.cc",
270 "app_window/app_web_contents_helper.h",
271 "app_window/app_window.cc",
272 "app_window/app_window.h",
273 "app_window/app_window_client.cc",
274 "app_window/app_window_client.h",
275 "app_window/app_window_contents.cc",
276 "app_window/app_window_contents.h",
277 "app_window/app_window_geometry_cache.cc",
278 "app_window/app_window_geometry_cache.h",
279 "app_window/app_window_registry.cc",
280 "app_window/app_window_registry.h",
281 "app_window/native_app_window.h",
282 "app_window/size_constraints.cc",
283 "app_window/size_constraints.h",
287 "browser_context_keyed_api_factory.h",
288 "browser_context_keyed_service_factories.cc",
289 "browser_context_keyed_service_factories.h",
290 "component_extension_resource_manager.h",
291 "computed_hashes.cc",
293 "content_hash_fetcher.cc",
294 "content_hash_fetcher.h",
295 "content_hash_reader.cc",
296 "content_hash_reader.h",
297 "content_hash_tree.cc",
298 "content_hash_tree.h",
299 "content_verifier.cc",
300 "content_verifier.h",
301 "content_verifier_delegate.h",
302 "content_verifier_io_data.cc",
303 "content_verifier_io_data.h",
304 "content_verify_job.cc",
305 "content_verify_job.h",
308 "event_listener_map.cc",
309 "event_listener_map.h",
312 "extension_error.cc",
314 "extension_function.cc",
315 "extension_function.h",
316 "extension_function_dispatcher.cc",
317 "extension_function_dispatcher.h",
318 "extension_function_registry.cc",
319 "extension_function_registry.h",
320 "extension_function_util.cc",
321 "extension_function_util.h",
324 "extension_host_delegate.h",
325 "extension_icon_image.cc",
326 "extension_icon_image.h",
327 "extension_message_filter.cc",
328 "extension_message_filter.h",
329 "extension_pref_store.cc",
330 "extension_pref_store.h",
331 "extension_pref_value_map.cc",
332 "extension_pref_value_map.h",
333 "extension_pref_value_map_factory.cc",
334 "extension_pref_value_map_factory.h",
335 "extension_prefs.cc",
337 "extension_prefs_factory.cc",
338 "extension_prefs_factory.h",
339 "extension_prefs_observer.h",
340 "extension_prefs_scope.h",
341 "extension_protocols.cc",
342 "extension_protocols.h",
343 "extension_registry.cc",
344 "extension_registry.h",
345 "extension_registry_factory.cc",
346 "extension_registry_factory.h",
347 "extension_registry_observer.h",
348 "extension_scoped_prefs.h",
349 "extension_system.cc",
350 "extension_system.h",
351 "extension_system_provider.cc",
352 "extension_system_provider.h",
355 "extension_web_contents_observer.cc",
356 "extension_web_contents_observer.h",
357 "extensions_browser_client.cc",
358 "extensions_browser_client.h",
359 "external_provider_interface.h",
360 "file_highlighter.cc",
361 "file_highlighter.h",
364 "granted_file_entry.cc",
365 "granted_file_entry.h",
366 "guest_view/app_view/app_view_constants.cc",
367 "guest_view/app_view/app_view_constants.h",
368 "guest_view/app_view/app_view_guest.cc",
369 "guest_view/app_view/app_view_guest.h",
370 "guest_view/app_view/app_view_guest_delegate.cc",
371 "guest_view/app_view/app_view_guest_delegate.h",
372 "guest_view/extension_options/extension_options_constants.cc",
373 "guest_view/extension_options/extension_options_constants.h",
374 "guest_view/extension_options/extension_options_guest.cc",
375 "guest_view/extension_options/extension_options_guest.h",
376 "guest_view/extension_options/extension_options_guest_delegate.cc",
377 "guest_view/extension_options/extension_options_guest_delegate.h",
378 "guest_view/guest_view_base.cc",
379 "guest_view/guest_view_base.h",
380 "guest_view/guest_view_manager_factory.h",
381 "guest_view/guest_view_manager.cc",
382 "guest_view/guest_view_manager.h",
383 "guest_view/guest_view.h",
384 "guest_view/mime_handler_view/mime_handler_view_constants.cc",
385 "guest_view/mime_handler_view/mime_handler_view_constants.h",
386 "guest_view/mime_handler_view/mime_handler_view_guest.h",
387 "guest_view/mime_handler_view/mime_handler_view_guest.cc",
388 "guest_view/mime_handler_view/mime_handler_view_guest_delegate.cc",
389 "guest_view/mime_handler_view/mime_handler_view_guest_delegate.h",
390 "guest_view/web_view/javascript_dialog_helper.cc",
391 "guest_view/web_view/javascript_dialog_helper.h",
392 "guest_view/web_view/web_view_constants.cc",
393 "guest_view/web_view/web_view_constants.h",
394 "guest_view/web_view/web_view_find_helper.cc",
395 "guest_view/web_view/web_view_find_helper.h",
396 "guest_view/web_view/web_view_guest.cc",
397 "guest_view/web_view/web_view_guest.h",
398 "guest_view/web_view/web_view_guest_delegate.h",
399 "guest_view/web_view/web_view_permission_types.h",
400 "guest_view/web_view/web_view_permission_helper.cc",
401 "guest_view/web_view/web_view_permission_helper.h",
402 "guest_view/web_view/web_view_permission_helper_delegate.cc",
403 "guest_view/web_view/web_view_permission_helper_delegate.h",
404 "guest_view/web_view/web_view_renderer_state.cc",
405 "guest_view/web_view/web_view_renderer_state.h",
408 "image_loader_factory.cc",
409 "image_loader_factory.h",
414 "install/crx_installer_error.h",
415 "install/extension_install_ui.cc",
416 "install/extension_install_ui.h",
418 "lazy_background_task_queue.cc",
419 "lazy_background_task_queue.h",
420 "management_policy.cc",
421 "management_policy.h",
422 "mojo/keep_alive_impl.cc",
423 "mojo/keep_alive_impl.h",
424 "mojo/service_registration_manager.cc",
425 "mojo/service_registration_manager.h",
426 "mojo/stash_backend.cc",
427 "mojo/stash_backend.h",
428 "null_app_sorting.cc",
429 "null_app_sorting.h",
432 "process_manager.cc",
434 "process_manager_delegate.h",
435 "process_manager_factory.cc",
436 "process_manager_factory.h",
437 "process_manager_observer.h",
440 "process_map_factory.cc",
441 "process_map_factory.h",
444 "renderer_startup_helper.cc",
445 "renderer_startup_helper.h",
448 "script_execution_observer.h",
449 "script_executor.cc",
453 "suggest_permission_util.cc",
454 "suggest_permission_util.h",
455 "uninstall_reason.h",
457 "updater/extension_cache.h",
458 "updater/extension_downloader.cc",
459 "updater/extension_downloader.h",
460 "updater/extension_downloader_delegate.cc",
461 "updater/extension_downloader_delegate.h",
462 "updater/manifest_fetch_data.cc",
463 "updater/manifest_fetch_data.h",
464 "updater/null_extension_cache.cc",
465 "updater/null_extension_cache.h",
466 "updater/request_queue.h",
467 "updater/request_queue_impl.h",
468 "updater/safe_manifest_parser.cc",
469 "updater/safe_manifest_parser.h",
470 "updater/update_service.cc",
471 "updater/update_service.h",
472 "updater/update_service_factory.cc",
473 "updater/update_service_factory.h",
474 "url_request_util.cc",
475 "url_request_util.h",
476 "value_store/leveldb_value_store.cc",
477 "value_store/leveldb_value_store.h",
478 "value_store/testing_value_store.cc",
479 "value_store/testing_value_store.h",
480 "value_store/value_store.cc",
481 "value_store/value_store.h",
482 "value_store/value_store_change.cc",
483 "value_store/value_store_change.h",
484 "value_store/value_store_frontend.cc",
485 "value_store/value_store_frontend.h",
486 "value_store/value_store_util.cc",
487 "value_store/value_store_util.h",
488 "verified_contents.cc",
489 "verified_contents.h",
490 "view_type_utils.cc",
492 "warning_service.cc",
494 "warning_service_factory.cc",
495 "warning_service_factory.h",
501 "//components/storage_monitor",
503 "//device/bluetooth",
508 "//extensions/common/api/cast_channel:cast_channel_proto",
513 "api/cast_channel/cast_auth_util_openssl.cc",
517 "api/cast_channel/cast_auth_util_nss.cc",
523 "api/vpn_provider/vpn_provider_api.cc",
524 "api/vpn_provider/vpn_provider_api.h",
525 "api/vpn_provider/vpn_service.cc",
526 "api/vpn_provider/vpn_service.h",
527 "api/vpn_provider/vpn_service_factory.cc",
528 "api/vpn_provider/vpn_service_factory.h",
535 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.