blob: a5d3de712d39d269c6960dae1180d4114f111a90 [file] [log] [blame]
# 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/jumbo.gni")
import("//build/config/ui.gni")
# See //content/BUILD.gn for how this works.
group("browser") {
if (is_component_build) {
public_deps = [
"//content",
]
} else {
public_deps = [
":browser_sources",
]
}
}
jumbo_source_set("browser_sources") {
# External code should depend on via ":browser" above.
visibility = [ "//content/*" ]
sources = [
"android/android_overlay_provider.h",
"android/browser_media_player_manager_register.cc",
"android/browser_media_player_manager_register.h",
"android/child_process_importance.h",
"android/compositor.h",
"android/compositor_client.h",
"android/content_protocol_handler.h",
"android/devtools_auth.h",
"android/gpu_video_accelerator_factories_provider.h",
"android/java_interfaces.h",
"android/motion_event_action.h",
"android/synchronous_compositor.cc",
"android/synchronous_compositor.h",
"android/synchronous_compositor_client.h",
"appcache_service.h",
"audio_loopback_stream_creator.cc",
"audio_loopback_stream_creator.h",
"audio_service_info.cc",
"audio_service_info.h",
"authenticator_request_client_delegate.cc",
"authenticator_request_client_delegate.h",
"ax_event_notification_details.cc",
"ax_event_notification_details.h",
"background_fetch_delegate.cc",
"background_fetch_delegate.h",
"background_fetch_description.cc",
"background_fetch_description.h",
"background_fetch_response.cc",
"background_fetch_response.h",
"background_sync_controller.h",
"background_sync_parameters.cc",
"background_sync_parameters.h",
"background_tracing_config.cc",
"background_tracing_config.h",
"background_tracing_manager.h",
"blob_handle.h",
"bluetooth_chooser.cc",
"bluetooth_chooser.h",
"browser_accessibility_state.h",
"browser_associated_interface.h",
"browser_child_process_host.h",
"browser_child_process_host_delegate.h",
"browser_child_process_host_iterator.cc",
"browser_child_process_host_iterator.h",
"browser_child_process_observer.cc",
"browser_child_process_observer.h",
"browser_context.h",
"browser_ipc_logging.h",
"browser_main_parts.cc",
"browser_main_parts.h",
"browser_main_runner.h",
"browser_message_filter.cc",
"browser_message_filter.h",
"browser_plugin_guest_delegate.cc",
"browser_plugin_guest_delegate.h",
"browser_plugin_guest_manager.cc",
"browser_plugin_guest_manager.h",
"browser_ppapi_host.h",
"browser_task_traits.cc",
"browser_task_traits.h",
"browser_thread.h",
"browser_thread_delegate.h",
"browser_url_handler.h",
"browsing_data_filter_builder.h",
"browsing_data_remover.h",
"browsing_data_remover_delegate.h",
"cache_storage_context.h",
"cdm_registry.h",
"certificate_request_result_type.h",
"child_process_data.cc",
"child_process_data.h",
"child_process_launcher_utils.h",
"child_process_security_policy.h",
"child_process_termination_info.h",
"clear_site_data_utils.h",
"client_certificate_delegate.h",
"client_hints_controller_delegate.h",
"color_chooser.h",
"content_browser_client.cc",
"content_browser_client.h",
"cookie_store_factory.h",
"delegate_to_browser_gpu_service_accelerator_factory.h",
"desktop_capture.cc",
"desktop_capture.h",
"desktop_media_id.cc",
"desktop_media_id.h",
"desktop_streams_registry.h",
"devtools_agent_host.h",
"devtools_agent_host_client.cc",
"devtools_agent_host_client.h",
"devtools_agent_host_observer.cc",
"devtools_agent_host_observer.h",
"devtools_external_agent_proxy.h",
"devtools_external_agent_proxy_delegate.h",
"devtools_frontend_host.h",
"devtools_manager_delegate.cc",
"devtools_manager_delegate.h",
"devtools_network_transaction_factory.h",
"devtools_socket_factory.h",
"discardable_shared_memory_manager.h",
"dom_storage_context.h",
"download_item_utils.h",
"download_manager.cc",
"download_manager.h",
"download_manager_delegate.cc",
"download_manager_delegate.h",
"download_request_utils.h",
"download_utils.h",
"favicon_status.cc",
"favicon_status.h",
"file_select_listener.h",
"file_url_loader.h",
"focused_node_details.h",
"font_list_async.h",
"frame_service_base.h",
"generated_code_cache_settings.h",
"global_request_id.h",
"global_routing_id.h",
"gpu_client.h",
"gpu_data_manager.h",
"gpu_data_manager_observer.h",
"gpu_feature_checker.cc",
"gpu_feature_checker.h",
"gpu_service_registry.cc",
"gpu_service_registry.h",
"gpu_utils.cc",
"gpu_utils.h",
"guest_host.h",
"guest_mode.cc",
"guest_mode.h",
"histogram_fetcher.h",
"indexed_db_context.h",
"interstitial_page.h",
"interstitial_page_delegate.cc",
"interstitial_page_delegate.h",
"invalidate_type.h",
"javascript_dialog_manager.cc",
"javascript_dialog_manager.h",
"keyboard_event_processing_result.h",
"load_notification_details.h",
"login_delegate.h",
"manifest_icon_downloader.h",
"media_capture_devices.h",
"media_device_id.cc",
"media_device_id.h",
"media_request_state.h",
"media_session.h",
"media_session_observer.cc",
"media_session_observer.h",
"message_port_provider.h",
"mhtml_extra_parts.h",
"native_event_processor_mac.h",
"native_event_processor_observer_mac.h",
"native_event_processor_observer_mac.mm",
"native_web_keyboard_event.h",
"navigation_controller.cc",
"navigation_controller.h",
"navigation_data.h",
"navigation_details.cc",
"navigation_details.h",
"navigation_entry.h",
"navigation_handle.cc",
"navigation_handle.h",
"navigation_throttle.cc",
"navigation_throttle.h",
"navigation_type.h",
"navigation_ui_data.h",
"network_quality_observer_factory.h",
"network_service_instance.h",
"notification_database_data.cc",
"notification_database_data.h",
"notification_details.h",
"notification_event_dispatcher.h",
"notification_observer.h",
"notification_registrar.cc",
"notification_registrar.h",
"notification_service.h",
"notification_source.h",
"notification_types.h",
"origin_policy_error_reason.h",
"overlay_window.h",
"overscroll_configuration.h",
"page_navigator.cc",
"page_navigator.h",
"page_visibility_state.h",
"payment_app_provider.h",
"pepper_flash_settings_helper.h",
"pepper_vpn_provider_resource_host_proxy.h",
"permission_controller.h",
"permission_controller_delegate.h",
"permission_type.h",
"picture_in_picture_window_controller.h",
"platform_notification_context.h",
"platform_notification_service.h",
"plugin_data_remover.h",
"plugin_service.h",
"plugin_service_filter.h",
"presentation_request.cc",
"presentation_request.h",
"presentation_screen_availability_listener.h",
"presentation_service_delegate.h",
"provision_fetcher_factory.h",
"provision_fetcher_impl.cc",
"provision_fetcher_impl.h",
"push_messaging_service.cc",
"push_messaging_service.h",
"quota_permission_context.h",
"reload_type.h",
"render_frame_host.h",
"render_frame_metadata_provider.h",
"render_process_host.h",
"render_process_host_factory.h",
"render_process_host_observer.h",
"render_view_host.h",
"render_widget_host.h",
"render_widget_host_iterator.h",
"render_widget_host_view.h",
"render_widget_host_view_mac_delegate.h",
"replaced_navigation_entry_data.h",
"resource_context.h",
"resource_dispatcher_host.h",
"resource_dispatcher_host_delegate.cc",
"resource_dispatcher_host_delegate.h",
"resource_request_info.h",
"resource_throttle.cc",
"resource_throttle.h",
"restore_type.h",
"save_page_type.h",
"screen_orientation_delegate.h",
"screenlock_observer.h",
"security_style_explanation.cc",
"security_style_explanation.h",
"security_style_explanations.cc",
"security_style_explanations.h",
"serial_chooser.cc",
"serial_chooser.h",
"service_worker_context.h",
"service_worker_context_observer.h",
"session_storage_namespace.h",
"session_storage_usage_info.h",
"shared_cors_origin_access_list.h",
"shared_worker_service.h",
"site_instance.h",
"site_isolation_policy.cc",
"site_isolation_policy.h",
"speech_recognition_event_listener.h",
"speech_recognition_manager.h",
"speech_recognition_manager_delegate.h",
"speech_recognition_session_config.cc",
"speech_recognition_session_config.h",
"speech_recognition_session_context.cc",
"speech_recognition_session_context.h",
"speech_recognition_session_preamble.cc",
"speech_recognition_session_preamble.h",
"ssl_host_state_delegate.h",
"ssl_status.cc",
"ssl_status.h",
"startup_data.h",
"storage_partition.h",
"storage_usage_info.h",
"stored_payment_app.cc",
"stored_payment_app.h",
"stream_handle.h",
"stream_info.cc",
"stream_info.h",
"swap_metrics_driver.h",
"touch_selection_controller_client_manager.h",
"trace_uploader.h",
"tracing_controller.h",
"tracing_delegate.cc",
"tracing_delegate.h",
"tts_controller.h",
"tts_controller_delegate.h",
"tts_platform.h",
"tts_utterance.h",
"url_data_source.cc",
"url_data_source.h",
"url_loader_request_interceptor.h",
"video_capture_device_launcher.cc",
"video_capture_device_launcher.h",
"visibility.h",
"vpn_service_proxy.h",
"web_contents.cc",
"web_contents.h",
"web_contents_binding_set.cc",
"web_contents_binding_set.h",
"web_contents_delegate.cc",
"web_contents_delegate.h",
"web_contents_media_capture_id.cc",
"web_contents_media_capture_id.h",
"web_contents_observer.cc",
"web_contents_observer.h",
"web_contents_user_data.h",
"web_contents_view_delegate.cc",
"web_contents_view_delegate.h",
"web_drag_dest_delegate.h",
"web_ui.h",
"web_ui_controller.cc",
"web_ui_controller.h",
"web_ui_controller_factory.h",
"web_ui_data_source.h",
"web_ui_message_handler.h",
"web_ui_url_loader_factory.h",
"webrtc_event_logger.cc",
"webrtc_event_logger.h",
"webrtc_log.cc",
"webrtc_log.h",
"websocket_handshake_request_info.h",
"webvr_service_provider.cc",
"webvr_service_provider.h",
]
configs += [
"//build/config:precompiled_headers",
"//build/config/compiler:wexit_time_destructors",
"//content:content_implementation",
]
public_deps = [
"//components/download/public/common:public",
"//content/public/common:common_sources",
"//device/usb/public/mojom",
"//ipc",
"//media/mojo/interfaces:remoting",
"//mojo/public/cpp/bindings",
"//mojo/public/cpp/system",
"//services/media_session/public/cpp",
"//services/media_session/public/mojom",
"//services/network/public/mojom",
"//services/resource_coordinator/public/cpp:resource_coordinator_cpp",
"//services/service_manager/public/cpp",
"//services/tracing/public/cpp",
"//services/ws/public/mojom",
"//third_party/webrtc/modules/desktop_capture",
# We expose skia headers in the public API.
"//skia",
# We expose storage headers for quota and blob storage context in the public API.
"//storage/browser",
"//third_party/blink/public:mojo_bindings",
]
deps = [
"//cc",
"//components/viz/host",
"//content/browser", # Must not be public_deps!
"//device/fido",
"//gpu",
"//gpu/command_buffer/service:gles2",
"//media",
"//media/capture",
"//net",
"//ppapi/c",
"//services/device/public/cpp/geolocation",
"//services/service_manager/embedder:embedder_result_codes",
"//ui/accessibility",
"//ui/base",
"//ui/events",
"//ui/gl",
"//ui/shell_dialogs",
"//ui/surface",
]
allow_circular_includes_from = [
# This target is a pair with content/browser. They always go together and
# include headers from each other.
"//content/browser",
]
if (is_posix || is_fuchsia) {
sources += [ "posix_file_descriptor_info.h" ]
}
if (is_android) {
deps += [ "//ui/android" ]
}
if (use_aura || is_mac) {
sources += [ "context_factory.h" ]
}
if (use_aura) {
sources += [ "gpu_interface_provider_factory.h" ]
deps += [
"//services/ws/public/cpp/host",
"//ui/aura",
]
}
if (is_mac) {
sources += [
"ns_view_bridge_factory_host.h",
"ns_view_bridge_factory_impl.h",
]
}
if (!is_android) {
sources += [
"host_zoom_map.h",
"zoom_level_delegate.h",
]
}
}