Commit a932263a authored by steel's avatar steel Committed by Commit bot

Decompose //extensions/browser/BUILD.gn

This CL changes the extensions build to have BUILD.gn's in (almost) all
leaf directories. This accomplishes several things,

a.) Makes it very clear of what files belong to which component/API. For
example, to see which files exist in the audio API, one needs to parse
the massive single //extensions/browsers/BUILD.gn to find the main API
source list, then look if any of the exception conditions (is_chromeos,
is_linux, etc) also contain any of the audio API files. This is now all
in one //extensions/browser/api/audio/BUILD.gn, making it easier to parse
and understand the build of each component.

b.) It makes dependencies clearer. Currently we have no idea which
dependency in the huge dependency list in //extensions/browser/BUILD.gn is
needed by which API. With individual build files, we can now specify
dependencies for just the component that needs them. This CL tries to
do this but some dependencies are used by enough components that we've just
included them for all (//content/browser/public, //skia). This is not ideal
but at worst, it is still much better than the current build.

Since we're now moving APIs over from //chrome/browser/extensions over to
//extensions/browser, this becomes even more important. All APIs that get
moved over now can use this new format for their build files.

jamescook@, rockot@, xiyuan@ - FYI

R=rdevlin.cronin@chromium.org
BUG=641155

Review-Url: https://codereview.chromium.org/2336843002
Cr-Commit-Position: refs/heads/master@{#418729}
parent a08ce102
This diff is collapsed.
# Copyright 2016 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.
source_set("api") {
sources = [
"api_resource.cc",
"api_resource.h",
"api_resource_manager.h",
"async_api_function.cc",
"async_api_function.h",
"device_permissions_manager.cc",
"device_permissions_manager.h",
"device_permissions_prompt.cc",
"device_permissions_prompt.h",
"execute_code_function.cc",
"execute_code_function.h",
"extensions_api_client.cc",
"extensions_api_client.h",
"web_contents_capture_client.cc",
"web_contents_capture_client.h",
]
public_deps = [
"//extensions/browser/api/activity_log",
"//extensions/browser/api/alarms",
"//extensions/browser/api/app_current_window_internal",
"//extensions/browser/api/app_runtime",
"//extensions/browser/api/app_window",
"//extensions/browser/api/audio",
"//extensions/browser/api/bluetooth",
"//extensions/browser/api/bluetooth_socket",
"//extensions/browser/api/cast_channel",
"//extensions/browser/api/clipboard",
"//extensions/browser/api/declarative",
"//extensions/browser/api/declarative_content",
"//extensions/browser/api/declarative_webrequest",
"//extensions/browser/api/display_source",
"//extensions/browser/api/dns",
"//extensions/browser/api/document_scan",
"//extensions/browser/api/guest_view",
"//extensions/browser/api/guest_view/app_view",
"//extensions/browser/api/guest_view/extension_view",
"//extensions/browser/api/guest_view/web_view",
"//extensions/browser/api/hid",
"//extensions/browser/api/idle",
"//extensions/browser/api/management",
"//extensions/browser/api/messaging",
"//extensions/browser/api/mime_handler_private",
"//extensions/browser/api/networking_private",
"//extensions/browser/api/power",
"//extensions/browser/api/printer_provider",
"//extensions/browser/api/printer_provider_internal",
"//extensions/browser/api/runtime",
"//extensions/browser/api/serial",
"//extensions/browser/api/socket",
"//extensions/browser/api/sockets_tcp",
"//extensions/browser/api/sockets_tcp_server",
"//extensions/browser/api/sockets_udp",
"//extensions/browser/api/storage",
"//extensions/browser/api/system_cpu",
"//extensions/browser/api/system_display",
"//extensions/browser/api/system_info",
"//extensions/browser/api/system_memory",
"//extensions/browser/api/system_network",
"//extensions/browser/api/system_storage",
"//extensions/browser/api/test",
"//extensions/browser/api/usb",
"//extensions/browser/api/virtual_keyboard_private",
"//extensions/browser/api/web_request",
]
deps = [
"//base:i18n",
"//content/public/browser",
]
if (is_chromeos) {
public_deps += [
"//extensions/browser/api/diagnostics",
"//extensions/browser/api/networking_config",
"//extensions/browser/api/vpn_provider",
"//extensions/browser/api/webcam_private",
]
}
}
# Copyright 2016 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.
source_set("activity_log") {
sources = [
"web_request_constants.cc",
"web_request_constants.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("alarms") {
sources = [
"alarm_manager.cc",
"alarm_manager.h",
"alarms_api.cc",
"alarms_api.h",
"alarms_api_constants.cc",
"alarms_api_constants.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("app_current_window_internal") {
sources = [
"app_current_window_internal_api.cc",
"app_current_window_internal_api.h",
]
deps = [
"//content/public/browser",
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("app_runtime") {
sources = [
"app_runtime_api.cc",
"app_runtime_api.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("app_window") {
sources = [
"app_window_api.cc",
"app_window_api.h",
]
deps = [
"//content/public/browser",
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("audio") {
sources = [
"audio_api.cc",
"audio_api.h",
"audio_service.h",
]
if (is_chromeos) {
sources += [ "audio_service_chromeos.cc" ]
} else {
sources += [ "audio_service.cc" ]
}
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("bluetooth") {
sources = [
"bluetooth_api.cc",
"bluetooth_api.h",
"bluetooth_api_pairing_delegate.cc",
"bluetooth_api_pairing_delegate.h",
"bluetooth_api_utils.cc",
"bluetooth_api_utils.h",
"bluetooth_event_router.cc",
"bluetooth_event_router.h",
"bluetooth_extension_function.cc",
"bluetooth_extension_function.h",
"bluetooth_private_api.cc",
"bluetooth_private_api.h",
]
deps = [
"//content/public/browser",
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("bluetooth_socket") {
sources = [
"bluetooth_api_socket.cc",
"bluetooth_api_socket.h",
"bluetooth_socket_api.cc",
"bluetooth_socket_api.h",
"bluetooth_socket_event_dispatcher.cc",
"bluetooth_socket_event_dispatcher.h",
]
configs += [
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
"//build/config/compiler:no_size_t_to_int_warning",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("cast_channel") {
sources = [
"cast_auth_util.cc",
"cast_auth_util.h",
"cast_channel_api.cc",
"cast_channel_api.h",
"cast_framer.cc",
"cast_framer.h",
"cast_message_util.cc",
"cast_message_util.h",
"cast_socket.cc",
"cast_socket.h",
"cast_transport.cc",
"cast_transport.h",
"keep_alive_delegate.cc",
"keep_alive_delegate.h",
"logger.cc",
"logger.h",
"logger_util.cc",
"logger_util.h",
]
deps = [
"//extensions/common/api",
"//extensions/common/api/cast_channel:cast_channel_proto",
]
}
# Copyright 2016 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.
source_set("clipboard") {
sources = [
"clipboard_api.cc",
"clipboard_api.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("declarative") {
sources = [
"declarative_api.cc",
"declarative_api.h",
"declarative_rule.h",
"deduping_factory.h",
"rules_cache_delegate.cc",
"rules_cache_delegate.h",
"rules_registry.cc",
"rules_registry.h",
"rules_registry_service.cc",
"rules_registry_service.h",
"test_rules_registry.cc",
"test_rules_registry.h",
]
deps = [
"//content/public/browser",
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("declarative_content") {
sources = [
"content_rules_registry.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("declarative_webrequest") {
sources = [
"request_stage.cc",
"request_stage.h",
"webrequest_action.cc",
"webrequest_action.h",
"webrequest_condition.cc",
"webrequest_condition.h",
"webrequest_condition_attribute.cc",
"webrequest_condition_attribute.h",
"webrequest_constants.cc",
"webrequest_constants.h",
"webrequest_rules_registry.cc",
"webrequest_rules_registry.h",
]
deps = [
"//content/public/browser",
"//content/public/browser",
"//extensions/common/api",
"//third_party/re2",
]
}
# Copyright 2016 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.
assert(is_chromeos)
source_set("diagnostics") {
sources = [
"diagnostics_api.cc",
"diagnostics_api.h",
"diagnostics_api_chromeos.cc",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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/features.gni")
source_set("display_source") {
sources = [
"display_source_api.cc",
"display_source_api.h",
"display_source_connection_delegate.cc",
"display_source_connection_delegate.h",
"display_source_connection_delegate_factory.cc",
"display_source_connection_delegate_factory.h",
"display_source_event_router.cc",
"display_source_event_router.h",
"display_source_event_router_factory.cc",
"display_source_event_router_factory.h",
]
if (!is_chromeos) {
if (proprietary_codecs && enable_wifi_display) {
sources += [
"wifi_display/wifi_display_media_service_impl.cc",
"wifi_display/wifi_display_media_service_impl.h",
"wifi_display/wifi_display_session_service_impl.cc",
"wifi_display/wifi_display_session_service_impl.h",
]
}
}
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("dns") {
sources = [
"dns_api.cc",
"dns_api.h",
"host_resolver_wrapper.cc",
"host_resolver_wrapper.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("document_scan") {
sources = [
"document_scan_api.cc",
"document_scan_api.h",
"document_scan_interface.cc",
"document_scan_interface.h",
"document_scan_interface_chromeos.cc",
]
if (!is_chromeos) {
sources += [ "document_scan_interface_nonchromeos.cc" ]
}
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("guest_view") {
sources = [
"guest_view_internal_api.cc",
"guest_view_internal_api.h",
]
deps = [
"//content/public/browser",
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("app_view") {
sources = [
"app_view_guest_internal_api.cc",
"app_view_guest_internal_api.h",
]
deps = [
"//content/public/browser",
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("extension_view") {
sources = [
"extension_view_internal_api.cc",
"extension_view_internal_api.h",
]
deps = [
"//content/public/browser",
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("web_view") {
sources = [
"web_view_internal_api.cc",
"web_view_internal_api.h",
]
deps = [
"//content/public/browser",
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("hid") {
sources = [
"hid_api.cc",
"hid_api.h",
"hid_connection_resource.cc",
"hid_connection_resource.h",
"hid_device_manager.cc",
"hid_device_manager.h",
]
configs += [
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
"//build/config/compiler:no_size_t_to_int_warning",
]
deps = [
"//content/public/browser",
"//content/public/common",
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("idle") {
sources = [
"idle_api.cc",
"idle_api.h",
"idle_api_constants.cc",
"idle_api_constants.h",
"idle_manager.cc",
"idle_manager.h",
"idle_manager_factory.cc",
"idle_manager_factory.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("management") {
sources = [
"management_api.cc",
"management_api.h",
"management_api_constants.cc",
"management_api_constants.h",
"management_api_delegate.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("messaging") {
sources = [
"native_message_host.cc",
"native_message_host.h",
"native_messaging_channel.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("mime_handler_private") {
sources = [
"mime_handler_private.cc",
"mime_handler_private.h",
]
deps = [
"//content/public/browser",
"//extensions/common/api",
]
}
# Copyright 2016 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.
assert(is_chromeos)
source_set("networking_config") {
sources = [
"networking_config_api.cc",
"networking_config_api.h",
"networking_config_service.cc",
"networking_config_service.h",
"networking_config_service_factory.cc",
"networking_config_service_factory.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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/features.gni")
source_set("networking_private") {
sources = [
"networking_private_api.cc",
"networking_private_api.h",
"networking_private_chromeos.cc",
"networking_private_chromeos.h",
"networking_private_delegate.cc",
"networking_private_delegate.h",
"networking_private_delegate_factory.cc",
"networking_private_delegate_factory.h",
"networking_private_delegate_observer.h",
"networking_private_event_router.h",
"networking_private_event_router_chromeos.cc",
"networking_private_event_router_factory.cc",
"networking_private_event_router_factory.h",
]
deps = [
"//extensions/common/api",
]
if (!is_chromeos && is_linux) {
sources += [
"network_config_dbus_constants_linux.cc",
"network_config_dbus_constants_linux.h",
"networking_private_event_router_nonchromeos.cc",
"networking_private_linux.cc",
"networking_private_linux.h",
]
if (use_dbus) {
deps += [ "//dbus" ]
}
} else if (is_win || is_mac) {
sources += [
"networking_private_event_router_nonchromeos.cc",
"networking_private_service_client.cc",
"networking_private_service_client.h",
]
deps += [ "//components/wifi" ]
}
}
# Copyright 2016 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.
source_set("power") {
sources = [
"power_api.cc",
"power_api.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("printer_provider") {
sources = [
"printer_provider_api.cc",
"printer_provider_api.h",
"printer_provider_api_factory.cc",
"printer_provider_api_factory.h",
"printer_provider_print_job.cc",
"printer_provider_print_job.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("printer_provider_internal") {
sources = [
"printer_provider_internal_api.cc",
"printer_provider_internal_api.h",
"printer_provider_internal_api_observer.h",
]
deps = [
"//content/public/browser",
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("runtime") {
sources = [
"runtime_api.cc",
"runtime_api.h",
"runtime_api_delegate.cc",
"runtime_api_delegate.h",
]
deps = [
"//content/public/browser",
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("serial") {
sources = [
"serial_api.cc",
"serial_api.h",
"serial_connection.cc",
"serial_connection.h",
"serial_event_dispatcher.cc",
"serial_event_dispatcher.h",
"serial_service_factory.cc",
"serial_service_factory.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("socket") {
sources = [
"socket.cc",
"socket.h",
"socket_api.cc",
"socket_api.h",
"tcp_socket.cc",
"tcp_socket.h",
"tls_socket.cc",
"tls_socket.h",
"udp_socket.cc",
"udp_socket.h",
]
if (is_chromeos) {
sources += [
"app_firewall_hole_manager.cc",
"app_firewall_hole_manager.h",
]
}
configs += [
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
"//build/config/compiler:no_size_t_to_int_warning",
]
deps = [
"//content/public/browser",
"//content/public/common",
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("sockets_tcp") {
sources = [
"sockets_tcp_api.cc",
"sockets_tcp_api.h",
"tcp_socket_event_dispatcher.cc",
"tcp_socket_event_dispatcher.h",
]
configs += [
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
"//build/config/compiler:no_size_t_to_int_warning",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("sockets_tcp_server") {
sources = [
"sockets_tcp_server_api.cc",
"sockets_tcp_server_api.h",
"tcp_server_socket_event_dispatcher.cc",
"tcp_server_socket_event_dispatcher.h",
]
deps = [
"//content/public/browser",
"//content/public/common",
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("sockets_udp") {
sources = [
"sockets_udp_api.cc",
"sockets_udp_api.h",
"udp_socket_event_dispatcher.cc",
"udp_socket_event_dispatcher.h",
]
configs += [
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
"//build/config/compiler:no_size_t_to_int_warning",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("storage") {
sources = [
"local_value_store_cache.cc",
"local_value_store_cache.h",
"settings_namespace.cc",
"settings_namespace.h",
"settings_observer.h",
"settings_storage_quota_enforcer.cc",
"settings_storage_quota_enforcer.h",
"storage_api.cc",
"storage_api.h",
"storage_frontend.cc",
"storage_frontend.h",
"value_store_cache.cc",
"value_store_cache.h",
"weak_unlimited_settings_storage.cc",
"weak_unlimited_settings_storage.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("system_cpu") {
sources = [
"cpu_info_provider.cc",
"cpu_info_provider.h",
"cpu_info_provider_linux.cc",
"cpu_info_provider_mac.cc",
"cpu_info_provider_win.cc",
"system_cpu_api.cc",
"system_cpu_api.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("system_display") {
sources = [
"display_info_provider.cc",
"display_info_provider.h",
"system_display_api.cc",
"system_display_api.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("system_info") {
sources = [
"system_info_api.cc",
"system_info_api.h",
"system_info_provider.cc",
"system_info_provider.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("system_memory") {
sources = [
"memory_info_provider.cc",
"memory_info_provider.h",
"system_memory_api.cc",
"system_memory_api.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("system_network") {
sources = [
"system_network_api.cc",
"system_network_api.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("system_storage") {
sources = [
"storage_info_provider.cc",
"storage_info_provider.h",
"system_storage_api.cc",
"system_storage_api.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("test") {
sources = [
"test_api.cc",
"test_api.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("usb") {
sources = [
"usb_api.cc",
"usb_api.h",
"usb_device_resource.cc",
"usb_device_resource.h",
"usb_event_router.cc",
"usb_event_router.h",
"usb_guid_map.cc",
"usb_guid_map.h",
]
configs += [
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
"//build/config/compiler:no_size_t_to_int_warning",
]
deps = [
"//content/public/browser",
"//content/public/common",
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("virtual_keyboard_private") {
sources = [
"virtual_keyboard_delegate.h",
"virtual_keyboard_private_api.cc",
"virtual_keyboard_private_api.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
assert(is_chromeos)
source_set("vpn_provider") {
sources = [
"vpn_provider_api.cc",
"vpn_provider_api.h",
"vpn_service.cc",
"vpn_service.h",
"vpn_service_factory.h",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("web_request") {
sources = [
"form_data_parser.cc",
"form_data_parser.h",
"upload_data_presenter.cc",
"upload_data_presenter.h",
"web_request_api.cc",
"web_request_api.h",
"web_request_api_constants.cc",
"web_request_api_constants.h",
"web_request_api_helpers.cc",
"web_request_api_helpers.h",
"web_request_event_details.cc",
"web_request_event_details.h",
"web_request_event_router_delegate.h",
"web_request_permissions.cc",
"web_request_permissions.h",
"web_request_time_tracker.cc",
"web_request_time_tracker.h",
]
configs += [
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
"//build/config/compiler:no_size_t_to_int_warning",
]
deps = [
"//content/public/browser",
"//content/public/common",
"//extensions/common/api",
"//third_party/re2",
]
}
# Copyright 2016 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.
assert(is_chromeos)
source_set("webcam_private") {
sources = [
"v4l2_webcam.cc",
"v4l2_webcam.h",
"visca_webcam.cc",
"visca_webcam.h",
"webcam.cc",
"webcam.h",
"webcam_private_api.h",
"webcam_private_api_chromeos.cc",
]
deps = [
"//extensions/common/api",
]
}
# Copyright 2016 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.
source_set("app_window") {
sources = [
"app_delegate.h",
"app_web_contents_helper.cc",
"app_web_contents_helper.h",
"app_window.cc",
"app_window.h",
"app_window_client.cc",
"app_window_client.h",
"app_window_contents.cc",
"app_window_contents.h",
"app_window_geometry_cache.cc",
"app_window_geometry_cache.h",
"app_window_registry.cc",
"app_window_registry.h",
"native_app_window.h",
"size_constraints.cc",
"size_constraints.h",
]
configs += [
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
"//build/config/compiler:no_size_t_to_int_warning",
]
deps = [
"//content/public/common",
"//extensions/strings",
]
}
# Copyright 2016 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.
source_set("guest_view") {
sources = [
"extensions_guest_view_manager_delegate.cc",
"extensions_guest_view_manager_delegate.h",
"extensions_guest_view_message_filter.cc",
"extensions_guest_view_message_filter.h",
"guest_view_events.cc",
"guest_view_events.h",
]
public_deps = [
"//extensions/browser/guest_view/app_view",
"//extensions/browser/guest_view/extension_options",
"//extensions/browser/guest_view/extension_view",
"//extensions/browser/guest_view/extension_view/whitelist",
"//extensions/browser/guest_view/mime_handler_view",
"//extensions/browser/guest_view/web_view",
"//extensions/browser/guest_view/web_view/web_ui",
]
deps = [
"//content/public/common",
]
}
# Copyright 2016 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.
source_set("app_view") {
sources = [
"app_view_constants.cc",
"app_view_constants.h",
"app_view_guest.cc",
"app_view_guest.h",
"app_view_guest_delegate.cc",
"app_view_guest_delegate.h",
]
deps = [
"//content/public/common",
]
}
# Copyright 2016 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.
source_set("extension_options") {
sources = [
"extension_options_constants.cc",
"extension_options_constants.h",
"extension_options_guest.cc",
"extension_options_guest.h",
"extension_options_guest_delegate.cc",
"extension_options_guest_delegate.h",
]
deps = [
"//content/public/common",
]
}
# Copyright 2016 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.
source_set("extension_view") {
sources = [
"extension_view_constants.cc",
"extension_view_constants.h",
"extension_view_guest.cc",
"extension_view_guest.h",
]
deps = [
"//content/public/common",
]
}
# Copyright 2016 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.
source_set("whitelist") {
sources = [
"extension_view_whitelist.cc",
"extension_view_whitelist.h",
]
}
# Copyright 2016 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.
source_set("mime_handler_view") {
sources = [
"mime_handler_stream_manager.cc",
"mime_handler_stream_manager.h",
"mime_handler_view_constants.cc",
"mime_handler_view_constants.h",
"mime_handler_view_guest.cc",
"mime_handler_view_guest.h",
"mime_handler_view_guest_delegate.cc",
"mime_handler_view_guest_delegate.h",
]
deps = [
"//content/public/common",
]
}
# Copyright 2016 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.
source_set("web_view") {
sources = [
"javascript_dialog_helper.cc",
"javascript_dialog_helper.h",
"web_view_constants.cc",
"web_view_constants.h",
"web_view_content_script_manager.cc",
"web_view_content_script_manager.h",
"web_view_find_helper.cc",
"web_view_find_helper.h",
"web_view_guest.cc",
"web_view_guest.h",
"web_view_guest_delegate.h",
"web_view_permission_helper.cc",
"web_view_permission_helper.h",
"web_view_permission_helper_delegate.cc",
"web_view_permission_helper_delegate.h",
"web_view_permission_types.h",
"web_view_renderer_state.cc",
"web_view_renderer_state.h",
]
deps = [
"//content/public/common",
]
}
# Copyright 2016 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.
source_set("web_ui") {
sources = [
"web_ui_url_fetcher.cc",
"web_ui_url_fetcher.h",
]
}
# Copyright 2016 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.
source_set("install") {
sources = [
"crx_install_error.h",
"extension_install_ui.cc",
"extension_install_ui.h",
]
}
# Copyright 2016 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.
source_set("mojo") {
sources = [
"keep_alive_impl.cc",
"keep_alive_impl.h",
"service_registration.cc",
"service_registration.h",
"stash_backend.cc",
"stash_backend.h",
]
deps = [
"//extensions/common:mojo",
"//services/shell/public/cpp",
]
}
# Copyright 2016 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.
source_set("updater") {
sources = [
"extension_cache.h",
"extension_downloader.cc",
"extension_downloader.h",
"extension_downloader_delegate.cc",
"extension_downloader_delegate.h",
"extension_downloader_test_delegate.h",
"manifest_fetch_data.cc",
"manifest_fetch_data.h",
"null_extension_cache.cc",
"null_extension_cache.h",
"request_queue.h",
"request_queue_impl.h",
"safe_manifest_parser.cc",
"safe_manifest_parser.h",
"update_client_config.cc",
"update_client_config.h",
"update_data_provider.cc",
"update_data_provider.h",
"update_install_shim.cc",
"update_install_shim.h",
"update_service.cc",
"update_service.h",
"update_service_factory.cc",
"update_service_factory.h",
]
configs += [
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
"//build/config/compiler:no_size_t_to_int_warning",
]
deps = [
"//extensions/common",
"//extensions/strings",
]
}
# Copyright 2016 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.
source_set("value_store") {
sources = [
"lazy_leveldb.cc",
"lazy_leveldb.h",
"legacy_value_store_factory.cc",
"legacy_value_store_factory.h",
"leveldb_scoped_database.cc",
"leveldb_scoped_database.h",
"leveldb_value_store.cc",
"leveldb_value_store.h",
"test_value_store_factory.cc",
"test_value_store_factory.h",
"testing_value_store.cc",
"testing_value_store.h",
"value_store.cc",
"value_store.h",
"value_store_change.cc",
"value_store_change.h",
"value_store_factory.h",
"value_store_factory_impl.cc",
"value_store_factory_impl.h",
"value_store_frontend.cc",
"value_store_frontend.h",
]
deps = [
"//third_party/leveldatabase",
]
}
...@@ -257,6 +257,7 @@ if (enable_extensions) { ...@@ -257,6 +257,7 @@ if (enable_extensions) {
public_deps = [ public_deps = [
":common_constants", ":common_constants",
":mojo", ":mojo",
"//skia",
] ]
deps = [ deps = [
......
...@@ -282,7 +282,7 @@ source_set("unit_tests") { ...@@ -282,7 +282,7 @@ source_set("unit_tests") {
"//extensions:extensions_renderer_resources", "//extensions:extensions_renderer_resources",
# TODO(brettw) these tests should not be including headers from browser. # TODO(brettw) these tests should not be including headers from browser.
"//extensions/browser", "//extensions/browser/mojo",
"//extensions/common", "//extensions/common",
"//gin", "//gin",
"//mojo/edk/js", "//mojo/edk/js",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment