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",
22 "//extensions/common",
23 "//extensions/common/api",
24 "//extensions/common/api:api_registration",
25 "//extensions/strings",
28 "//third_party/leveldatabase",
32 if (enable_extensions) {
33 # Includes all API implementations and the ExtensionsApiClient
34 # interface. Moving an API from src/chrome to src/extensions implies
35 # it can be cleanly disabled with enable_extensions=false.
36 # TODO: Eventually the entire extensions module should not be built
37 # when enable_extensions=false.
39 "api/activity_log/web_request_constants.cc",
40 "api/activity_log/web_request_constants.h",
41 "api/api_resource.cc",
43 "api/api_resource_manager.h",
44 "api/app_current_window_internal/app_current_window_internal_api.cc",
45 "api/app_current_window_internal/app_current_window_internal_api.h",
46 "api/app_runtime/app_runtime_api.cc",
47 "api/app_runtime/app_runtime_api.h",
48 "api/app_view/app_view_guest_internal_api.cc",
49 "api/app_view/app_view_guest_internal_api.h",
50 "api/app_window/app_window_api.cc",
51 "api/app_window/app_window_api.h",
52 "api/guest_view/guest_view_internal_api.cc",
53 "api/guest_view/guest_view_internal_api.h",
54 "api/async_api_function.cc",
55 "api/async_api_function.h",
56 "api/bluetooth/bluetooth_api.cc",
57 "api/bluetooth/bluetooth_api.h",
58 "api/bluetooth/bluetooth_api_pairing_delegate.cc",
59 "api/bluetooth/bluetooth_api_pairing_delegate.h",
60 "api/bluetooth/bluetooth_api_utils.cc",
61 "api/bluetooth/bluetooth_api_utils.h",
62 "api/bluetooth/bluetooth_event_router.cc",
63 "api/bluetooth/bluetooth_event_router.h",
64 "api/bluetooth/bluetooth_extension_function.cc",
65 "api/bluetooth/bluetooth_extension_function.h",
66 "api/bluetooth/bluetooth_private_api.cc",
67 "api/bluetooth/bluetooth_private_api.h",
68 "api/bluetooth_low_energy/bluetooth_low_energy_api.cc",
69 "api/bluetooth_low_energy/bluetooth_low_energy_api.h",
70 "api/bluetooth_low_energy/bluetooth_low_energy_connection.cc",
71 "api/bluetooth_low_energy/bluetooth_low_energy_connection.h",
72 "api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc",
73 "api/bluetooth_low_energy/bluetooth_low_energy_event_router.h",
74 "api/bluetooth_low_energy/bluetooth_low_energy_notify_session.cc",
75 "api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h",
76 "api/bluetooth_low_energy/utils.cc",
77 "api/bluetooth_low_energy/utils.h",
78 "api/bluetooth_socket/bluetooth_api_socket.cc",
79 "api/bluetooth_socket/bluetooth_api_socket.h",
80 "api/bluetooth_socket/bluetooth_socket_api.cc",
81 "api/bluetooth_socket/bluetooth_socket_api.h",
82 "api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc",
83 "api/bluetooth_socket/bluetooth_socket_event_dispatcher.h",
84 "api/capture_web_contents_function.cc",
85 "api/capture_web_contents_function.h",
86 "api/cast_channel/cast_auth_ica.cc",
87 "api/cast_channel/cast_auth_ica.h",
88 "api/cast_channel/cast_auth_util.cc",
89 "api/cast_channel/cast_auth_util.h",
90 "api/cast_channel/cast_channel_api.cc",
91 "api/cast_channel/cast_channel_api.h",
92 "api/cast_channel/cast_framer.cc",
93 "api/cast_channel/cast_framer.h",
94 "api/cast_channel/cast_message_util.cc",
95 "api/cast_channel/cast_message_util.h",
96 "api/cast_channel/cast_socket.cc",
97 "api/cast_channel/cast_socket.h",
98 "api/cast_channel/cast_transport.cc",
99 "api/cast_channel/cast_transport.h",
100 "api/cast_channel/logger.cc",
101 "api/cast_channel/logger.h",
102 "api/cast_channel/logger_util.cc",
103 "api/cast_channel/logger_util.h",
104 "api/copresence_socket/copresence_socket_api.cc",
105 "api/copresence_socket/copresence_socket_api.h",
106 "api/copresence_socket/copresence_socket_resources.cc",
107 "api/copresence_socket/copresence_socket_resources.h",
108 "api/declarative/declarative_api.cc",
109 "api/declarative/declarative_api.h",
110 "api/declarative/declarative_rule.h",
111 "api/declarative/deduping_factory.h",
112 "api/declarative/rules_cache_delegate.cc",
113 "api/declarative/rules_cache_delegate.h",
114 "api/declarative/rules_registry.cc",
115 "api/declarative/rules_registry.h",
116 "api/declarative/rules_registry_service.cc",
117 "api/declarative/rules_registry_service.h",
118 "api/declarative/test_rules_registry.cc",
119 "api/declarative/test_rules_registry.h",
120 "api/declarative_content/content_rules_registry.h",
121 "api/declarative_webrequest/request_stage.cc",
122 "api/declarative_webrequest/request_stage.h",
123 "api/declarative_webrequest/webrequest_action.cc",
124 "api/declarative_webrequest/webrequest_action.h",
125 "api/declarative_webrequest/webrequest_condition_attribute.cc",
126 "api/declarative_webrequest/webrequest_condition_attribute.h",
127 "api/declarative_webrequest/webrequest_condition.cc",
128 "api/declarative_webrequest/webrequest_condition.h",
129 "api/declarative_webrequest/webrequest_constants.cc",
130 "api/declarative_webrequest/webrequest_constants.h",
131 "api/declarative_webrequest/webrequest_rules_registry.cc",
132 "api/declarative_webrequest/webrequest_rules_registry.h",
133 "api/device_permissions_manager.cc",
134 "api/device_permissions_manager.h",
135 "api/device_permissions_prompt.cc",
136 "api/device_permissions_prompt.h",
137 "api/dns/dns_api.cc",
139 "api/dns/host_resolver_wrapper.cc",
140 "api/dns/host_resolver_wrapper.h",
141 "api/execute_code_function.cc",
142 "api/execute_code_function.h",
143 "api/extensions_api_client.cc",
144 "api/extensions_api_client.h",
145 "api/hid/hid_api.cc",
147 "api/hid/hid_connection_resource.cc",
148 "api/hid/hid_connection_resource.h",
149 "api/hid/hid_device_manager.cc",
150 "api/hid/hid_device_manager.h",
151 "api/messaging/native_message_host.cc",
152 "api/power/power_api.cc",
153 "api/power/power_api.h",
154 "api/power/power_api_manager.cc",
155 "api/power/power_api_manager.h",
156 "api/runtime/runtime_api.cc",
157 "api/runtime/runtime_api.h",
158 "api/runtime/runtime_api_delegate.cc",
159 "api/runtime/runtime_api_delegate.h",
160 "api/serial/serial_api.cc",
161 "api/serial/serial_api.h",
162 "api/serial/serial_connection.cc",
163 "api/serial/serial_connection.h",
164 "api/serial/serial_event_dispatcher.cc",
165 "api/serial/serial_event_dispatcher.h",
166 "api/socket/socket.cc",
167 "api/socket/socket.h",
168 "api/socket/socket_api.cc",
169 "api/socket/socket_api.h",
170 "api/socket/tcp_socket.cc",
171 "api/socket/tcp_socket.h",
172 "api/socket/tls_socket.cc",
173 "api/socket/tls_socket.h",
174 "api/socket/udp_socket.cc",
175 "api/socket/udp_socket.h",
176 "api/sockets_tcp/sockets_tcp_api.cc",
177 "api/sockets_tcp/sockets_tcp_api.h",
178 "api/sockets_tcp/tcp_socket_event_dispatcher.cc",
179 "api/sockets_tcp/tcp_socket_event_dispatcher.h",
180 "api/sockets_tcp_server/sockets_tcp_server_api.cc",
181 "api/sockets_tcp_server/sockets_tcp_server_api.h",
182 "api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc",
183 "api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h",
184 "api/sockets_udp/sockets_udp_api.cc",
185 "api/sockets_udp/sockets_udp_api.h",
186 "api/sockets_udp/udp_socket_event_dispatcher.cc",
187 "api/sockets_udp/udp_socket_event_dispatcher.h",
188 "api/storage/leveldb_settings_storage_factory.cc",
189 "api/storage/leveldb_settings_storage_factory.h",
190 "api/storage/local_value_store_cache.cc",
191 "api/storage/local_value_store_cache.h",
192 "api/storage/settings_namespace.cc",
193 "api/storage/settings_namespace.h",
194 "api/storage/settings_observer.h",
195 "api/storage/settings_storage_factory.h",
196 "api/storage/settings_storage_quota_enforcer.cc",
197 "api/storage/settings_storage_quota_enforcer.h",
198 "api/storage/storage_api.cc",
199 "api/storage/storage_api.h",
200 "api/storage/storage_frontend.cc",
201 "api/storage/storage_frontend.h",
202 "api/storage/value_store_cache.cc",
203 "api/storage/value_store_cache.h",
204 "api/storage/weak_unlimited_settings_storage.cc",
205 "api/storage/weak_unlimited_settings_storage.h",
206 "api/system_cpu/cpu_info_provider.cc",
207 "api/system_cpu/cpu_info_provider.h",
208 "api/system_cpu/cpu_info_provider_linux.cc",
209 "api/system_cpu/cpu_info_provider_mac.cc",
210 "api/system_cpu/cpu_info_provider_win.cc",
211 "api/system_cpu/system_cpu_api.cc",
212 "api/system_cpu/system_cpu_api.h",
213 "api/system_display/display_info_provider.cc",
214 "api/system_display/display_info_provider.h",
215 "api/system_display/system_display_api.cc",
216 "api/system_display/system_display_api.h",
217 "api/system_info/system_info_api.cc",
218 "api/system_info/system_info_api.h",
219 "api/system_info/system_info_provider.cc",
220 "api/system_info/system_info_provider.h",
221 "api/system_memory/memory_info_provider.cc",
222 "api/system_memory/memory_info_provider.h",
223 "api/system_memory/system_memory_api.cc",
224 "api/system_memory/system_memory_api.h",
225 "api/system_network/system_network_api.cc",
226 "api/system_network/system_network_api.h",
227 "api/system_storage/storage_info_provider.cc",
228 "api/system_storage/storage_info_provider.h",
229 "api/system_storage/system_storage_api.cc",
230 "api/system_storage/system_storage_api.h",
231 "api/test/test_api.cc",
232 "api/test/test_api.h",
233 "api/usb/usb_api.cc",
235 "api/usb/usb_device_resource.cc",
236 "api/usb/usb_device_resource.h",
237 "api/virtual_keyboard_private/virtual_keyboard_private_api.cc",
238 "api/virtual_keyboard_private/virtual_keyboard_private_api.h",
239 "api/virtual_keyboard_private/virtual_keyboard_delegate.h",
240 "api/web_request/form_data_parser.cc",
241 "api/web_request/form_data_parser.h",
242 "api/web_request/upload_data_presenter.cc",
243 "api/web_request/upload_data_presenter.h",
244 "api/web_request/web_request_api.cc",
245 "api/web_request/web_request_api.h",
246 "api/web_request/web_request_api_constants.cc",
247 "api/web_request/web_request_api_constants.h",
248 "api/web_request/web_request_api_helpers.cc",
249 "api/web_request/web_request_api_helpers.h",
250 "api/web_request/web_request_permissions.cc",
251 "api/web_request/web_request_permissions.h",
252 "api/web_request/web_request_event_router_delegate.cc",
253 "api/web_request/web_request_event_router_delegate.h",
254 "api/web_request/web_request_time_tracker.cc",
255 "api/web_request/web_request_time_tracker.h",
256 "api/web_view/web_view_internal_api.cc",
257 "api/web_view/web_view_internal_api.h",
258 "api_activity_monitor.h",
260 "app_window/app_delegate.h",
261 "app_window/app_web_contents_helper.cc",
262 "app_window/app_web_contents_helper.h",
263 "app_window/app_window.cc",
264 "app_window/app_window.h",
265 "app_window/app_window_client.cc",
266 "app_window/app_window_client.h",
267 "app_window/app_window_contents.cc",
268 "app_window/app_window_contents.h",
269 "app_window/app_window_geometry_cache.cc",
270 "app_window/app_window_geometry_cache.h",
271 "app_window/app_window_registry.cc",
272 "app_window/app_window_registry.h",
273 "app_window/native_app_window.h",
274 "app_window/size_constraints.cc",
275 "app_window/size_constraints.h",
279 "browser_context_keyed_api_factory.h",
280 "browser_context_keyed_service_factories.cc",
281 "browser_context_keyed_service_factories.h",
282 "component_extension_resource_manager.h",
283 "computed_hashes.cc",
285 "content_hash_fetcher.cc",
286 "content_hash_fetcher.h",
287 "content_hash_reader.cc",
288 "content_hash_reader.h",
289 "content_hash_tree.cc",
290 "content_hash_tree.h",
291 "content_verifier.cc",
292 "content_verifier.h",
293 "content_verifier_delegate.h",
294 "content_verifier_io_data.cc",
295 "content_verifier_io_data.h",
296 "content_verify_job.cc",
297 "content_verify_job.h",
300 "event_listener_map.cc",
301 "event_listener_map.h",
304 "extension_error.cc",
306 "extension_function.cc",
307 "extension_function.h",
308 "extension_function_dispatcher.cc",
309 "extension_function_dispatcher.h",
310 "extension_function_registry.cc",
311 "extension_function_registry.h",
312 "extension_function_util.cc",
313 "extension_function_util.h",
316 "extension_host_delegate.h",
317 "extension_icon_image.cc",
318 "extension_icon_image.h",
319 "extension_message_filter.cc",
320 "extension_message_filter.h",
321 "extension_pref_store.cc",
322 "extension_pref_store.h",
323 "extension_pref_value_map.cc",
324 "extension_pref_value_map.h",
325 "extension_pref_value_map_factory.cc",
326 "extension_pref_value_map_factory.h",
327 "extension_prefs.cc",
329 "extension_prefs_factory.cc",
330 "extension_prefs_factory.h",
331 "extension_prefs_observer.h",
332 "extension_prefs_scope.h",
333 "extension_protocols.cc",
334 "extension_protocols.h",
335 "extension_registry.cc",
336 "extension_registry.h",
337 "extension_registry_factory.cc",
338 "extension_registry_factory.h",
339 "extension_registry_observer.h",
340 "extension_scoped_prefs.h",
341 "extension_system.cc",
342 "extension_system.h",
343 "extension_system_provider.cc",
344 "extension_system_provider.h",
347 "extension_web_contents_observer.cc",
348 "extension_web_contents_observer.h",
349 "extensions_browser_client.cc",
350 "extensions_browser_client.h",
351 "external_provider_interface.h",
352 "file_highlighter.cc",
353 "file_highlighter.h",
356 "granted_file_entry.cc",
357 "granted_file_entry.h",
358 "guest_view/app_view/app_view_constants.cc",
359 "guest_view/app_view/app_view_constants.h",
360 "guest_view/app_view/app_view_guest.cc",
361 "guest_view/app_view/app_view_guest.h",
362 "guest_view/app_view/app_view_guest_delegate.cc",
363 "guest_view/app_view/app_view_guest_delegate.h",
364 "guest_view/extension_options/extension_options_constants.cc",
365 "guest_view/extension_options/extension_options_constants.h",
366 "guest_view/extension_options/extension_options_guest.cc",
367 "guest_view/extension_options/extension_options_guest.h",
368 "guest_view/extension_options/extension_options_guest_delegate.cc",
369 "guest_view/extension_options/extension_options_guest_delegate.h",
370 "guest_view/guest_view_base.cc",
371 "guest_view/guest_view_base.h",
372 "guest_view/guest_view_manager_factory.h",
373 "guest_view/guest_view_manager.cc",
374 "guest_view/guest_view_manager.h",
375 "guest_view/guest_view.h",
376 "guest_view/mime_handler_view/mime_handler_view_constants.cc",
377 "guest_view/mime_handler_view/mime_handler_view_constants.h",
378 "guest_view/mime_handler_view/mime_handler_view_guest.h",
379 "guest_view/mime_handler_view/mime_handler_view_guest.cc",
380 "guest_view/mime_handler_view/mime_handler_view_guest_delegate.cc",
381 "guest_view/mime_handler_view/mime_handler_view_guest_delegate.h",
382 "guest_view/web_view/javascript_dialog_helper.cc",
383 "guest_view/web_view/javascript_dialog_helper.h",
384 "guest_view/web_view/web_view_constants.cc",
385 "guest_view/web_view/web_view_constants.h",
386 "guest_view/web_view/web_view_find_helper.cc",
387 "guest_view/web_view/web_view_find_helper.h",
388 "guest_view/web_view/web_view_guest.cc",
389 "guest_view/web_view/web_view_guest.h",
390 "guest_view/web_view/web_view_guest_delegate.h",
391 "guest_view/web_view/web_view_permission_types.h",
392 "guest_view/web_view/web_view_permission_helper.cc",
393 "guest_view/web_view/web_view_permission_helper.h",
394 "guest_view/web_view/web_view_permission_helper_delegate.cc",
395 "guest_view/web_view/web_view_permission_helper_delegate.h",
396 "guest_view/web_view/web_view_renderer_state.cc",
397 "guest_view/web_view/web_view_renderer_state.h",
400 "image_loader_factory.cc",
401 "image_loader_factory.h",
406 "install/crx_installer_error.h",
407 "install/extension_install_ui.cc",
408 "install/extension_install_ui.h",
410 "lazy_background_task_queue.cc",
411 "lazy_background_task_queue.h",
412 "management_policy.cc",
413 "management_policy.h",
414 "mojo/keep_alive_impl.cc",
415 "mojo/keep_alive_impl.h",
416 "mojo/service_registration_manager.cc",
417 "mojo/service_registration_manager.h",
418 "mojo/stash_backend.cc",
419 "mojo/stash_backend.h",
420 "null_app_sorting.cc",
421 "null_app_sorting.h",
424 "process_manager.cc",
426 "process_manager_delegate.h",
427 "process_manager_factory.cc",
428 "process_manager_factory.h",
429 "process_manager_observer.h",
432 "process_map_factory.cc",
433 "process_map_factory.h",
436 "renderer_startup_helper.cc",
437 "renderer_startup_helper.h",
440 "script_execution_observer.h",
441 "script_executor.cc",
445 "suggest_permission_util.cc",
446 "suggest_permission_util.h",
447 "uninstall_reason.h",
449 "updater/extension_cache.h",
450 "updater/extension_downloader.cc",
451 "updater/extension_downloader.h",
452 "updater/extension_downloader_delegate.cc",
453 "updater/extension_downloader_delegate.h",
454 "updater/manifest_fetch_data.cc",
455 "updater/manifest_fetch_data.h",
456 "updater/null_extension_cache.cc",
457 "updater/null_extension_cache.h",
458 "updater/request_queue.h",
459 "updater/request_queue_impl.h",
460 "updater/safe_manifest_parser.cc",
461 "updater/safe_manifest_parser.h",
462 "url_request_util.cc",
463 "url_request_util.h",
464 "value_store/leveldb_value_store.cc",
465 "value_store/leveldb_value_store.h",
466 "value_store/testing_value_store.cc",
467 "value_store/testing_value_store.h",
468 "value_store/value_store.cc",
469 "value_store/value_store.h",
470 "value_store/value_store_change.cc",
471 "value_store/value_store_change.h",
472 "value_store/value_store_frontend.cc",
473 "value_store/value_store_frontend.h",
474 "value_store/value_store_util.cc",
475 "value_store/value_store_util.h",
476 "verified_contents.cc",
477 "verified_contents.h",
478 "view_type_utils.cc",
480 "warning_service.cc",
487 "//components/storage_monitor",
489 "//device/bluetooth",
494 "//extensions/common/api/cast_channel:cast_channel_proto",
499 "api/cast_channel/cast_auth_util_openssl.cc",
503 "api/cast_channel/cast_auth_util_nss.cc",
510 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.