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