diff options
author | rockot <rockot@chromium.org> | 2015-02-11 15:54:31 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-11 23:55:12 +0000 |
commit | 5354cb9d41b2b836e2abd370edf435594e10753a (patch) | |
tree | 4d1f52bb02ad082edd623cc77f8ba08cb7ef3672 /extensions | |
parent | 24004fbf5326b4a498c2b6b70a1ee5edbf31f1ef (diff) | |
download | chromium_src-5354cb9d41b2b836e2abd370edf435594e10753a.zip chromium_src-5354cb9d41b2b836e2abd370edf435594e10753a.tar.gz chromium_src-5354cb9d41b2b836e2abd370edf435594e10753a.tar.bz2 |
Merge extensions sources lists into shared gypis
This eliminates source list duplication between GYP
and GN builds by merging all source lists into
unified gypis.
BUG=457404
Review URL: https://codereview.chromium.org/908333004
Cr-Commit-Position: refs/heads/master@{#315871}
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/BUILD.gn | 194 | ||||
-rw-r--r-- | extensions/browser/BUILD.gn | 604 | ||||
-rw-r--r-- | extensions/common/BUILD.gn | 239 | ||||
-rw-r--r-- | extensions/extensions.gni | 25 | ||||
-rw-r--r-- | extensions/extensions.gyp | 1022 | ||||
-rw-r--r-- | extensions/extensions.gypi | 1006 | ||||
-rw-r--r-- | extensions/extensions_tests.gyp | 149 | ||||
-rw-r--r-- | extensions/extensions_tests.gypi | 156 | ||||
-rw-r--r-- | extensions/renderer/BUILD.gn | 160 | ||||
-rw-r--r-- | extensions/utility/BUILD.gn | 10 |
10 files changed, 1314 insertions, 2251 deletions
diff --git a/extensions/BUILD.gn b/extensions/BUILD.gn index 3342b670..fe8d83a 100644 --- a/extensions/BUILD.gn +++ b/extensions/BUILD.gn @@ -2,6 +2,7 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +import("//extensions/extensions.gni") import("//testing/test.gni") import("//tools/grit/grit_rule.gni") import("//tools/grit/repack.gni") @@ -66,58 +67,9 @@ grit("extensions_renderer_resources") { source_set("test_support") { testonly = true - sources = [ - "browser/api/cast_channel/cast_test_util.cc", - "browser/api/cast_channel/cast_test_util.h", - "browser/api/dns/mock_host_resolver_creator.cc", - "browser/api/dns/mock_host_resolver_creator.h", - "browser/api/storage/settings_test_util.cc", - "browser/api/storage/settings_test_util.h", - "browser/api_test_utils.cc", - "browser/api_test_utils.h", - "browser/api_unittest.cc", - "browser/api_unittest.h", - "browser/app_window/test_app_window_contents.cc", - "browser/app_window/test_app_window_contents.h", - "browser/extension_error_test_util.cc", - "browser/extension_error_test_util.h", - "browser/extensions_test.cc", - "browser/extensions_test.h", - "browser/guest_view/test_guest_view_manager.cc", - "browser/guest_view/test_guest_view_manager.h", - "browser/mock_extension_system.cc", - "browser/mock_extension_system.h", - "browser/test_extension_registry_observer.cc", - "browser/test_extension_registry_observer.h", - "browser/test_extensions_browser_client.cc", - "browser/test_extensions_browser_client.h", - "browser/test_management_policy.cc", - "browser/test_management_policy.h", - "browser/test_runtime_api_delegate.cc", - "browser/test_runtime_api_delegate.h", - "common/extension_builder.cc", - "common/extension_builder.h", - "common/manifest_test.cc", - "common/manifest_test.h", - "common/test_util.cc", - "common/test_util.h", - "common/value_builder.cc", - "common/value_builder.h", - "renderer/test_extensions_renderer_client.cc", - "renderer/test_extensions_renderer_client.h", - "test/extension_test_message_listener.cc", - "test/extension_test_message_listener.h", - "test/result_catcher.cc", - "test/result_catcher.h", - "test/test_content_utility_client.cc", - "test/test_content_utility_client.h", - "test/test_extensions_client.cc", - "test/test_extensions_client.h", - "test/test_permission_message_provider.cc", - "test/test_permission_message_provider.h", - "test/test_service_registration_manager.cc", - "test/test_service_registration_manager.h", - ] + sources = rebase_path(extensions_gypi_values.extensions_test_support_sources, + ".", + "//extensions") deps = [ ":extensions_resources", @@ -177,101 +129,12 @@ repack("shell_and_test_pak") { } test("extensions_unittests") { - sources = [ - # TODO(rockot|jamescook): This list is out of date. Move the files into - # gypi source lists. - "browser/api/api_resource_manager_unittest.cc", - "browser/api/cast_channel/cast_auth_ica_unittest.cc", - "browser/api/cast_channel/cast_auth_util_unittest.cc", - "browser/api/cast_channel/cast_channel_api_unittest.cc", - "browser/api/cast_channel/cast_framer_unittest.cc", - "browser/api/cast_channel/cast_socket_unittest.cc", - "browser/api/cast_channel/cast_transport_unittest.cc", - "browser/api/cast_channel/keep_alive_delegate_unittest.cc", - "browser/api/cast_channel/logger_unittest.cc", - "browser/api/declarative/declarative_rule_unittest.cc", - "browser/api/declarative/deduping_factory_unittest.cc", - "browser/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc", - "browser/api/declarative_webrequest/webrequest_condition_unittest.cc", - "browser/api/idle/idle_api_unittest.cc", - "browser/api/mime_handler_private/mime_handler_private_unittest.cc", - "browser/api/sockets_tcp/sockets_tcp_api_unittest.cc", - "browser/api/sockets_udp/sockets_udp_api_unittest.cc", - "browser/api/storage/settings_quota_unittest.cc", - "browser/api/storage/storage_api_unittest.cc", - "browser/api/storage/storage_frontend_unittest.cc", - "browser/api/web_request/form_data_parser_unittest.cc", - "browser/api/web_request/upload_data_presenter_unittest.cc", - "browser/api/web_request/web_request_time_tracker_unittest.cc", - "browser/computed_hashes_unittest.cc", - "browser/content_hash_tree_unittest.cc", - "browser/event_listener_map_unittest.cc", - "browser/event_router_unittest.cc", - "browser/extension_pref_value_map_unittest.cc", - "browser/extension_registry_unittest.cc", - "browser/file_highlighter_unittest.cc", - "browser/file_reader_unittest.cc", - "browser/guest_view/guest_view_manager_unittest.cc", - "browser/image_loader_unittest.cc", - "browser/info_map_unittest.cc", - "browser/lazy_background_task_queue_unittest.cc", - "browser/management_policy_unittest.cc", - "browser/mojo/keep_alive_impl_unittest.cc", - "browser/process_manager_unittest.cc", - "browser/process_map_unittest.cc", - "browser/quota_service_unittest.cc", - "browser/runtime_data_unittest.cc", - "browser/sandboxed_unpacker_unittest.cc", - "browser/value_store/leveldb_value_store_unittest.cc", - "browser/value_store/testing_value_store_unittest.cc", - "browser/value_store/value_store_change_unittest.cc", - "browser/value_store/value_store_frontend_unittest.cc", - "browser/value_store/value_store_unittest.cc", - "browser/value_store/value_store_unittest.h", - "browser/verified_contents_unittest.cc", - "browser/warning_service_unittest.cc", - "common/api/sockets/sockets_manifest_permission_unittest.cc", - "common/csp_validator_unittest.cc", - "common/event_filter_unittest.cc", - "common/extension_l10n_util_unittest.cc", - "common/extension_resource_unittest.cc", - "common/extension_set_unittest.cc", - "common/file_util_unittest.cc", - "common/image_util_unittest.cc", - "common/manifest_handlers/content_capabilities_manifest_unittest.cc", - "common/manifest_handlers/oauth2_manifest_unittest.cc", - "common/manifest_handlers/shared_module_manifest_unittest.cc", - "common/manifest_handler_unittest.cc", - "common/message_bundle_unittest.cc", - "common/one_shot_event_unittest.cc", - "common/permissions/manifest_permission_set_unittest.cc", - "common/stack_frame_unittest.cc", - "common/url_pattern_set_unittest.cc", - "common/url_pattern_unittest.cc", - "common/user_script_unittest.cc", - "renderer/activity_log_converter_strategy_unittest.cc", - "renderer/api/mojo_private/mojo_private_unittest.cc", - "renderer/api/serial/data_receiver_unittest.cc", - "renderer/api/serial/data_sender_unittest.cc", - "renderer/api/serial/serial_api_unittest.cc", - "renderer/api_test_base.cc", - "renderer/api_test_base.h", - "renderer/api_test_base_unittest.cc", - "renderer/event_unittest.cc", - "renderer/json_schema_unittest.cc", - "renderer/messaging_utils_unittest.cc", - "renderer/module_system_test.cc", - "renderer/module_system_test.h", - "renderer/module_system_unittest.cc", - "renderer/mojo/keep_alive_client_unittest.cc", - "renderer/safe_builtins_unittest.cc", - "renderer/script_context_set_unittest.cc", - "renderer/script_context_unittest.cc", - "renderer/mojo/stash_client_unittest.cc", - "renderer/utils_unittest.cc", - "test/extensions_unittests_main.cc", - "utility/unpacker_unittest.cc", + sources = + rebase_path(extensions_tests_gypi_values.extensions_unittests_sources, + ".", + "//extensions") + sources += [ # TODO(rockot): DisplayInfoProvider::Create() is only implemented in Chrome # and app_shell. This is wrong. "shell/browser/shell_display_info_provider.cc", @@ -290,6 +153,7 @@ test("extensions_unittests") { "//components/keyed_service/content", "//components/user_prefs", "//content/test:test_support", + "//device/bluetooth:mocks", "//device/serial", "//device/serial:test_support", "//extensions/common", @@ -317,42 +181,16 @@ test("extensions_unittests") { # stub in app_shell and a real one in Chrome. This is wrong. "shell/browser/api/vpn_provider/vpn_service_factory.cc", ] + + deps += [ "//chromeos:test_support" ] } } test("extensions_browsertests") { - sources = [ - "browser/api/audio/audio_apitest.cc", - "browser/api/bluetooth_socket/bluetooth_socket_apitest.cc", - "browser/api/dns/dns_apitest.cc", - "browser/api/hid/hid_apitest.cc", - "browser/api/socket/socket_apitest.cc", - "browser/api/sockets_tcp/sockets_tcp_apitest.cc", - "browser/api/sockets_udp/sockets_udp_apitest.cc", - "browser/api/system_cpu/system_cpu_apitest.cc", - "browser/api/system_display/system_display_apitest.cc", - "browser/api/system_memory/system_memory_apitest.cc", - "browser/api/system_network/system_network_apitest.cc", - "browser/api/system_storage/storage_api_test_util.cc", - "browser/api/system_storage/storage_api_test_util.h", - "browser/api/system_storage/system_storage_apitest.cc", - "browser/api/system_storage/system_storage_eject_apitest.cc", - "browser/api/usb/usb_apitest.cc", - "browser/guest_view/app_view/app_view_apitest.cc", - "browser/guest_view/web_view/web_view_apitest.h", - "browser/guest_view/web_view/web_view_apitest.cc", - "browser/guest_view/web_view/web_view_media_access_apitest.cc", - "browser/updater/update_service_browsertest.cc", - "shell/browser/geolocation/geolocation_apitest.cc", - "shell/browser/shell_browsertest.cc", - "shell/test/shell_apitest.cc", - "shell/test/shell_apitest.h", - "shell/test/shell_test.cc", - "shell/test/shell_test.h", - "shell/test/shell_test_launcher_delegate.cc", - "shell/test/shell_test_launcher_delegate.h", - "shell/test/shell_tests_main.cc", - ] + sources = + rebase_path(extensions_tests_gypi_values.extensions_browsertests_sources, + ".", + "//extensions") defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] diff --git a/extensions/browser/BUILD.gn b/extensions/browser/BUILD.gn index 446c205..a2b49b8 100644 --- a/extensions/browser/BUILD.gn +++ b/extensions/browser/BUILD.gn @@ -4,6 +4,7 @@ import("//build/config/crypto.gni") import("//build/config/features.gni") +import("//extensions/extensions.gni") # GYP version: extensions/extensions.gyp:extensions_browser source_set("browser") { @@ -35,529 +36,9 @@ source_set("browser") { # it can be cleanly disabled with enable_extensions=false. # TODO: Eventually the entire extensions module should not be built # when enable_extensions=false. - sources += [ - "api/activity_log/web_request_constants.cc", - "api/activity_log/web_request_constants.h", - "api/alarms/alarms_api.cc", - "api/alarms/alarms_api.h", - "api/alarms/alarm_manager.cc", - "api/alarms/alarm_manager.h", - "api/api_resource.cc", - "api/api_resource.h", - "api/api_resource_manager.h", - "api/app_current_window_internal/app_current_window_internal_api.cc", - "api/app_current_window_internal/app_current_window_internal_api.h", - "api/app_runtime/app_runtime_api.cc", - "api/app_runtime/app_runtime_api.h", - "api/app_view/app_view_guest_internal_api.cc", - "api/app_view/app_view_guest_internal_api.h", - "api/app_window/app_window_api.cc", - "api/app_window/app_window_api.h", - "api/async_api_function.cc", - "api/async_api_function.h", - "api/audio/audio_api.cc", - "api/audio/audio_api.h", - "api/audio/audio_service.h", - "api/bluetooth/bluetooth_api.cc", - "api/bluetooth/bluetooth_api.h", - "api/bluetooth/bluetooth_api_pairing_delegate.cc", - "api/bluetooth/bluetooth_api_pairing_delegate.h", - "api/bluetooth/bluetooth_api_utils.cc", - "api/bluetooth/bluetooth_api_utils.h", - "api/bluetooth/bluetooth_event_router.cc", - "api/bluetooth/bluetooth_event_router.h", - "api/bluetooth/bluetooth_extension_function.cc", - "api/bluetooth/bluetooth_extension_function.h", - "api/bluetooth/bluetooth_private_api.cc", - "api/bluetooth/bluetooth_private_api.h", - "api/bluetooth_low_energy/bluetooth_low_energy_api.cc", - "api/bluetooth_low_energy/bluetooth_low_energy_api.h", - "api/bluetooth_low_energy/bluetooth_low_energy_connection.cc", - "api/bluetooth_low_energy/bluetooth_low_energy_connection.h", - "api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc", - "api/bluetooth_low_energy/bluetooth_low_energy_event_router.h", - "api/bluetooth_low_energy/bluetooth_low_energy_notify_session.cc", - "api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h", - "api/bluetooth_low_energy/utils.cc", - "api/bluetooth_low_energy/utils.h", - "api/bluetooth_socket/bluetooth_api_socket.cc", - "api/bluetooth_socket/bluetooth_api_socket.h", - "api/bluetooth_socket/bluetooth_socket_api.cc", - "api/bluetooth_socket/bluetooth_socket_api.h", - "api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc", - "api/bluetooth_socket/bluetooth_socket_event_dispatcher.h", - "api/capture_web_contents_function.cc", - "api/capture_web_contents_function.h", - "api/cast_channel/cast_auth_ica.cc", - "api/cast_channel/cast_auth_ica.h", - "api/cast_channel/cast_auth_util.cc", - "api/cast_channel/cast_auth_util.h", - "api/cast_channel/cast_channel_api.cc", - "api/cast_channel/cast_channel_api.h", - "api/cast_channel/cast_framer.cc", - "api/cast_channel/cast_framer.h", - "api/cast_channel/cast_message_util.cc", - "api/cast_channel/cast_message_util.h", - "api/cast_channel/cast_socket.cc", - "api/cast_channel/cast_socket.h", - "api/cast_channel/cast_transport.cc", - "api/cast_channel/cast_transport.h", - "api/cast_channel/keep_alive_delegate.cc", - "api/cast_channel/keep_alive_delegate.h", - "api/cast_channel/logger.cc", - "api/cast_channel/logger.h", - "api/cast_channel/logger_util.cc", - "api/cast_channel/logger_util.h", - "api/declarative/declarative_api.cc", - "api/declarative/declarative_api.h", - "api/declarative/declarative_rule.h", - "api/declarative/deduping_factory.h", - "api/declarative/rules_cache_delegate.cc", - "api/declarative/rules_cache_delegate.h", - "api/declarative/rules_registry.cc", - "api/declarative/rules_registry.h", - "api/declarative/rules_registry_service.cc", - "api/declarative/rules_registry_service.h", - "api/declarative/test_rules_registry.cc", - "api/declarative/test_rules_registry.h", - "api/declarative_content/content_rules_registry.h", - "api/declarative_webrequest/request_stage.cc", - "api/declarative_webrequest/request_stage.h", - "api/declarative_webrequest/webrequest_action.cc", - "api/declarative_webrequest/webrequest_action.h", - "api/declarative_webrequest/webrequest_condition_attribute.cc", - "api/declarative_webrequest/webrequest_condition_attribute.h", - "api/declarative_webrequest/webrequest_condition.cc", - "api/declarative_webrequest/webrequest_condition.h", - "api/declarative_webrequest/webrequest_constants.cc", - "api/declarative_webrequest/webrequest_constants.h", - "api/declarative_webrequest/webrequest_rules_registry.cc", - "api/declarative_webrequest/webrequest_rules_registry.h", - "api/device_permissions_manager.cc", - "api/device_permissions_manager.h", - "api/device_permissions_prompt.cc", - "api/device_permissions_prompt.h", - "api/dns/dns_api.cc", - "api/dns/dns_api.h", - "api/dns/host_resolver_wrapper.cc", - "api/dns/host_resolver_wrapper.h", - "api/document_scan/document_scan_api.cc", - "api/document_scan/document_scan_api.h", - "api/document_scan/document_scan_interface.cc", - "api/document_scan/document_scan_interface.h", - "api/execute_code_function.cc", - "api/execute_code_function.h", - "api/extensions_api_client.cc", - "api/extensions_api_client.h", - "api/extension_view/extension_view_internal_api.cc", - "api/extension_view/extension_view_internal_api.h", - "api/guest_view/guest_view_internal_api.cc", - "api/guest_view/guest_view_internal_api.h", - "api/hid/hid_api.cc", - "api/hid/hid_api.h", - "api/hid/hid_connection_resource.cc", - "api/hid/hid_connection_resource.h", - "api/hid/hid_device_manager.cc", - "api/hid/hid_device_manager.h", - "api/idle/idle_api.cc", - "api/idle/idle_api.h", - "api/idle/idle_api_constants.cc", - "api/idle/idle_api_constants.h", - "api/idle/idle_manager.cc", - "api/idle/idle_manager.h", - "api/idle/idle_manager_factory.cc", - "api/idle/idle_manager_factory.h", - "api/management/management_api.cc", - "api/management/management_api.h", - "api/management/management_api_constants.cc", - "api/management/management_api_constants.h", - "api/management/management_api_delegate.h", - "api/messaging/native_message_host.cc", - "api/mime_handler_private/mime_handler_private.cc", - "api/mime_handler_private/mime_handler_private.h", - "api/networking_private/networking_private_api.cc", - "api/networking_private/networking_private_api.h", - "api/networking_private/networking_private_chromeos.cc", - "api/networking_private/networking_private_chromeos.h", - "api/networking_private/networking_private_delegate.cc", - "api/networking_private/networking_private_delegate.h", - "api/networking_private/networking_private_delegate_factory.cc", - "api/networking_private/networking_private_delegate_factory.h", - "api/networking_private/networking_private_delegate_observer.h", - "api/networking_private/networking_private_event_router.h", - "api/networking_private/networking_private_event_router_chromeos.cc", - "api/networking_private/networking_private_event_router_factory.cc", - "api/networking_private/networking_private_event_router_factory.h", - "api/power/power_api.cc", - "api/power/power_api.h", - "api/power/power_api_manager.cc", - "api/power/power_api_manager.h", - "api/printer_provider/printer_provider_api.cc", - "api/printer_provider/printer_provider_api.h", - "api/printer_provider_internal/printer_provider_internal_api.cc", - "api/printer_provider_internal/printer_provider_internal_api.h", - "api/printer_provider_internal/printer_provider_internal_api_observer.h", - "api/runtime/runtime_api.cc", - "api/runtime/runtime_api.h", - "api/runtime/runtime_api_delegate.cc", - "api/runtime/runtime_api_delegate.h", - "api/serial/serial_api.cc", - "api/serial/serial_api.h", - "api/serial/serial_connection.cc", - "api/serial/serial_connection.h", - "api/serial/serial_event_dispatcher.cc", - "api/serial/serial_event_dispatcher.h", - "api/socket/socket.cc", - "api/socket/socket.h", - "api/socket/socket_api.cc", - "api/socket/socket_api.h", - "api/socket/tcp_socket.cc", - "api/socket/tcp_socket.h", - "api/socket/tls_socket.cc", - "api/socket/tls_socket.h", - "api/socket/udp_socket.cc", - "api/socket/udp_socket.h", - "api/sockets_tcp/sockets_tcp_api.cc", - "api/sockets_tcp/sockets_tcp_api.h", - "api/sockets_tcp/tcp_socket_event_dispatcher.cc", - "api/sockets_tcp/tcp_socket_event_dispatcher.h", - "api/sockets_tcp_server/sockets_tcp_server_api.cc", - "api/sockets_tcp_server/sockets_tcp_server_api.h", - "api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc", - "api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h", - "api/sockets_udp/sockets_udp_api.cc", - "api/sockets_udp/sockets_udp_api.h", - "api/sockets_udp/udp_socket_event_dispatcher.cc", - "api/sockets_udp/udp_socket_event_dispatcher.h", - "api/storage/leveldb_settings_storage_factory.cc", - "api/storage/leveldb_settings_storage_factory.h", - "api/storage/local_value_store_cache.cc", - "api/storage/local_value_store_cache.h", - "api/storage/settings_namespace.cc", - "api/storage/settings_namespace.h", - "api/storage/settings_observer.h", - "api/storage/settings_storage_factory.h", - "api/storage/settings_storage_quota_enforcer.cc", - "api/storage/settings_storage_quota_enforcer.h", - "api/storage/storage_api.cc", - "api/storage/storage_api.h", - "api/storage/storage_frontend.cc", - "api/storage/storage_frontend.h", - "api/storage/value_store_cache.cc", - "api/storage/value_store_cache.h", - "api/storage/weak_unlimited_settings_storage.cc", - "api/storage/weak_unlimited_settings_storage.h", - "api/system_cpu/cpu_info_provider.cc", - "api/system_cpu/cpu_info_provider.h", - "api/system_cpu/cpu_info_provider_linux.cc", - "api/system_cpu/cpu_info_provider_mac.cc", - "api/system_cpu/cpu_info_provider_win.cc", - "api/system_cpu/system_cpu_api.cc", - "api/system_cpu/system_cpu_api.h", - "api/system_display/display_info_provider.cc", - "api/system_display/display_info_provider.h", - "api/system_display/system_display_api.cc", - "api/system_display/system_display_api.h", - "api/system_info/system_info_api.cc", - "api/system_info/system_info_api.h", - "api/system_info/system_info_provider.cc", - "api/system_info/system_info_provider.h", - "api/system_memory/memory_info_provider.cc", - "api/system_memory/memory_info_provider.h", - "api/system_memory/system_memory_api.cc", - "api/system_memory/system_memory_api.h", - "api/system_network/system_network_api.cc", - "api/system_network/system_network_api.h", - "api/system_storage/storage_info_provider.cc", - "api/system_storage/storage_info_provider.h", - "api/system_storage/system_storage_api.cc", - "api/system_storage/system_storage_api.h", - "api/test/test_api.cc", - "api/test/test_api.h", - "api/usb/usb_api.cc", - "api/usb/usb_api.h", - "api/usb/usb_event_router.cc", - "api/usb/usb_event_router.h", - "api/usb/usb_device_resource.cc", - "api/usb/usb_device_resource.h", - "api/virtual_keyboard_private/virtual_keyboard_private_api.cc", - "api/virtual_keyboard_private/virtual_keyboard_private_api.h", - "api/virtual_keyboard_private/virtual_keyboard_delegate.h", - "api/web_request/form_data_parser.cc", - "api/web_request/form_data_parser.h", - "api/web_request/upload_data_presenter.cc", - "api/web_request/upload_data_presenter.h", - "api/web_request/web_request_api.cc", - "api/web_request/web_request_api.h", - "api/web_request/web_request_api_constants.cc", - "api/web_request/web_request_api_constants.h", - "api/web_request/web_request_api_helpers.cc", - "api/web_request/web_request_api_helpers.h", - "api/web_request/web_request_permissions.cc", - "api/web_request/web_request_permissions.h", - "api/web_request/web_request_event_router_delegate.cc", - "api/web_request/web_request_event_router_delegate.h", - "api/web_request/web_request_time_tracker.cc", - "api/web_request/web_request_time_tracker.h", - "api/web_view/web_view_internal_api.cc", - "api/web_view/web_view_internal_api.h", - "api/webcam_private/webcam_private_api.h", - "api/webcam_private/webcam_private_api_chromeos.cc", - "api_activity_monitor.h", - "app_sorting.h", - "app_window/app_delegate.h", - "app_window/app_web_contents_helper.cc", - "app_window/app_web_contents_helper.h", - "app_window/app_window.cc", - "app_window/app_window.h", - "app_window/app_window_client.cc", - "app_window/app_window_client.h", - "app_window/app_window_contents.cc", - "app_window/app_window_contents.h", - "app_window/app_window_geometry_cache.cc", - "app_window/app_window_geometry_cache.h", - "app_window/app_window_registry.cc", - "app_window/app_window_registry.h", - "app_window/native_app_window.h", - "app_window/size_constraints.cc", - "app_window/size_constraints.h", - "blacklist_state.h", - "blob_holder.cc", - "blob_holder.h", - "browser_context_keyed_api_factory.h", - "browser_context_keyed_service_factories.cc", - "browser_context_keyed_service_factories.h", - "component_extension_resource_manager.h", - "computed_hashes.cc", - "computed_hashes.h", - "content_hash_fetcher.cc", - "content_hash_fetcher.h", - "content_hash_reader.cc", - "content_hash_reader.h", - "content_hash_tree.cc", - "content_hash_tree.h", - "content_verifier.cc", - "content_verifier.h", - "content_verifier_delegate.h", - "content_verifier_io_data.cc", - "content_verifier_io_data.h", - "content_verify_job.cc", - "content_verify_job.h", - "crx_file_info.cc", - "crx_file_info.h", - "error_map.cc", - "error_map.h", - "event_listener_map.cc", - "event_listener_map.h", - "event_router.cc", - "event_router.h", - "extension_error.cc", - "extension_error.h", - "extension_function.cc", - "extension_function.h", - "extension_function_dispatcher.cc", - "extension_function_dispatcher.h", - "extension_function_registry.cc", - "extension_function_registry.h", - "extension_function_util.cc", - "extension_function_util.h", - "extension_host.cc", - "extension_host.h", - "extension_host_delegate.h", - "extension_icon_image.cc", - "extension_icon_image.h", - "extension_message_filter.cc", - "extension_message_filter.h", - "extension_pref_store.cc", - "extension_pref_store.h", - "extension_pref_value_map.cc", - "extension_pref_value_map.h", - "extension_pref_value_map_factory.cc", - "extension_pref_value_map_factory.h", - "extension_prefs.cc", - "extension_prefs.h", - "extension_prefs_factory.cc", - "extension_prefs_factory.h", - "extension_prefs_observer.h", - "extension_prefs_scope.h", - "extension_protocols.cc", - "extension_protocols.h", - "extension_registry.cc", - "extension_registry.h", - "extension_registry_factory.cc", - "extension_registry_factory.h", - "extension_registry_observer.h", - "extension_scoped_prefs.h", - "extension_system.cc", - "extension_system.h", - "extension_system_provider.cc", - "extension_system_provider.h", - "extension_util.cc", - "extension_util.h", - "extension_web_contents_observer.cc", - "extension_web_contents_observer.h", - "extension_zoom_request_client.cc", - "extension_zoom_request_client.h", - "extensions_browser_client.cc", - "extensions_browser_client.h", - "external_provider_interface.h", - "file_highlighter.cc", - "file_highlighter.h", - "file_reader.cc", - "file_reader.h", - "granted_file_entry.cc", - "granted_file_entry.h", - "guest_view/app_view/app_view_constants.cc", - "guest_view/app_view/app_view_constants.h", - "guest_view/app_view/app_view_guest.cc", - "guest_view/app_view/app_view_guest.h", - "guest_view/app_view/app_view_guest_delegate.cc", - "guest_view/app_view/app_view_guest_delegate.h", - "guest_view/extension_options/extension_options_constants.cc", - "guest_view/extension_options/extension_options_constants.h", - "guest_view/extension_options/extension_options_guest.cc", - "guest_view/extension_options/extension_options_guest.h", - "guest_view/extension_options/extension_options_guest_delegate.cc", - "guest_view/extension_options/extension_options_guest_delegate.h", - "guest_view/extension_view/extension_view_constants.cc", - "guest_view/extension_view/extension_view_constants.h", - "guest_view/extension_view/extension_view_guest.cc", - "guest_view/extension_view/extension_view_guest.h", - "guest_view/extension_view/extension_view_guest_delegate.cc", - "guest_view/extension_view/extension_view_guest_delegate.h", - "guest_view/guest_view_base.cc", - "guest_view/guest_view_base.h", - "guest_view/guest_view_manager_factory.h", - "guest_view/guest_view_manager.cc", - "guest_view/guest_view_manager.h", - "guest_view/guest_view_message_filter.cc", - "guest_view/guest_view_message_filter.h", - "guest_view/guest_view.h", - "guest_view/mime_handler_view/mime_handler_stream_manager.cc", - "guest_view/mime_handler_view/mime_handler_stream_manager.h", - "guest_view/mime_handler_view/mime_handler_view_constants.cc", - "guest_view/mime_handler_view/mime_handler_view_constants.h", - "guest_view/mime_handler_view/mime_handler_view_guest.h", - "guest_view/mime_handler_view/mime_handler_view_guest.cc", - "guest_view/mime_handler_view/mime_handler_view_guest_delegate.cc", - "guest_view/mime_handler_view/mime_handler_view_guest_delegate.h", - "guest_view/surface_worker/surface_worker_constants.cc", - "guest_view/surface_worker/surface_worker_constants.h", - "guest_view/surface_worker/surface_worker_guest.cc", - "guest_view/surface_worker/surface_worker_guest.h", - "guest_view/web_view/javascript_dialog_helper.cc", - "guest_view/web_view/javascript_dialog_helper.h", - "guest_view/web_view/web_view_constants.cc", - "guest_view/web_view/web_view_constants.h", - "guest_view/web_view/web_view_find_helper.cc", - "guest_view/web_view/web_view_find_helper.h", - "guest_view/web_view/web_view_guest.cc", - "guest_view/web_view/web_view_guest.h", - "guest_view/web_view/web_view_guest_delegate.h", - "guest_view/web_view/web_view_permission_types.h", - "guest_view/web_view/web_view_permission_helper.cc", - "guest_view/web_view/web_view_permission_helper.h", - "guest_view/web_view/web_view_permission_helper_delegate.cc", - "guest_view/web_view/web_view_permission_helper_delegate.h", - "guest_view/web_view/web_view_renderer_state.cc", - "guest_view/web_view/web_view_renderer_state.h", - "image_loader.cc", - "image_loader.h", - "image_loader_factory.cc", - "image_loader_factory.h", - "info_map.cc", - "info_map.h", - "install/crx_installer_error.h", - "install/extension_install_ui.cc", - "install/extension_install_ui.h", - "install_flag.h", - "io_thread_extension_message_filter.cc", - "io_thread_extension_message_filter.h", - "lazy_background_task_queue.cc", - "lazy_background_task_queue.h", - "management_policy.cc", - "management_policy.h", - "mojo/keep_alive_impl.cc", - "mojo/keep_alive_impl.h", - "mojo/service_registration_manager.cc", - "mojo/service_registration_manager.h", - "mojo/stash_backend.cc", - "mojo/stash_backend.h", - "notification_types.cc", - "notification_types.h", - "null_app_sorting.cc", - "null_app_sorting.h", - "pref_names.cc", - "pref_names.h", - "process_manager.cc", - "process_manager.h", - "process_manager_delegate.h", - "process_manager_factory.cc", - "process_manager_factory.h", - "process_manager_observer.h", - "process_map.cc", - "process_map.h", - "process_map_factory.cc", - "process_map_factory.h", - "quota_service.cc", - "quota_service.h", - "renderer_startup_helper.cc", - "renderer_startup_helper.h", - "runtime_data.cc", - "runtime_data.h", - "sandboxed_unpacker.cc", - "sandboxed_unpacker.h", - "script_execution_observer.h", - "script_executor.cc", - "script_executor.h", - "state_store.cc", - "state_store.h", - "suggest_permission_util.cc", - "suggest_permission_util.h", - "uninstall_reason.h", - "update_observer.h", - "updater/extension_cache.h", - "updater/extension_downloader.cc", - "updater/extension_downloader.h", - "updater/extension_downloader_delegate.cc", - "updater/extension_downloader_delegate.h", - "updater/manifest_fetch_data.cc", - "updater/manifest_fetch_data.h", - "updater/null_extension_cache.cc", - "updater/null_extension_cache.h", - "updater/request_queue.h", - "updater/request_queue_impl.h", - "updater/safe_manifest_parser.cc", - "updater/safe_manifest_parser.h", - "updater/update_service.cc", - "updater/update_service.h", - "updater/update_service_factory.cc", - "updater/update_service_factory.h", - "url_request_util.cc", - "url_request_util.h", - "value_store/leveldb_value_store.cc", - "value_store/leveldb_value_store.h", - "value_store/testing_value_store.cc", - "value_store/testing_value_store.h", - "value_store/value_store.cc", - "value_store/value_store.h", - "value_store/value_store_change.cc", - "value_store/value_store_change.h", - "value_store/value_store_frontend.cc", - "value_store/value_store_frontend.h", - "value_store/value_store_util.cc", - "value_store/value_store_util.h", - "verified_contents.cc", - "verified_contents.h", - "view_type_utils.cc", - "view_type_utils.h", - "warning_service.cc", - "warning_service.h", - "warning_service_factory.cc", - "warning_service_factory.h", - "warning_set.cc", - "warning_set.h", - ] + sources = rebase_path(extensions_gypi_values.extensions_browser_sources, + ".", + "//extensions") deps += [ "//components/onc", @@ -577,52 +58,43 @@ source_set("browser") { } if (is_chromeos) { - sources += [ "api/audio/audio_service_chromeos.cc" ] - } else if (is_linux) { - sources += [ "api/audio/audio_service_linux.cc" ] + chromeos_sources = rebase_path( + extensions_gypi_values.extensions_browser_sources_chromeos, + ".", + "//extensions") + sources += chromeos_sources } else { - sources += [ "api/audio/audio_service.cc" ] - } + nonchromeos_sources = rebase_path( + extensions_gypi_values.extensions_browser_sources_nonchromeos, + ".", + "//extensions") + sources += nonchromeos_sources - if (is_chromeos) { - sources += [ - "api/diagnostics/diagnostics_api.cc", - "api/diagnostics/diagnostics_api.h", - "api/diagnostics/diagnostics_api_chromeos.cc", - "api/document_scan/document_scan_interface_chromeos.cc", - "api/networking_config/networking_config_api.cc", - "api/networking_config/networking_config_api.h", - "api/networking_config/networking_config_service.cc", - "api/networking_config/networking_config_service.h", - "api/networking_config/networking_config_service_factory.cc", - "api/networking_config/networking_config_service_factory.h", - "api/vpn_provider/vpn_provider_api.cc", - "api/vpn_provider/vpn_provider_api.h", - "api/vpn_provider/vpn_service.cc", - "api/vpn_provider/vpn_service.h", - "api/vpn_provider/vpn_service_factory.h", - ] - } else { - sources += [ "api/document_scan/document_scan_interface_nonchromeos.cc" ] - } + if (is_linux) { + configs += [ "//build/config/linux:dbus" ] + deps += [ "//dbus" ] + linux_sources = rebase_path( + extensions_gypi_values.extensions_browser_sources_linux_nonchromeos, + ".", + "//extensions") + sources += linux_sources + } else { + nonlinux_sources = rebase_path( + extensions_gypi_values.extensions_browser_sources_nonlinux, + ".", + "//extensions") + sources += nonlinux_sources + + if (is_win || is_mac) { + deps += [ "//components/wifi" ] - if (is_desktop_linux) { - configs += [ "//build/config/linux:dbus" ] - deps += [ "//dbus" ] - sources += [ - "api/networking_private/networking_private_event_router_nonchromeos.cc", - "api/networking_private/networking_private_linux.cc", - "api/networking_private/networking_private_linux.h", - "api/networking_private/network_config_dbus_constants_linux.cc", - "api/networking_private/network_config_dbus_constants_linux.h", - ] - } else if (is_win || is_mac) { - deps += [ "//components/wifi" ] - sources += [ - "api/networking_private/networking_private_event_router_nonchromeos.cc", - "api/networking_private/networking_private_service_client.cc", - "api/networking_private/networking_private_service_client.h", - ] + win_or_mac_sources = rebase_path( + extensions_gypi_values.extensions_browser_sources_win_or_mac, + ".", + "//extensions") + sources += win_or_mac_sources + } + } } } diff --git a/extensions/common/BUILD.gn b/extensions/common/BUILD.gn index e6bfde4..faa1cb8 100644 --- a/extensions/common/BUILD.gn +++ b/extensions/common/BUILD.gn @@ -4,14 +4,15 @@ import("//build/config/crypto.gni") import("//build/config/features.gni") +import("//extensions/extensions.gni") import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") # GYP version: extensions/extensions.gyp:extensions_common_constants source_set("common_constants") { - sources = [ - "constants.cc", - "constants.h", - ] + sources = + rebase_path(extensions_gypi_values.extensions_common_constants_sources, + ".", + "//extensions") if (is_win) { cflags = [ "/wd4267" ] # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. @@ -20,213 +21,16 @@ source_set("common_constants") { if (enable_extensions) { mojom("mojo") { - sources = [ - "mojo/keep_alive.mojom", - "mojo/stash.mojom", - ] + sources = rebase_path(extensions_gypi_values.extensions_common_mojo_sources, + ".", + "//extensions") } # GYP version: extensions/extensions.gyp:extensions_common source_set("common") { - sources = [ - "api/messaging/message.h", - "api/bluetooth/bluetooth_manifest_data.cc", - "api/bluetooth/bluetooth_manifest_data.h", - "api/bluetooth/bluetooth_manifest_handler.cc", - "api/bluetooth/bluetooth_manifest_handler.h", - "api/bluetooth/bluetooth_manifest_permission.cc", - "api/bluetooth/bluetooth_manifest_permission.h", - "api/sockets/sockets_manifest_data.cc", - "api/sockets/sockets_manifest_data.h", - "api/sockets/sockets_manifest_handler.cc", - "api/sockets/sockets_manifest_handler.h", - "api/sockets/sockets_manifest_permission.cc", - "api/sockets/sockets_manifest_permission.h", - "cast/cast_cert_validator.cc", - "cast/cast_cert_validator.h", - "common_manifest_handlers.cc", - "common_manifest_handlers.h", - "csp_validator.cc", - "csp_validator.h", - "dom_action_types.h", - "draggable_region.cc", - "draggable_region.h", - "error_utils.cc", - "error_utils.h", - "event_filter.cc", - "event_filter.h", - "event_filtering_info.cc", - "event_filtering_info.h", - "event_matcher.cc", - "event_matcher.h", - "extension.cc", - "extension.h", - "extension_api.cc", - "extension_api.h", - "extension_icon_set.cc", - "extension_icon_set.h", - "extension_l10n_util.cc", - "extension_l10n_util.h", - "extension_message_generator.cc", - "extension_message_generator.h", - "extension_messages.cc", - "extension_messages.h", - "extension_paths.cc", - "extension_paths.h", - "extension_resource.cc", - "extension_resource.h", - "extension_set.cc", - "extension_set.h", - "extension_urls.cc", - "extension_urls.h", - "extensions_client.cc", - "extensions_client.h", - "feature_switch.cc", - "feature_switch.h", - "features/api_feature.cc", - "features/api_feature.h", - "features/base_feature_provider.cc", - "features/base_feature_provider.h", - "features/complex_feature.cc", - "features/complex_feature.h", - "features/feature.cc", - "features/feature.h", - "features/feature_provider.cc", - "features/feature_provider.h", - "features/json_feature_provider_source.cc", - "features/json_feature_provider_source.h", - "features/manifest_feature.cc", - "features/manifest_feature.h", - "features/permission_feature.cc", - "features/permission_feature.h", - "features/simple_feature.cc", - "features/simple_feature.h", - "features/simple_feature_filter.cc", - "features/simple_feature_filter.h", - "features/behavior_feature.cc", - "features/behavior_feature.h", - "file_util.cc", - "file_util.h", - "guest_view/guest_view_constants.cc", - "guest_view/guest_view_constants.h", - "guest_view/guest_view_messages.h", - "host_id.h", - "image_util.cc", - "image_util.h", - "install_warning.cc", - "install_warning.h", - "manifest.cc", - "manifest.h", - "manifest_constants.cc", - "manifest_constants.h", - "manifest_handler.cc", - "manifest_handler.h", - "manifest_handler_helpers.cc", - "manifest_handler_helpers.h", - "manifest_handlers/background_info.cc", - "manifest_handlers/background_info.h", - "manifest_handlers/content_capabilities_handler.cc", - "manifest_handlers/content_capabilities_handler.h", - "manifest_handlers/csp_info.cc", - "manifest_handlers/csp_info.h", - "manifest_handlers/default_locale_handler.cc", - "manifest_handlers/default_locale_handler.h", - "manifest_handlers/externally_connectable.cc", - "manifest_handlers/externally_connectable.h", - "manifest_handlers/file_handler_info.cc", - "manifest_handlers/file_handler_info.h", - "manifest_handlers/icons_handler.cc", - "manifest_handlers/icons_handler.h", - "manifest_handlers/incognito_info.cc", - "manifest_handlers/incognito_info.h", - "manifest_handlers/kiosk_mode_info.cc", - "manifest_handlers/kiosk_mode_info.h", - "manifest_handlers/launcher_page_info.cc", - "manifest_handlers/launcher_page_info.h", - "manifest_handlers/mime_types_handler.cc", - "manifest_handlers/mime_types_handler.h", - "manifest_handlers/oauth2_manifest_handler.cc", - "manifest_handlers/oauth2_manifest_handler.h", - "manifest_handlers/offline_enabled_info.cc", - "manifest_handlers/offline_enabled_info.h", - "manifest_handlers/options_page_info.cc", - "manifest_handlers/options_page_info.h", - "manifest_handlers/permissions_parser.cc", - "manifest_handlers/permissions_parser.h", - "manifest_handlers/requirements_info.cc", - "manifest_handlers/requirements_info.h", - "manifest_handlers/sandboxed_page_info.cc", - "manifest_handlers/sandboxed_page_info.h", - "manifest_handlers/shared_module_info.cc", - "manifest_handlers/shared_module_info.h", - "manifest_handlers/web_accessible_resources_info.cc", - "manifest_handlers/web_accessible_resources_info.h", - "manifest_handlers/webview_info.cc", - "manifest_handlers/webview_info.h", - "manifest_url_handlers.cc", - "manifest_url_handlers.h", - "message_bundle.cc", - "message_bundle.h", - "one_shot_event.cc", - "one_shot_event.h", - "permissions/api_permission.cc", - "permissions/api_permission.h", - "permissions/api_permission_set.cc", - "permissions/api_permission_set.h", - "permissions/base_set_operators.h", - "permissions/extensions_api_permissions.cc", - "permissions/extensions_api_permissions.h", - "permissions/manifest_permission.cc", - "permissions/manifest_permission.h", - "permissions/manifest_permission_set.cc", - "permissions/manifest_permission_set.h", - "permissions/media_galleries_permission.cc", - "permissions/media_galleries_permission.h", - "permissions/media_galleries_permission_data.cc", - "permissions/media_galleries_permission_data.h", - "permissions/permission_message.cc", - "permissions/permission_message.h", - "permissions/permission_message_provider.cc", - "permissions/permission_message_provider.h", - "permissions/permission_message_util.cc", - "permissions/permission_message_util.h", - "permissions/permission_set.cc", - "permissions/permission_set.h", - "permissions/permissions_data.cc", - "permissions/permissions_data.h", - "permissions/permissions_info.cc", - "permissions/permissions_info.h", - "permissions/permissions_provider.h", - "permissions/set_disjunction_permission.h", - "permissions/settings_override_permission.cc", - "permissions/settings_override_permission.h", - "permissions/socket_permission.cc", - "permissions/socket_permission.h", - "permissions/socket_permission_data.cc", - "permissions/socket_permission_data.h", - "permissions/socket_permission_entry.cc", - "permissions/socket_permission_entry.h", - "permissions/usb_device_permission.cc", - "permissions/usb_device_permission.h", - "permissions/usb_device_permission_data.cc", - "permissions/usb_device_permission_data.h", - "stack_frame.cc", - "stack_frame.h", - "switches.cc", - "switches.h", - "update_manifest.cc", - "update_manifest.h", - "url_pattern.cc", - "url_pattern.h", - "url_pattern_set.cc", - "url_pattern_set.h", - "user_script.cc", - "user_script.h", - "value_counter.cc", - "value_counter.h", - "view_type.cc", - "view_type.h", - ] + sources = rebase_path(extensions_gypi_values.extensions_common_sources, + ".", + "//extensions") deps = [ ":common_constants", @@ -257,16 +61,25 @@ if (enable_extensions) { ] if (use_openssl) { - sources += [ "cast/cast_cert_validator_openssl.cc" ] + ssl_sources = + rebase_path(extensions_gypi_values.extensions_common_sources_openssl, + ".", + "//extensions") + sources += ssl_sources } else { - sources += [ "cast/cast_cert_validator_nss.cc" ] + nonssl_sources = rebase_path( + extensions_gypi_values.extensions_common_sources_nonopenssl, + ".", + "//extensions") + sources += nonssl_sources } if (enable_nacl) { - sources += [ - "manifest_handlers/nacl_modules_handler.cc", - "manifest_handlers/nacl_modules_handler.h", - ] + nacl_sources = + rebase_path(extensions_gypi_values.extensions_common_sources_nacl, + ".", + "//extensions") + sources += nacl_sources } if (is_win) { diff --git a/extensions/extensions.gni b/extensions/extensions.gni new file mode 100644 index 0000000..05f1108 --- /dev/null +++ b/extensions/extensions.gni @@ -0,0 +1,25 @@ +# 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. + +# This file defines the extension gypi values. This file is read once and +# cached, which is a performance optimization that allows us to share the +# results of parsing the .gypi file between all extensions BUILD.gn files. +# It also saves us from duplicating this exec_script call. +extensions_gypi_values = + exec_script("//build/gypi_to_gn.py", + [ + rebase_path("extensions.gypi"), + "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", + ], + "scope", + [ "extensions.gypi" ]) + +extensions_tests_gypi_values = + exec_script("//build/gypi_to_gn.py", + [ + rebase_path("extensions_tests.gypi"), + "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", + ], + "scope", + [ "extensions_tests.gypi" ]) diff --git a/extensions/extensions.gyp b/extensions/extensions.gyp index 37f8045..d987737 100644 --- a/extensions/extensions.gyp +++ b/extensions/extensions.gyp @@ -3,26 +3,14 @@ # found in the LICENSE file. { + 'includes': [ + 'extensions.gypi', + ], 'variables': { 'chromium_code': 1, }, 'targets': [ { - # GN version: //extensions/common:mojo - 'target_name': 'extensions_common_mojo', - # The type of this target must be none. This is so that resources can - # depend upon this target for generating the js bindings files. Any - # generated cpp files must be listed explicitly in extensions_common - 'type': 'none', - 'includes': [ - '../third_party/mojo/mojom_bindings_generator.gypi', - ], - 'sources': [ - 'common/mojo/keep_alive.mojom', - 'common/mojo/stash.mojom', - ], - }, - { # GN version: //extensions/common 'target_name': 'extensions_common_constants', 'type': 'static_library', @@ -31,14 +19,26 @@ '<(INTERMEDIATE_DIR)', ], 'sources': [ - # Note: sources list duplicated in GN build. - 'common/constants.cc', - 'common/constants.h', + '<@(extensions_common_constants_sources)', ], # Disable c4267 warnings until we fix size_t to int truncations. 'msvs_disabled_warnings': [ 4267, ], }, { + # GN version: //extensions/common:mojo + 'target_name': 'extensions_common_mojo', + # The type of this target must be none. This is so that resources can + # depend upon this target for generating the js bindings files. Any + # generated cpp files must be listed explicitly in extensions_common + 'type': 'none', + 'includes': [ + '../third_party/mojo/mojom_bindings_generator.gypi', + ], + 'sources': [ + '<@(extensions_common_mojo_sources)', + ], + }, + { # GN version: //extensions/common 'target_name': 'extensions_common', 'type': 'static_library', @@ -70,207 +70,10 @@ '<(INTERMEDIATE_DIR)', ], 'sources': [ - # Note: sources list duplicated in GN build. - 'common/api/bluetooth/bluetooth_manifest_data.cc', - 'common/api/bluetooth/bluetooth_manifest_data.h', - 'common/api/bluetooth/bluetooth_manifest_handler.cc', - 'common/api/bluetooth/bluetooth_manifest_handler.h', - 'common/api/bluetooth/bluetooth_manifest_permission.cc', - 'common/api/bluetooth/bluetooth_manifest_permission.h', - 'common/api/messaging/message.h', - 'common/api/sockets/sockets_manifest_data.cc', - 'common/api/sockets/sockets_manifest_data.h', - 'common/api/sockets/sockets_manifest_handler.cc', - 'common/api/sockets/sockets_manifest_handler.h', - 'common/api/sockets/sockets_manifest_permission.cc', - 'common/api/sockets/sockets_manifest_permission.h', - 'common/cast/cast_cert_validator.cc', - 'common/cast/cast_cert_validator.h', - 'common/common_manifest_handlers.cc', - 'common/common_manifest_handlers.h', - 'common/host_id.h', - 'common/csp_validator.cc', - 'common/csp_validator.h', - 'common/dom_action_types.h', - 'common/draggable_region.cc', - 'common/draggable_region.h', - 'common/error_utils.cc', - 'common/error_utils.h', - 'common/event_filter.cc', - 'common/event_filter.h', - 'common/event_filtering_info.cc', - 'common/event_filtering_info.h', - 'common/event_matcher.cc', - 'common/event_matcher.h', - 'common/extension.cc', - 'common/extension.h', - 'common/extension_api.cc', - 'common/extension_api.h', - 'common/extension_icon_set.cc', - 'common/extension_icon_set.h', - 'common/extension_l10n_util.cc', - 'common/extension_l10n_util.h', - 'common/extension_message_generator.cc', - 'common/extension_message_generator.h', - 'common/extension_messages.cc', - 'common/extension_messages.h', - 'common/extension_paths.cc', - 'common/extension_paths.h', - 'common/extension_resource.cc', - 'common/extension_resource.h', - 'common/extension_set.cc', - 'common/extension_set.h', - 'common/extension_urls.cc', - 'common/extension_urls.h', - 'common/extension_utility_messages.h', - 'common/extensions_client.cc', - 'common/extensions_client.h', - 'common/feature_switch.cc', - 'common/feature_switch.h', - 'common/features/api_feature.cc', - 'common/features/api_feature.h', - 'common/features/base_feature_provider.cc', - 'common/features/base_feature_provider.h', - 'common/features/complex_feature.cc', - 'common/features/complex_feature.h', - 'common/features/feature.cc', - 'common/features/feature.h', - 'common/features/feature_provider.cc', - 'common/features/feature_provider.h', - 'common/features/json_feature_provider_source.cc', - 'common/features/json_feature_provider_source.h', - 'common/features/manifest_feature.cc', - 'common/features/manifest_feature.h', - 'common/features/permission_feature.cc', - 'common/features/permission_feature.h', - 'common/features/simple_feature.cc', - 'common/features/simple_feature.h', - 'common/features/simple_feature_filter.cc', - 'common/features/simple_feature_filter.h', - 'common/features/behavior_feature.cc', - 'common/features/behavior_feature.h', - 'common/file_util.cc', - 'common/file_util.h', - 'common/guest_view/guest_view_constants.cc', - 'common/guest_view/guest_view_constants.h', - 'common/guest_view_messages.h', - 'common/image_util.cc', - 'common/image_util.h', - 'common/install_warning.cc', - 'common/install_warning.h', - 'common/manifest.cc', - 'common/manifest.h', - 'common/manifest_constants.cc', - 'common/manifest_constants.h', - 'common/manifest_handler.cc', - 'common/manifest_handler.h', - 'common/manifest_handler_helpers.cc', - 'common/manifest_handler_helpers.h', - 'common/manifest_handlers/background_info.cc', - 'common/manifest_handlers/background_info.h', - 'common/manifest_handlers/content_capabilities_handler.cc', - 'common/manifest_handlers/content_capabilities_handler.h', - 'common/manifest_handlers/csp_info.cc', - 'common/manifest_handlers/csp_info.h', - 'common/manifest_handlers/default_locale_handler.cc', - 'common/manifest_handlers/default_locale_handler.h', - 'common/manifest_handlers/externally_connectable.cc', - 'common/manifest_handlers/externally_connectable.h', - 'common/manifest_handlers/file_handler_info.cc', - 'common/manifest_handlers/file_handler_info.h', - 'common/manifest_handlers/icons_handler.cc', - 'common/manifest_handlers/icons_handler.h', - 'common/manifest_handlers/incognito_info.cc', - 'common/manifest_handlers/incognito_info.h', - 'common/manifest_handlers/kiosk_mode_info.cc', - 'common/manifest_handlers/kiosk_mode_info.h', - 'common/manifest_handlers/launcher_page_info.cc', - 'common/manifest_handlers/launcher_page_info.h', - 'common/manifest_handlers/mime_types_handler.cc', - 'common/manifest_handlers/mime_types_handler.h', - 'common/manifest_handlers/oauth2_manifest_handler.cc', - 'common/manifest_handlers/oauth2_manifest_handler.h', - 'common/manifest_handlers/offline_enabled_info.cc', - 'common/manifest_handlers/offline_enabled_info.h', - 'common/manifest_handlers/options_page_info.cc', - 'common/manifest_handlers/options_page_info.h', - 'common/manifest_handlers/permissions_parser.cc', - 'common/manifest_handlers/permissions_parser.h', - 'common/manifest_handlers/requirements_info.cc', - 'common/manifest_handlers/requirements_info.h', - 'common/manifest_handlers/sandboxed_page_info.cc', - 'common/manifest_handlers/sandboxed_page_info.h', - 'common/manifest_handlers/shared_module_info.cc', - 'common/manifest_handlers/shared_module_info.h', - 'common/manifest_handlers/web_accessible_resources_info.cc', - 'common/manifest_handlers/web_accessible_resources_info.h', - 'common/manifest_handlers/webview_info.cc', - 'common/manifest_handlers/webview_info.h', - 'common/manifest_url_handlers.cc', - 'common/manifest_url_handlers.h', - 'common/message_bundle.cc', - 'common/message_bundle.h', - 'common/one_shot_event.cc', - 'common/one_shot_event.h', - 'common/permissions/api_permission.cc', - 'common/permissions/api_permission.h', - 'common/permissions/api_permission_set.cc', - 'common/permissions/api_permission_set.h', - 'common/permissions/base_set_operators.h', - 'common/permissions/coalesced_permission_message.cc', - 'common/permissions/coalesced_permission_message.h', - 'common/permissions/extensions_api_permissions.cc', - 'common/permissions/extensions_api_permissions.h', - 'common/permissions/manifest_permission.cc', - 'common/permissions/manifest_permission.h', - 'common/permissions/manifest_permission_set.cc', - 'common/permissions/manifest_permission_set.h', - 'common/permissions/media_galleries_permission.cc', - 'common/permissions/media_galleries_permission.h', - 'common/permissions/media_galleries_permission_data.cc', - 'common/permissions/media_galleries_permission_data.h', - 'common/permissions/permission_message.cc', - 'common/permissions/permission_message.h', - 'common/permissions/permission_message_provider.cc', - 'common/permissions/permission_message_provider.h', - 'common/permissions/permission_message_util.cc', - 'common/permissions/permission_message_util.h', - 'common/permissions/permission_set.cc', - 'common/permissions/permission_set.h', - 'common/permissions/permissions_data.cc', - 'common/permissions/permissions_data.h', - 'common/permissions/permissions_info.cc', - 'common/permissions/permissions_info.h', - 'common/permissions/permissions_provider.h', - 'common/permissions/set_disjunction_permission.h', - 'common/permissions/settings_override_permission.cc', - 'common/permissions/settings_override_permission.h', - 'common/permissions/socket_permission.cc', - 'common/permissions/socket_permission.h', - 'common/permissions/socket_permission_data.cc', - 'common/permissions/socket_permission_data.h', - 'common/permissions/socket_permission_entry.cc', - 'common/permissions/socket_permission_entry.h', - 'common/permissions/usb_device_permission.cc', - 'common/permissions/usb_device_permission.h', - 'common/permissions/usb_device_permission_data.cc', - 'common/permissions/usb_device_permission_data.h', - 'common/stack_frame.cc', - 'common/stack_frame.h', - 'common/switches.cc', - 'common/switches.h', - 'common/update_manifest.cc', - 'common/update_manifest.h', - 'common/url_pattern.cc', - 'common/url_pattern.h', - 'common/url_pattern_set.cc', - 'common/url_pattern_set.h', - 'common/user_script.cc', - 'common/user_script.h', - 'common/value_counter.cc', - 'common/value_counter.h', - 'common/view_type.cc', - 'common/view_type.h', + '<@(extensions_common_sources)', + + # Mojom generated files should not be included in the common gypi source + # list because GN has proper mojom dependency support. '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.cc', '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.h', '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.cc', @@ -283,20 +86,19 @@ # NaClModulesHandler does not use any code in NaCl, so no dependency # on nacl_common. 'sources': [ - 'common/manifest_handlers/nacl_modules_handler.cc', - 'common/manifest_handlers/nacl_modules_handler.h', + '<@(extensions_common_sources_nacl)', ], }], ['use_openssl==1', { 'sources': [ - 'common/cast/cast_cert_validator_openssl.cc', + '<@(extensions_common_sources_openssl)', ], 'dependencies': [ '../third_party/boringssl/boringssl.gyp:boringssl', ], }, { 'sources': [ - 'common/cast/cast_cert_validator_nss.cc', + '<@(extensions_common_sources_nonopenssl)' ], 'conditions': [ ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { @@ -351,536 +153,7 @@ '<(SHARED_INTERMEDIATE_DIR)', ], 'sources': [ - # Note: sources list duplicated in GN build. - # NOTE: When moving an API out of Chrome be sure to verify that the - # Android build still compiles. See conditions below. - 'browser/api/activity_log/web_request_constants.cc', - 'browser/api/activity_log/web_request_constants.h', - 'browser/api/alarms/alarms_api.cc', - 'browser/api/alarms/alarms_api.h', - 'browser/api/alarms/alarm_manager.cc', - 'browser/api/alarms/alarm_manager.h', - 'browser/api/api_resource.cc', - 'browser/api/api_resource.h', - 'browser/api/api_resource_manager.h', - 'browser/api/app_current_window_internal/app_current_window_internal_api.cc', - 'browser/api/app_current_window_internal/app_current_window_internal_api.h', - 'browser/api/app_runtime/app_runtime_api.cc', - 'browser/api/app_runtime/app_runtime_api.h', - 'browser/api/app_view/app_view_guest_internal_api.cc', - 'browser/api/app_view/app_view_guest_internal_api.h', - 'browser/api/app_window/app_window_api.cc', - 'browser/api/app_window/app_window_api.h', - 'browser/api/async_api_function.cc', - 'browser/api/async_api_function.h', - 'browser/api/audio/audio_api.cc', - 'browser/api/audio/audio_api.h', - 'browser/api/audio/audio_service.h', - 'browser/api/audio/audio_service_chromeos.cc', - 'browser/api/audio/audio_service_linux.cc', - 'browser/api/bluetooth/bluetooth_api.cc', - 'browser/api/bluetooth/bluetooth_api.h', - 'browser/api/bluetooth/bluetooth_api_pairing_delegate.cc', - 'browser/api/bluetooth/bluetooth_api_pairing_delegate.h', - 'browser/api/bluetooth/bluetooth_api_utils.cc', - 'browser/api/bluetooth/bluetooth_api_utils.h', - 'browser/api/bluetooth/bluetooth_event_router.cc', - 'browser/api/bluetooth/bluetooth_event_router.h', - 'browser/api/bluetooth/bluetooth_extension_function.cc', - 'browser/api/bluetooth/bluetooth_extension_function.h', - 'browser/api/bluetooth/bluetooth_private_api.cc', - 'browser/api/bluetooth/bluetooth_private_api.h', - 'browser/api/bluetooth_low_energy/bluetooth_low_energy_api.cc', - 'browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h', - 'browser/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc', - 'browser/api/bluetooth_low_energy/bluetooth_low_energy_connection.h', - 'browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc', - 'browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h', - 'browser/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.cc', - 'browser/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h', - 'browser/api/bluetooth_low_energy/utils.cc', - 'browser/api/bluetooth_low_energy/utils.h', - 'browser/api/bluetooth_socket/bluetooth_api_socket.cc', - 'browser/api/bluetooth_socket/bluetooth_api_socket.h', - 'browser/api/bluetooth_socket/bluetooth_socket_api.cc', - 'browser/api/bluetooth_socket/bluetooth_socket_api.h', - 'browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc', - 'browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.h', - 'browser/api/capture_web_contents_function.cc', - 'browser/api/capture_web_contents_function.h', - 'browser/api/cast_channel/cast_auth_ica.cc', - 'browser/api/cast_channel/cast_auth_ica.h', - 'browser/api/cast_channel/cast_auth_util.cc', - 'browser/api/cast_channel/cast_auth_util.h', - 'browser/api/cast_channel/cast_channel_api.cc', - 'browser/api/cast_channel/cast_channel_api.h', - 'browser/api/cast_channel/cast_framer.cc', - 'browser/api/cast_channel/cast_framer.h', - 'browser/api/cast_channel/cast_message_util.cc', - 'browser/api/cast_channel/cast_message_util.h', - 'browser/api/cast_channel/cast_socket.cc', - 'browser/api/cast_channel/cast_socket.h', - 'browser/api/cast_channel/cast_framer.cc', - 'browser/api/cast_channel/cast_framer.h', - 'browser/api/cast_channel/cast_transport.h', - 'browser/api/cast_channel/cast_transport.cc', - 'browser/api/cast_channel/keep_alive_delegate.cc', - 'browser/api/cast_channel/keep_alive_delegate.h', - 'browser/api/cast_channel/logger.cc', - 'browser/api/cast_channel/logger.h', - 'browser/api/cast_channel/logger_util.cc', - 'browser/api/cast_channel/logger_util.h', - 'browser/api/declarative/deduping_factory.h', - 'browser/api/declarative/declarative_api.cc', - 'browser/api/declarative/declarative_api.h', - 'browser/api/declarative/declarative_rule.h', - 'browser/api/declarative/rules_cache_delegate.cc', - 'browser/api/declarative/rules_cache_delegate.h', - 'browser/api/declarative/rules_registry.cc', - 'browser/api/declarative/rules_registry.h', - 'browser/api/declarative/rules_registry_service.cc', - 'browser/api/declarative/rules_registry_service.h', - 'browser/api/declarative/test_rules_registry.cc', - 'browser/api/declarative/test_rules_registry.h', - 'browser/api/declarative_content/content_rules_registry.h', - 'browser/api/declarative_webrequest/request_stage.cc', - 'browser/api/declarative_webrequest/request_stage.h', - 'browser/api/declarative_webrequest/webrequest_action.cc', - 'browser/api/declarative_webrequest/webrequest_action.h', - 'browser/api/declarative_webrequest/webrequest_condition.cc', - 'browser/api/declarative_webrequest/webrequest_condition.h', - 'browser/api/declarative_webrequest/webrequest_condition_attribute.cc', - 'browser/api/declarative_webrequest/webrequest_condition_attribute.h', - 'browser/api/declarative_webrequest/webrequest_constants.cc', - 'browser/api/declarative_webrequest/webrequest_constants.h', - 'browser/api/declarative_webrequest/webrequest_rules_registry.cc', - 'browser/api/declarative_webrequest/webrequest_rules_registry.h', - 'browser/api/device_permissions_manager.cc', - 'browser/api/device_permissions_manager.h', - 'browser/api/device_permissions_prompt.cc', - 'browser/api/device_permissions_prompt.h', - 'browser/api/dns/dns_api.cc', - 'browser/api/dns/dns_api.h', - 'browser/api/dns/host_resolver_wrapper.cc', - 'browser/api/dns/host_resolver_wrapper.h', - 'browser/api/document_scan/document_scan_api.cc', - 'browser/api/document_scan/document_scan_api.h', - 'browser/api/document_scan/document_scan_interface.cc', - 'browser/api/document_scan/document_scan_interface.h', - 'browser/api/document_scan/document_scan_interface_chromeos.cc', - 'browser/api/execute_code_function.cc', - 'browser/api/execute_code_function.h', - 'browser/api/extension_view/extension_view_internal_api.cc', - 'browser/api/extension_view/extension_view_internal_api.h', - 'browser/api/extensions_api_client.cc', - 'browser/api/extensions_api_client.h', - 'browser/api/guest_view/guest_view_internal_api.cc', - 'browser/api/guest_view/guest_view_internal_api.h', - 'browser/api/hid/hid_api.cc', - 'browser/api/hid/hid_api.h', - 'browser/api/hid/hid_connection_resource.cc', - 'browser/api/hid/hid_connection_resource.h', - 'browser/api/hid/hid_device_manager.cc', - 'browser/api/hid/hid_device_manager.h', - 'browser/api/idle/idle_api.cc', - 'browser/api/idle/idle_api.h', - 'browser/api/idle/idle_api_constants.cc', - 'browser/api/idle/idle_api_constants.h', - 'browser/api/idle/idle_manager.cc', - 'browser/api/idle/idle_manager.h', - 'browser/api/idle/idle_manager_factory.cc', - 'browser/api/idle/idle_manager_factory.h', - 'browser/api/management/management_api.cc', - 'browser/api/management/management_api.h', - 'browser/api/management/management_api_delegate.h', - 'browser/api/management/management_api_constants.cc', - 'browser/api/management/management_api_constants.h', - 'browser/api/messaging/native_message_host.cc', - 'browser/api/mime_handler_private/mime_handler_private.cc', - 'browser/api/mime_handler_private/mime_handler_private.h', - 'browser/api/networking_private/networking_private_api.cc', - 'browser/api/networking_private/networking_private_api.h', - 'browser/api/networking_private/networking_private_chromeos.cc', - 'browser/api/networking_private/networking_private_chromeos.h', - 'browser/api/networking_private/networking_private_delegate.cc', - 'browser/api/networking_private/networking_private_delegate.h', - 'browser/api/networking_private/networking_private_delegate_factory.cc', - 'browser/api/networking_private/networking_private_delegate_factory.h', - 'browser/api/networking_private/networking_private_delegate_observer.h', - 'browser/api/networking_private/networking_private_event_router.h', - 'browser/api/networking_private/networking_private_event_router_chromeos.cc', - 'browser/api/networking_private/networking_private_event_router_factory.cc', - 'browser/api/networking_private/networking_private_event_router_factory.h', - 'browser/api/power/power_api.cc', - 'browser/api/power/power_api.h', - 'browser/api/power/power_api_manager.cc', - 'browser/api/power/power_api_manager.h', - 'browser/api/printer_provider/printer_provider_api.cc', - 'browser/api/printer_provider/printer_provider_api.h', - 'browser/api/printer_provider_internal/printer_provider_internal_api.cc', - 'browser/api/printer_provider_internal/printer_provider_internal_api.h', - 'browser/api/printer_provider_internal/printer_provider_internal_api_observer.h', - 'browser/api/runtime/runtime_api.cc', - 'browser/api/runtime/runtime_api.h', - 'browser/api/runtime/runtime_api_delegate.cc', - 'browser/api/runtime/runtime_api_delegate.h', - 'browser/api/serial/serial_api.cc', - 'browser/api/serial/serial_api.h', - 'browser/api/serial/serial_connection.cc', - 'browser/api/serial/serial_connection.h', - 'browser/api/serial/serial_event_dispatcher.cc', - 'browser/api/serial/serial_event_dispatcher.h', - 'browser/api/socket/socket.cc', - 'browser/api/socket/socket.h', - 'browser/api/socket/socket_api.cc', - 'browser/api/socket/socket_api.h', - 'browser/api/socket/tcp_socket.cc', - 'browser/api/socket/tcp_socket.h', - 'browser/api/socket/tls_socket.cc', - 'browser/api/socket/tls_socket.h', - 'browser/api/socket/udp_socket.cc', - 'browser/api/socket/udp_socket.h', - 'browser/api/sockets_tcp/sockets_tcp_api.cc', - 'browser/api/sockets_tcp/sockets_tcp_api.h', - 'browser/api/sockets_tcp/tcp_socket_event_dispatcher.cc', - 'browser/api/sockets_tcp/tcp_socket_event_dispatcher.h', - 'browser/api/sockets_tcp_server/sockets_tcp_server_api.cc', - 'browser/api/sockets_tcp_server/sockets_tcp_server_api.h', - 'browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc', - 'browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h', - 'browser/api/sockets_udp/sockets_udp_api.cc', - 'browser/api/sockets_udp/sockets_udp_api.h', - 'browser/api/sockets_udp/udp_socket_event_dispatcher.cc', - 'browser/api/sockets_udp/udp_socket_event_dispatcher.h', - 'browser/api/storage/leveldb_settings_storage_factory.cc', - 'browser/api/storage/leveldb_settings_storage_factory.h', - 'browser/api/storage/local_value_store_cache.cc', - 'browser/api/storage/local_value_store_cache.h', - 'browser/api/storage/settings_namespace.cc', - 'browser/api/storage/settings_namespace.h', - 'browser/api/storage/settings_observer.h', - 'browser/api/storage/settings_storage_factory.h', - 'browser/api/storage/settings_storage_quota_enforcer.cc', - 'browser/api/storage/settings_storage_quota_enforcer.h', - 'browser/api/storage/storage_api.cc', - 'browser/api/storage/storage_api.h', - 'browser/api/storage/storage_frontend.cc', - 'browser/api/storage/storage_frontend.h', - 'browser/api/storage/value_store_cache.cc', - 'browser/api/storage/value_store_cache.h', - 'browser/api/storage/weak_unlimited_settings_storage.cc', - 'browser/api/storage/weak_unlimited_settings_storage.h', - 'browser/api/system_cpu/cpu_info_provider.cc', - 'browser/api/system_cpu/cpu_info_provider.h', - 'browser/api/system_cpu/cpu_info_provider_linux.cc', - 'browser/api/system_cpu/cpu_info_provider_mac.cc', - 'browser/api/system_cpu/cpu_info_provider_win.cc', - 'browser/api/system_cpu/system_cpu_api.cc', - 'browser/api/system_cpu/system_cpu_api.h', - 'browser/api/system_display/display_info_provider.cc', - 'browser/api/system_display/display_info_provider.h', - 'browser/api/system_display/system_display_api.cc', - 'browser/api/system_display/system_display_api.h', - 'browser/api/system_info/system_info_api.cc', - 'browser/api/system_info/system_info_api.h', - 'browser/api/system_info/system_info_provider.cc', - 'browser/api/system_info/system_info_provider.h', - 'browser/api/system_memory/memory_info_provider.cc', - 'browser/api/system_memory/memory_info_provider.h', - 'browser/api/system_memory/system_memory_api.cc', - 'browser/api/system_memory/system_memory_api.h', - 'browser/api/system_network/system_network_api.cc', - 'browser/api/system_network/system_network_api.h', - 'browser/api/system_storage/storage_info_provider.cc', - 'browser/api/system_storage/storage_info_provider.h', - 'browser/api/system_storage/system_storage_api.cc', - 'browser/api/system_storage/system_storage_api.h', - 'browser/api/test/test_api.cc', - 'browser/api/test/test_api.h', - 'browser/api/usb/usb_api.cc', - 'browser/api/usb/usb_api.h', - 'browser/api/usb/usb_event_router.cc', - 'browser/api/usb/usb_event_router.h', - 'browser/api/usb/usb_device_resource.cc', - 'browser/api/usb/usb_device_resource.h', - 'browser/api/virtual_keyboard_private/virtual_keyboard_private_api.cc', - 'browser/api/virtual_keyboard_private/virtual_keyboard_private_api.h', - 'browser/api/virtual_keyboard_private/virtual_keyboard_delegate.h', - 'browser/api/web_request/form_data_parser.cc', - 'browser/api/web_request/form_data_parser.h', - 'browser/api/web_request/upload_data_presenter.cc', - 'browser/api/web_request/upload_data_presenter.h', - 'browser/api/web_request/web_request_api.cc', - 'browser/api/web_request/web_request_api.h', - 'browser/api/web_request/web_request_api_constants.cc', - 'browser/api/web_request/web_request_api_constants.h', - 'browser/api/web_request/web_request_api_helpers.cc', - 'browser/api/web_request/web_request_api_helpers.h', - 'browser/api/web_request/web_request_event_router_delegate.cc', - 'browser/api/web_request/web_request_event_router_delegate.h', - 'browser/api/web_request/web_request_permissions.cc', - 'browser/api/web_request/web_request_permissions.h', - 'browser/api/web_request/web_request_time_tracker.cc', - 'browser/api/web_request/web_request_time_tracker.h', - 'browser/api/web_view/web_view_internal_api.cc', - 'browser/api/web_view/web_view_internal_api.h', - 'browser/api/webcam_private/webcam_private_api.h', - 'browser/api/webcam_private/webcam_private_api_chromeos.cc', - 'browser/api_activity_monitor.h', - 'browser/app_sorting.h', - 'browser/app_window/app_delegate.h', - 'browser/app_window/app_web_contents_helper.cc', - 'browser/app_window/app_web_contents_helper.h', - 'browser/app_window/app_window.cc', - 'browser/app_window/app_window.h', - 'browser/app_window/app_window_contents.cc', - 'browser/app_window/app_window_contents.h', - 'browser/app_window/app_window_geometry_cache.cc', - 'browser/app_window/app_window_geometry_cache.h', - 'browser/app_window/app_window_registry.cc', - 'browser/app_window/app_window_registry.h', - 'browser/app_window/app_window_client.cc', - 'browser/app_window/app_window_client.h', - 'browser/app_window/native_app_window.h', - 'browser/app_window/size_constraints.cc', - 'browser/app_window/size_constraints.h', - 'browser/blacklist_state.h', - 'browser/blob_holder.cc', - 'browser/blob_holder.h', - 'browser/browser_context_keyed_api_factory.h', - 'browser/browser_context_keyed_service_factories.cc', - 'browser/browser_context_keyed_service_factories.h', - 'browser/component_extension_resource_manager.h', - 'browser/computed_hashes.cc', - 'browser/computed_hashes.h', - 'browser/content_hash_fetcher.cc', - 'browser/content_hash_fetcher.h', - 'browser/content_hash_reader.cc', - 'browser/content_hash_reader.h', - 'browser/content_hash_tree.cc', - 'browser/content_hash_tree.h', - 'browser/content_verifier.cc', - 'browser/content_verifier.h', - 'browser/content_verifier_delegate.h', - 'browser/content_verifier_io_data.cc', - 'browser/content_verifier_io_data.h', - 'browser/content_verify_job.cc', - 'browser/content_verify_job.h', - 'browser/crx_file_info.cc', - 'browser/crx_file_info.h', - 'browser/error_map.cc', - 'browser/error_map.h', - 'browser/event_listener_map.cc', - 'browser/event_listener_map.h', - 'browser/event_router.cc', - 'browser/event_router.h', - 'browser/extension_host.cc', - 'browser/extension_host.h', - 'browser/extension_host_delegate.h', - 'browser/extension_host_observer.h', - 'browser/extension_error.cc', - 'browser/extension_error.h', - 'browser/extension_function.cc', - 'browser/extension_function.h', - 'browser/extension_function_dispatcher.cc', - 'browser/extension_function_dispatcher.h', - 'browser/extension_function_registry.cc', - 'browser/extension_function_registry.h', - 'browser/extension_function_util.cc', - 'browser/extension_function_util.h', - 'browser/extension_icon_image.cc', - 'browser/extension_icon_image.h', - 'browser/extension_message_filter.cc', - 'browser/extension_message_filter.h', - 'browser/extension_pref_store.cc', - 'browser/extension_pref_store.h', - 'browser/extension_pref_value_map.cc', - 'browser/extension_pref_value_map_factory.cc', - 'browser/extension_pref_value_map_factory.h', - 'browser/extension_pref_value_map.h', - 'browser/extension_prefs.cc', - 'browser/extension_prefs.h', - 'browser/extension_prefs_factory.cc', - 'browser/extension_prefs_factory.h', - 'browser/extension_prefs_observer.h', - 'browser/extension_prefs_scope.h', - 'browser/extension_protocols.cc', - 'browser/extension_protocols.h', - 'browser/extension_registry.cc', - 'browser/extension_registry.h', - 'browser/extension_registry_factory.cc', - 'browser/extension_registry_factory.h', - 'browser/extension_registry_observer.h', - 'browser/extension_scoped_prefs.h', - 'browser/extension_system.cc', - 'browser/extension_system.h', - 'browser/extension_system_provider.cc', - 'browser/extension_system_provider.h', - 'browser/extension_util.cc', - 'browser/extension_util.h', - 'browser/extension_web_contents_observer.cc', - 'browser/extension_web_contents_observer.h', - 'browser/extension_zoom_request_client.cc', - 'browser/extension_zoom_request_client.h', - 'browser/extensions_browser_client.cc', - 'browser/extensions_browser_client.h', - 'browser/external_provider_interface.h', - 'browser/granted_file_entry.cc', - 'browser/granted_file_entry.h', - 'browser/guest_view/app_view/app_view_constants.cc', - 'browser/guest_view/app_view/app_view_constants.h', - 'browser/guest_view/app_view/app_view_guest.cc', - 'browser/guest_view/app_view/app_view_guest.h', - 'browser/guest_view/app_view/app_view_guest_delegate.cc', - 'browser/guest_view/app_view/app_view_guest_delegate.h', - 'browser/guest_view/extension_options/extension_options_constants.cc', - 'browser/guest_view/extension_options/extension_options_constants.h', - 'browser/guest_view/extension_options/extension_options_guest.cc', - 'browser/guest_view/extension_options/extension_options_guest.h', - 'browser/guest_view/extension_options/extension_options_guest_delegate.cc', - 'browser/guest_view/extension_options/extension_options_guest_delegate.h', - 'browser/guest_view/extension_view/extension_view_constants.cc', - 'browser/guest_view/extension_view/extension_view_constants.h', - 'browser/guest_view/extension_view/extension_view_guest.cc', - 'browser/guest_view/extension_view/extension_view_guest.h', - 'browser/guest_view/extension_view/extension_view_guest_delegate.cc', - 'browser/guest_view/extension_view/extension_view_guest_delegate.h', - 'browser/guest_view/guest_view_base.cc', - 'browser/guest_view/guest_view_base.h', - 'browser/guest_view/guest_view_manager_factory.h', - 'browser/guest_view/guest_view_manager.cc', - 'browser/guest_view/guest_view_manager.h', - 'browser/guest_view/guest_view_message_filter.cc', - 'browser/guest_view/guest_view_message_filter.h', - 'browser/guest_view/guest_view.h', - 'browser/guest_view/mime_handler_view/mime_handler_stream_manager.cc', - 'browser/guest_view/mime_handler_view/mime_handler_stream_manager.h', - 'browser/guest_view/mime_handler_view/mime_handler_view_constants.cc', - 'browser/guest_view/mime_handler_view/mime_handler_view_constants.h', - 'browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.cc', - 'browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h', - 'browser/guest_view/mime_handler_view/mime_handler_view_guest.cc', - 'browser/guest_view/mime_handler_view/mime_handler_view_guest.h', - 'browser/guest_view/surface_worker/surface_worker_constants.cc', - 'browser/guest_view/surface_worker/surface_worker_constants.h', - 'browser/guest_view/surface_worker/surface_worker_guest.cc', - 'browser/guest_view/surface_worker/surface_worker_guest.h', - 'browser/guest_view/web_view/javascript_dialog_helper.cc', - 'browser/guest_view/web_view/javascript_dialog_helper.h', - 'browser/guest_view/web_view/web_view_constants.cc', - 'browser/guest_view/web_view/web_view_constants.h', - 'browser/guest_view/web_view/web_view_find_helper.cc', - 'browser/guest_view/web_view/web_view_find_helper.h', - 'browser/guest_view/web_view/web_view_guest.cc', - 'browser/guest_view/web_view/web_view_guest.h', - 'browser/guest_view/web_view/web_view_guest_delegate.h', - 'browser/guest_view/web_view/web_view_permission_types.h', - 'browser/guest_view/web_view/web_view_permission_helper.cc', - 'browser/guest_view/web_view/web_view_permission_helper.h', - 'browser/guest_view/web_view/web_view_permission_helper_delegate.cc', - 'browser/guest_view/web_view/web_view_permission_helper_delegate.h', - 'browser/guest_view/web_view/web_view_renderer_state.cc', - 'browser/guest_view/web_view/web_view_renderer_state.h', - 'browser/image_loader.cc', - 'browser/image_loader.h', - 'browser/image_loader_factory.cc', - 'browser/image_loader_factory.h', - 'browser/info_map.cc', - 'browser/info_map.h', - 'browser/install/crx_installer_error.h', - 'browser/install/extension_install_ui.cc', - 'browser/install/extension_install_ui.h', - 'browser/install_flag.h', - 'browser/io_thread_extension_message_filter.cc', - 'browser/io_thread_extension_message_filter.h', - 'browser/file_highlighter.cc', - 'browser/file_highlighter.h', - 'browser/file_reader.cc', - 'browser/file_reader.h', - 'browser/lazy_background_task_queue.cc', - 'browser/lazy_background_task_queue.h', - 'browser/management_policy.cc', - 'browser/management_policy.h', - 'browser/mojo/keep_alive_impl.cc', - 'browser/mojo/keep_alive_impl.h', - 'browser/mojo/service_registration_manager.cc', - 'browser/mojo/service_registration_manager.h', - 'browser/mojo/stash_backend.cc', - 'browser/mojo/stash_backend.h', - 'browser/notification_types.cc', - 'browser/notification_types.h', - 'browser/null_app_sorting.cc', - 'browser/null_app_sorting.h', - 'browser/pref_names.cc', - 'browser/pref_names.h', - 'browser/process_manager.cc', - 'browser/process_manager.h', - 'browser/process_manager_delegate.h', - 'browser/process_manager_factory.cc', - 'browser/process_manager_factory.h', - 'browser/process_manager_observer.h', - 'browser/process_map.cc', - 'browser/process_map.h', - 'browser/process_map_factory.cc', - 'browser/process_map_factory.h', - 'browser/quota_service.cc', - 'browser/quota_service.h', - 'browser/renderer_startup_helper.cc', - 'browser/renderer_startup_helper.h', - 'browser/runtime_data.cc', - 'browser/runtime_data.h', - 'browser/sandboxed_unpacker.cc', - 'browser/sandboxed_unpacker.h', - 'browser/script_execution_observer.h', - 'browser/script_executor.cc', - 'browser/script_executor.h', - 'browser/state_store.cc', - 'browser/state_store.h', - 'browser/suggest_permission_util.cc', - 'browser/suggest_permission_util.h', - 'browser/uninstall_reason.h', - 'browser/update_observer.h', - 'browser/updater/extension_cache.h', - 'browser/updater/extension_downloader.cc', - 'browser/updater/extension_downloader.h', - 'browser/updater/extension_downloader_delegate.cc', - 'browser/updater/extension_downloader_delegate.h', - 'browser/updater/manifest_fetch_data.cc', - 'browser/updater/manifest_fetch_data.h', - 'browser/updater/null_extension_cache.cc', - 'browser/updater/null_extension_cache.h', - 'browser/updater/request_queue.h', - 'browser/updater/request_queue_impl.h', - 'browser/updater/safe_manifest_parser.cc', - 'browser/updater/safe_manifest_parser.h', - 'browser/updater/update_service.cc', - 'browser/updater/update_service.h', - 'browser/updater/update_service_factory.cc', - 'browser/updater/update_service_factory.h', - 'browser/url_request_util.cc', - 'browser/url_request_util.h', - 'browser/value_store/leveldb_value_store.cc', - 'browser/value_store/leveldb_value_store.h', - 'browser/value_store/testing_value_store.cc', - 'browser/value_store/testing_value_store.h', - 'browser/value_store/value_store.cc', - 'browser/value_store/value_store.h', - 'browser/value_store/value_store_change.cc', - 'browser/value_store/value_store_change.h', - 'browser/value_store/value_store_frontend.cc', - 'browser/value_store/value_store_frontend.h', - 'browser/value_store/value_store_util.cc', - 'browser/value_store/value_store_util.h', - 'browser/verified_contents.cc', - 'browser/verified_contents.h', - 'browser/view_type_utils.cc', - 'browser/view_type_utils.h', - 'browser/warning_service.cc', - 'browser/warning_service.h', - 'browser/warning_service_factory.cc', - 'browser/warning_service_factory.h', - 'browser/warning_set.cc', - 'browser/warning_set.h', + '<@(extensions_browser_sources)', ], 'conditions': [ # This condition exists only because the extensions_common_constants @@ -896,24 +169,11 @@ '../chromeos/chromeos.gyp:chromeos', ], 'sources': [ - 'browser/api/diagnostics/diagnostics_api.cc', - 'browser/api/diagnostics/diagnostics_api.h', - 'browser/api/diagnostics/diagnostics_api_chromeos.cc', - 'browser/api/networking_config/networking_config_api.cc', - 'browser/api/networking_config/networking_config_api.h', - 'browser/api/networking_config/networking_config_service.cc', - 'browser/api/networking_config/networking_config_service.h', - 'browser/api/networking_config/networking_config_service_factory.cc', - 'browser/api/networking_config/networking_config_service_factory.h', - 'browser/api/vpn_provider/vpn_provider_api.cc', - 'browser/api/vpn_provider/vpn_provider_api.h', - 'browser/api/vpn_provider/vpn_service.cc', - 'browser/api/vpn_provider/vpn_service.h', - 'browser/api/vpn_provider/vpn_service_factory.h' + '<@(extensions_browser_sources_chromeos)', ], }, { # chromeos==0 'sources': [ - 'browser/api/document_scan/document_scan_interface_nonchromeos.cc', + '<@(extensions_browser_sources_nonchromeos)', ], }], ['OS == "win" or OS == "mac"', { @@ -921,9 +181,7 @@ '../components/components.gyp:wifi_component', ], 'sources': [ - 'browser/api/networking_private/networking_private_event_router_nonchromeos.cc', - 'browser/api/networking_private/networking_private_service_client.cc', - 'browser/api/networking_private/networking_private_service_client.h', + '<@(extensions_browser_sources_win_or_mac)', ], }], ['OS == "linux" and chromeos == 0', { @@ -932,16 +190,12 @@ '../dbus/dbus.gyp:dbus', ], 'sources': [ - 'browser/api/networking_private/networking_private_event_router_nonchromeos.cc', - 'browser/api/networking_private/networking_private_linux.cc', - 'browser/api/networking_private/networking_private_linux.h', - 'browser/api/networking_private/network_config_dbus_constants_linux.cc', - 'browser/api/networking_private/network_config_dbus_constants_linux.h', + '<@(extensions_browser_sources_linux_nonchromeos)', ], }], ['OS != "linux"', { 'sources': [ - 'browser/api/audio/audio_service.cc', + '<@(extensions_browser_sources_nonlinux)', ] }], ], @@ -963,162 +217,7 @@ '..', ], 'sources': [ - # Note: sources list duplicated in GN build. - 'renderer/activity_log_converter_strategy.cc', - 'renderer/activity_log_converter_strategy.h', - 'renderer/api/automation/automation_api_helper.cc', - 'renderer/api/automation/automation_api_helper.h', - 'renderer/api_activity_logger.cc', - 'renderer/api_activity_logger.h', - 'renderer/api_definitions_natives.cc', - 'renderer/api_definitions_natives.h', - 'renderer/app_runtime_custom_bindings.cc', - 'renderer/app_runtime_custom_bindings.h', - 'renderer/app_window_custom_bindings.cc', - 'renderer/app_window_custom_bindings.h', - 'renderer/binding_generating_native_handler.cc', - 'renderer/binding_generating_native_handler.h', - 'renderer/blob_native_handler.cc', - 'renderer/blob_native_handler.h', - 'renderer/console.cc', - 'renderer/console.h', - 'renderer/content_watcher.cc', - 'renderer/content_watcher.h', - 'renderer/context_menus_custom_bindings.cc', - 'renderer/context_menus_custom_bindings.h', - 'renderer/css_native_handler.cc', - 'renderer/css_native_handler.h', - 'renderer/default_dispatcher_delegate.cc', - 'renderer/default_dispatcher_delegate.h', - 'renderer/dispatcher.cc', - 'renderer/dispatcher.h', - 'renderer/dispatcher_delegate.h', - 'renderer/document_custom_bindings.cc', - 'renderer/document_custom_bindings.h', - 'renderer/dom_activity_logger.cc', - 'renderer/dom_activity_logger.h', - 'renderer/event_bindings.cc', - 'renderer/event_bindings.h', - 'renderer/extension_groups.h', - 'renderer/extension_helper.cc', - 'renderer/extension_helper.h', - 'renderer/extensions_render_frame_observer.cc', - 'renderer/extensions_render_frame_observer.h', - 'renderer/extensions_renderer_client.cc', - 'renderer/extensions_renderer_client.h', - 'renderer/file_system_natives.cc', - 'renderer/file_system_natives.h', - 'renderer/guest_view/extensions_guest_view_container.cc', - 'renderer/guest_view/extensions_guest_view_container.h', - 'renderer/guest_view/guest_view_container.cc', - 'renderer/guest_view/guest_view_container.h', - 'renderer/guest_view/guest_view_internal_custom_bindings.cc', - 'renderer/guest_view/guest_view_internal_custom_bindings.h', - 'renderer/guest_view/mime_handler_view/mime_handler_view_container.cc', - 'renderer/guest_view/mime_handler_view/mime_handler_view_container.h', - 'renderer/i18n_custom_bindings.cc', - 'renderer/i18n_custom_bindings.h', - 'renderer/id_generator_custom_bindings.cc', - 'renderer/id_generator_custom_bindings.h', - 'renderer/lazy_background_page_native_handler.cc', - 'renderer/lazy_background_page_native_handler.h', - 'renderer/logging_native_handler.cc', - 'renderer/logging_native_handler.h', - 'renderer/messaging_bindings.cc', - 'renderer/messaging_bindings.h', - 'renderer/module_system.cc', - 'renderer/module_system.h', - 'renderer/native_handler.cc', - 'renderer/native_handler.h', - 'renderer/object_backed_native_handler.cc', - 'renderer/object_backed_native_handler.h', - 'renderer/print_native_handler.cc', - 'renderer/print_native_handler.h', - 'renderer/process_info_native_handler.cc', - 'renderer/process_info_native_handler.h', - 'renderer/programmatic_script_injector.cc', - 'renderer/programmatic_script_injector.h', - 'renderer/render_view_observer_natives.cc', - 'renderer/request_sender.cc', - 'renderer/request_sender.h', - 'renderer/resource_bundle_source_map.cc', - 'renderer/resource_bundle_source_map.h', - 'renderer/resources/app_runtime_custom_bindings.js', - 'renderer/resources/app_window_custom_bindings.js', - 'renderer/resources/binding.js', - 'renderer/resources/context_menus_custom_bindings.js', - 'renderer/resources/declarative_webrequest_custom_bindings.js', - 'renderer/resources/entry_id_manager.js', - 'renderer/resources/event.js', - 'renderer/resources/extension.css', - 'renderer/resources/extension_custom_bindings.js', - 'renderer/resources/extension_fonts.css', - 'renderer/resources/greasemonkey_api.js', - 'renderer/resources/i18n_custom_bindings.js', - 'renderer/resources/image_util.js', - 'renderer/resources/json_schema.js', - 'renderer/resources/last_error.js', - 'renderer/resources/messaging.js', - 'renderer/resources/messaging_utils.js', - 'renderer/resources/permissions_custom_bindings.js', - 'renderer/resources/platform_app.css', - 'renderer/resources/platform_app.js', - 'renderer/resources/runtime_custom_bindings.js', - 'renderer/resources/schema_utils.js', - 'renderer/resources/send_request.js', - 'renderer/resources/set_icon.js', - 'renderer/resources/storage_area.js', - 'renderer/resources/test_custom_bindings.js', - 'renderer/resources/uncaught_exception_handler.js', - 'renderer/resources/unload_event.js', - 'renderer/resources/utils.js', - 'renderer/resources/extensions/extension_view.js', - 'renderer/resources/extensions/surface_worker.js', - 'renderer/resources/extensions/web_view.js', - 'renderer/resources/extensions/web_view_events.js', - 'renderer/resources/extensions/web_view_experimental.js', - 'renderer/resources/web_request_custom_bindings.js', - 'renderer/resources/web_request_internal_custom_bindings.js', - 'renderer/runtime_custom_bindings.cc', - 'renderer/runtime_custom_bindings.h', - 'renderer/safe_builtins.cc', - 'renderer/safe_builtins.h', - 'renderer/scoped_persistent.h', - 'renderer/script_context.cc', - 'renderer/script_context.h', - 'renderer/script_context_set.cc', - 'renderer/script_context_set.h', - 'renderer/script_injection.cc', - 'renderer/script_injection.h', - 'renderer/script_injection_manager.cc', - 'renderer/script_injection_manager.h', - 'renderer/script_injector.h', - 'renderer/scripts_run_info.cc', - 'renderer/scripts_run_info.h', - 'renderer/send_request_natives.cc', - 'renderer/send_request_natives.h', - 'renderer/set_icon_natives.cc', - 'renderer/set_icon_natives.h', - 'renderer/static_v8_external_one_byte_string_resource.cc', - 'renderer/static_v8_external_one_byte_string_resource.h', - 'renderer/tab_finder.cc', - 'renderer/tab_finder.h', - 'renderer/test_features_native_handler.cc', - 'renderer/test_features_native_handler.h', - 'renderer/user_gestures_native_handler.cc', - 'renderer/user_gestures_native_handler.h', - 'renderer/user_script_injector.cc', - 'renderer/user_script_injector.h', - 'renderer/user_script_set.cc', - 'renderer/user_script_set.h', - 'renderer/user_script_set_manager.cc', - 'renderer/user_script_set_manager.h', - 'renderer/utils_native_handler.cc', - 'renderer/utils_native_handler.h', - 'renderer/v8_context_native_handler.cc', - 'renderer/v8_context_native_handler.h', - 'renderer/v8_schema_registry.cc', - 'renderer/v8_schema_registry.h', + '<@(extensions_renderer_sources)', ], # Disable c4267 warnings until we fix size_t to int truncations. 'msvs_disabled_warnings': [ 4267, ], @@ -1137,10 +236,7 @@ '..', ], 'sources': [ - 'utility/unpacker.cc', - 'utility/unpacker.h', - 'utility/utility_handler.cc', - 'utility/utility_handler.h', + '<@(extensions_utility_sources)', ], }, { @@ -1168,57 +264,7 @@ '<(SHARED_INTERMEDIATE_DIR)', ], 'sources': [ - # Note: sources list duplicated in GN build. - 'browser/api/cast_channel/cast_test_util.cc', - 'browser/api/cast_channel/cast_test_util.h', - 'browser/api/dns/mock_host_resolver_creator.cc', - 'browser/api/dns/mock_host_resolver_creator.h', - 'browser/api/storage/settings_test_util.cc', - 'browser/api/storage/settings_test_util.h', - 'browser/api_test_utils.cc', - 'browser/api_test_utils.h', - 'browser/api_unittest.cc', - 'browser/api_unittest.h', - 'browser/app_window/test_app_window_contents.cc', - 'browser/app_window/test_app_window_contents.h', - 'browser/extension_error_test_util.cc', - 'browser/extension_error_test_util.h', - 'browser/extensions_test.cc', - 'browser/extensions_test.h', - 'browser/guest_view/test_guest_view_manager.cc', - 'browser/guest_view/test_guest_view_manager.h', - 'browser/mock_extension_system.cc', - 'browser/mock_extension_system.h', - 'browser/test_extension_registry_observer.cc', - 'browser/test_extension_registry_observer.h', - 'browser/test_extensions_browser_client.cc', - 'browser/test_extensions_browser_client.h', - 'browser/test_management_policy.cc', - 'browser/test_management_policy.h', - 'browser/test_runtime_api_delegate.cc', - 'browser/test_runtime_api_delegate.h', - 'common/extension_builder.cc', - 'common/extension_builder.h', - 'common/manifest_test.cc', - 'common/manifest_test.h', - 'common/test_util.cc', - 'common/test_util.h', - 'common/value_builder.cc', - 'common/value_builder.h', - 'renderer/test_extensions_renderer_client.cc', - 'renderer/test_extensions_renderer_client.h', - 'test/extension_test_message_listener.cc', - 'test/extension_test_message_listener.h', - 'test/result_catcher.cc', - 'test/result_catcher.h', - 'test/test_content_utility_client.cc', - 'test/test_content_utility_client.h', - 'test/test_extensions_client.cc', - 'test/test_extensions_client.h', - 'test/test_permission_message_provider.cc', - 'test/test_permission_message_provider.h', - 'test/test_service_registration_manager.cc', - 'test/test_service_registration_manager.h', + '<@(extensions_test_support_sources)', ], # Disable c4267 warnings until we fix size_t to int truncations. 'msvs_disabled_warnings': [ 4267, ], diff --git a/extensions/extensions.gypi b/extensions/extensions.gypi new file mode 100644 index 0000000..c078cf0 --- /dev/null +++ b/extensions/extensions.gypi @@ -0,0 +1,1006 @@ +# Copyright 2015 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. + +{ + 'variables': { + 'extensions_common_constants_sources': [ + 'common/constants.cc', + 'common/constants.h', + ], + 'extensions_common_mojo_sources': [ + 'common/mojo/keep_alive.mojom', + 'common/mojo/stash.mojom', + ], + 'extensions_common_sources': [ + 'common/api/bluetooth/bluetooth_manifest_data.cc', + 'common/api/bluetooth/bluetooth_manifest_data.h', + 'common/api/bluetooth/bluetooth_manifest_handler.cc', + 'common/api/bluetooth/bluetooth_manifest_handler.h', + 'common/api/bluetooth/bluetooth_manifest_permission.cc', + 'common/api/bluetooth/bluetooth_manifest_permission.h', + 'common/api/messaging/message.h', + 'common/api/sockets/sockets_manifest_data.cc', + 'common/api/sockets/sockets_manifest_data.h', + 'common/api/sockets/sockets_manifest_handler.cc', + 'common/api/sockets/sockets_manifest_handler.h', + 'common/api/sockets/sockets_manifest_permission.cc', + 'common/api/sockets/sockets_manifest_permission.h', + 'common/cast/cast_cert_validator.cc', + 'common/cast/cast_cert_validator.h', + 'common/common_manifest_handlers.cc', + 'common/common_manifest_handlers.h', + 'common/host_id.h', + 'common/csp_validator.cc', + 'common/csp_validator.h', + 'common/dom_action_types.h', + 'common/draggable_region.cc', + 'common/draggable_region.h', + 'common/error_utils.cc', + 'common/error_utils.h', + 'common/event_filter.cc', + 'common/event_filter.h', + 'common/event_filtering_info.cc', + 'common/event_filtering_info.h', + 'common/event_matcher.cc', + 'common/event_matcher.h', + 'common/extension.cc', + 'common/extension.h', + 'common/extension_api.cc', + 'common/extension_api.h', + 'common/extension_icon_set.cc', + 'common/extension_icon_set.h', + 'common/extension_l10n_util.cc', + 'common/extension_l10n_util.h', + 'common/extension_message_generator.cc', + 'common/extension_message_generator.h', + 'common/extension_messages.cc', + 'common/extension_messages.h', + 'common/extension_paths.cc', + 'common/extension_paths.h', + 'common/extension_resource.cc', + 'common/extension_resource.h', + 'common/extension_set.cc', + 'common/extension_set.h', + 'common/extension_urls.cc', + 'common/extension_urls.h', + 'common/extension_utility_messages.h', + 'common/extensions_client.cc', + 'common/extensions_client.h', + 'common/feature_switch.cc', + 'common/feature_switch.h', + 'common/features/api_feature.cc', + 'common/features/api_feature.h', + 'common/features/base_feature_provider.cc', + 'common/features/base_feature_provider.h', + 'common/features/complex_feature.cc', + 'common/features/complex_feature.h', + 'common/features/feature.cc', + 'common/features/feature.h', + 'common/features/feature_provider.cc', + 'common/features/feature_provider.h', + 'common/features/json_feature_provider_source.cc', + 'common/features/json_feature_provider_source.h', + 'common/features/manifest_feature.cc', + 'common/features/manifest_feature.h', + 'common/features/permission_feature.cc', + 'common/features/permission_feature.h', + 'common/features/simple_feature.cc', + 'common/features/simple_feature.h', + 'common/features/simple_feature_filter.cc', + 'common/features/simple_feature_filter.h', + 'common/features/behavior_feature.cc', + 'common/features/behavior_feature.h', + 'common/file_util.cc', + 'common/file_util.h', + 'common/guest_view/guest_view_constants.cc', + 'common/guest_view/guest_view_constants.h', + 'common/guest_view_messages.h', + 'common/image_util.cc', + 'common/image_util.h', + 'common/install_warning.cc', + 'common/install_warning.h', + 'common/manifest.cc', + 'common/manifest.h', + 'common/manifest_constants.cc', + 'common/manifest_constants.h', + 'common/manifest_handler.cc', + 'common/manifest_handler.h', + 'common/manifest_handler_helpers.cc', + 'common/manifest_handler_helpers.h', + 'common/manifest_handlers/background_info.cc', + 'common/manifest_handlers/background_info.h', + 'common/manifest_handlers/content_capabilities_handler.cc', + 'common/manifest_handlers/content_capabilities_handler.h', + 'common/manifest_handlers/csp_info.cc', + 'common/manifest_handlers/csp_info.h', + 'common/manifest_handlers/default_locale_handler.cc', + 'common/manifest_handlers/default_locale_handler.h', + 'common/manifest_handlers/externally_connectable.cc', + 'common/manifest_handlers/externally_connectable.h', + 'common/manifest_handlers/file_handler_info.cc', + 'common/manifest_handlers/file_handler_info.h', + 'common/manifest_handlers/icons_handler.cc', + 'common/manifest_handlers/icons_handler.h', + 'common/manifest_handlers/incognito_info.cc', + 'common/manifest_handlers/incognito_info.h', + 'common/manifest_handlers/kiosk_mode_info.cc', + 'common/manifest_handlers/kiosk_mode_info.h', + 'common/manifest_handlers/launcher_page_info.cc', + 'common/manifest_handlers/launcher_page_info.h', + 'common/manifest_handlers/mime_types_handler.cc', + 'common/manifest_handlers/mime_types_handler.h', + 'common/manifest_handlers/oauth2_manifest_handler.cc', + 'common/manifest_handlers/oauth2_manifest_handler.h', + 'common/manifest_handlers/offline_enabled_info.cc', + 'common/manifest_handlers/offline_enabled_info.h', + 'common/manifest_handlers/options_page_info.cc', + 'common/manifest_handlers/options_page_info.h', + 'common/manifest_handlers/permissions_parser.cc', + 'common/manifest_handlers/permissions_parser.h', + 'common/manifest_handlers/requirements_info.cc', + 'common/manifest_handlers/requirements_info.h', + 'common/manifest_handlers/sandboxed_page_info.cc', + 'common/manifest_handlers/sandboxed_page_info.h', + 'common/manifest_handlers/shared_module_info.cc', + 'common/manifest_handlers/shared_module_info.h', + 'common/manifest_handlers/web_accessible_resources_info.cc', + 'common/manifest_handlers/web_accessible_resources_info.h', + 'common/manifest_handlers/webview_info.cc', + 'common/manifest_handlers/webview_info.h', + 'common/manifest_url_handlers.cc', + 'common/manifest_url_handlers.h', + 'common/message_bundle.cc', + 'common/message_bundle.h', + 'common/one_shot_event.cc', + 'common/one_shot_event.h', + 'common/permissions/api_permission.cc', + 'common/permissions/api_permission.h', + 'common/permissions/api_permission_set.cc', + 'common/permissions/api_permission_set.h', + 'common/permissions/base_set_operators.h', + 'common/permissions/coalesced_permission_message.cc', + 'common/permissions/coalesced_permission_message.h', + 'common/permissions/extensions_api_permissions.cc', + 'common/permissions/extensions_api_permissions.h', + 'common/permissions/manifest_permission.cc', + 'common/permissions/manifest_permission.h', + 'common/permissions/manifest_permission_set.cc', + 'common/permissions/manifest_permission_set.h', + 'common/permissions/media_galleries_permission.cc', + 'common/permissions/media_galleries_permission.h', + 'common/permissions/media_galleries_permission_data.cc', + 'common/permissions/media_galleries_permission_data.h', + 'common/permissions/permission_message.cc', + 'common/permissions/permission_message.h', + 'common/permissions/permission_message_provider.cc', + 'common/permissions/permission_message_provider.h', + 'common/permissions/permission_message_util.cc', + 'common/permissions/permission_message_util.h', + 'common/permissions/permission_set.cc', + 'common/permissions/permission_set.h', + 'common/permissions/permissions_data.cc', + 'common/permissions/permissions_data.h', + 'common/permissions/permissions_info.cc', + 'common/permissions/permissions_info.h', + 'common/permissions/permissions_provider.h', + 'common/permissions/set_disjunction_permission.h', + 'common/permissions/settings_override_permission.cc', + 'common/permissions/settings_override_permission.h', + 'common/permissions/socket_permission.cc', + 'common/permissions/socket_permission.h', + 'common/permissions/socket_permission_data.cc', + 'common/permissions/socket_permission_data.h', + 'common/permissions/socket_permission_entry.cc', + 'common/permissions/socket_permission_entry.h', + 'common/permissions/usb_device_permission.cc', + 'common/permissions/usb_device_permission.h', + 'common/permissions/usb_device_permission_data.cc', + 'common/permissions/usb_device_permission_data.h', + 'common/stack_frame.cc', + 'common/stack_frame.h', + 'common/switches.cc', + 'common/switches.h', + 'common/update_manifest.cc', + 'common/update_manifest.h', + 'common/url_pattern.cc', + 'common/url_pattern.h', + 'common/url_pattern_set.cc', + 'common/url_pattern_set.h', + 'common/user_script.cc', + 'common/user_script.h', + 'common/value_counter.cc', + 'common/value_counter.h', + 'common/view_type.cc', + 'common/view_type.h', + ], + 'extensions_common_sources_nacl': [ + 'common/manifest_handlers/nacl_modules_handler.cc', + 'common/manifest_handlers/nacl_modules_handler.h', + ], + 'extensions_common_sources_openssl': [ + 'common/cast/cast_cert_validator_openssl.cc', + ], + 'extensions_common_sources_nonopenssl': [ + 'common/cast/cast_cert_validator_nss.cc', + ], + 'extensions_browser_sources': [ + # NOTE: When moving an API out of Chrome be sure to verify that the + # Android build still compiles. See conditions below. + 'browser/api/activity_log/web_request_constants.cc', + 'browser/api/activity_log/web_request_constants.h', + 'browser/api/alarms/alarms_api.cc', + 'browser/api/alarms/alarms_api.h', + 'browser/api/alarms/alarm_manager.cc', + 'browser/api/alarms/alarm_manager.h', + 'browser/api/api_resource.cc', + 'browser/api/api_resource.h', + 'browser/api/api_resource_manager.h', + 'browser/api/app_current_window_internal/app_current_window_internal_api.cc', + 'browser/api/app_current_window_internal/app_current_window_internal_api.h', + 'browser/api/app_runtime/app_runtime_api.cc', + 'browser/api/app_runtime/app_runtime_api.h', + 'browser/api/app_view/app_view_guest_internal_api.cc', + 'browser/api/app_view/app_view_guest_internal_api.h', + 'browser/api/app_window/app_window_api.cc', + 'browser/api/app_window/app_window_api.h', + 'browser/api/async_api_function.cc', + 'browser/api/async_api_function.h', + 'browser/api/audio/audio_api.cc', + 'browser/api/audio/audio_api.h', + 'browser/api/audio/audio_service.h', + 'browser/api/bluetooth/bluetooth_api.cc', + 'browser/api/bluetooth/bluetooth_api.h', + 'browser/api/bluetooth/bluetooth_api_pairing_delegate.cc', + 'browser/api/bluetooth/bluetooth_api_pairing_delegate.h', + 'browser/api/bluetooth/bluetooth_api_utils.cc', + 'browser/api/bluetooth/bluetooth_api_utils.h', + 'browser/api/bluetooth/bluetooth_event_router.cc', + 'browser/api/bluetooth/bluetooth_event_router.h', + 'browser/api/bluetooth/bluetooth_extension_function.cc', + 'browser/api/bluetooth/bluetooth_extension_function.h', + 'browser/api/bluetooth/bluetooth_private_api.cc', + 'browser/api/bluetooth/bluetooth_private_api.h', + 'browser/api/bluetooth_low_energy/bluetooth_low_energy_api.cc', + 'browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h', + 'browser/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc', + 'browser/api/bluetooth_low_energy/bluetooth_low_energy_connection.h', + 'browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc', + 'browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h', + 'browser/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.cc', + 'browser/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h', + 'browser/api/bluetooth_low_energy/utils.cc', + 'browser/api/bluetooth_low_energy/utils.h', + 'browser/api/bluetooth_socket/bluetooth_api_socket.cc', + 'browser/api/bluetooth_socket/bluetooth_api_socket.h', + 'browser/api/bluetooth_socket/bluetooth_socket_api.cc', + 'browser/api/bluetooth_socket/bluetooth_socket_api.h', + 'browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc', + 'browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.h', + 'browser/api/capture_web_contents_function.cc', + 'browser/api/capture_web_contents_function.h', + 'browser/api/cast_channel/cast_auth_ica.cc', + 'browser/api/cast_channel/cast_auth_ica.h', + 'browser/api/cast_channel/cast_auth_util.cc', + 'browser/api/cast_channel/cast_auth_util.h', + 'browser/api/cast_channel/cast_channel_api.cc', + 'browser/api/cast_channel/cast_channel_api.h', + 'browser/api/cast_channel/cast_framer.cc', + 'browser/api/cast_channel/cast_framer.h', + 'browser/api/cast_channel/cast_message_util.cc', + 'browser/api/cast_channel/cast_message_util.h', + 'browser/api/cast_channel/cast_socket.cc', + 'browser/api/cast_channel/cast_socket.h', + 'browser/api/cast_channel/cast_transport.h', + 'browser/api/cast_channel/cast_transport.cc', + 'browser/api/cast_channel/keep_alive_delegate.cc', + 'browser/api/cast_channel/keep_alive_delegate.h', + 'browser/api/cast_channel/logger.cc', + 'browser/api/cast_channel/logger.h', + 'browser/api/cast_channel/logger_util.cc', + 'browser/api/cast_channel/logger_util.h', + 'browser/api/declarative/deduping_factory.h', + 'browser/api/declarative/declarative_api.cc', + 'browser/api/declarative/declarative_api.h', + 'browser/api/declarative/declarative_rule.h', + 'browser/api/declarative/rules_cache_delegate.cc', + 'browser/api/declarative/rules_cache_delegate.h', + 'browser/api/declarative/rules_registry.cc', + 'browser/api/declarative/rules_registry.h', + 'browser/api/declarative/rules_registry_service.cc', + 'browser/api/declarative/rules_registry_service.h', + 'browser/api/declarative/test_rules_registry.cc', + 'browser/api/declarative/test_rules_registry.h', + 'browser/api/declarative_content/content_rules_registry.h', + 'browser/api/declarative_webrequest/request_stage.cc', + 'browser/api/declarative_webrequest/request_stage.h', + 'browser/api/declarative_webrequest/webrequest_action.cc', + 'browser/api/declarative_webrequest/webrequest_action.h', + 'browser/api/declarative_webrequest/webrequest_condition.cc', + 'browser/api/declarative_webrequest/webrequest_condition.h', + 'browser/api/declarative_webrequest/webrequest_condition_attribute.cc', + 'browser/api/declarative_webrequest/webrequest_condition_attribute.h', + 'browser/api/declarative_webrequest/webrequest_constants.cc', + 'browser/api/declarative_webrequest/webrequest_constants.h', + 'browser/api/declarative_webrequest/webrequest_rules_registry.cc', + 'browser/api/declarative_webrequest/webrequest_rules_registry.h', + 'browser/api/device_permissions_manager.cc', + 'browser/api/device_permissions_manager.h', + 'browser/api/device_permissions_prompt.cc', + 'browser/api/device_permissions_prompt.h', + 'browser/api/dns/dns_api.cc', + 'browser/api/dns/dns_api.h', + 'browser/api/dns/host_resolver_wrapper.cc', + 'browser/api/dns/host_resolver_wrapper.h', + 'browser/api/document_scan/document_scan_api.cc', + 'browser/api/document_scan/document_scan_api.h', + 'browser/api/document_scan/document_scan_interface.cc', + 'browser/api/document_scan/document_scan_interface.h', + 'browser/api/document_scan/document_scan_interface_chromeos.cc', + 'browser/api/execute_code_function.cc', + 'browser/api/execute_code_function.h', + 'browser/api/extension_view/extension_view_internal_api.cc', + 'browser/api/extension_view/extension_view_internal_api.h', + 'browser/api/extensions_api_client.cc', + 'browser/api/extensions_api_client.h', + 'browser/api/guest_view/guest_view_internal_api.cc', + 'browser/api/guest_view/guest_view_internal_api.h', + 'browser/api/hid/hid_api.cc', + 'browser/api/hid/hid_api.h', + 'browser/api/hid/hid_connection_resource.cc', + 'browser/api/hid/hid_connection_resource.h', + 'browser/api/hid/hid_device_manager.cc', + 'browser/api/hid/hid_device_manager.h', + 'browser/api/idle/idle_api.cc', + 'browser/api/idle/idle_api.h', + 'browser/api/idle/idle_api_constants.cc', + 'browser/api/idle/idle_api_constants.h', + 'browser/api/idle/idle_manager.cc', + 'browser/api/idle/idle_manager.h', + 'browser/api/idle/idle_manager_factory.cc', + 'browser/api/idle/idle_manager_factory.h', + 'browser/api/management/management_api.cc', + 'browser/api/management/management_api.h', + 'browser/api/management/management_api_delegate.h', + 'browser/api/management/management_api_constants.cc', + 'browser/api/management/management_api_constants.h', + 'browser/api/messaging/native_message_host.cc', + 'browser/api/mime_handler_private/mime_handler_private.cc', + 'browser/api/mime_handler_private/mime_handler_private.h', + 'browser/api/networking_private/networking_private_api.cc', + 'browser/api/networking_private/networking_private_api.h', + 'browser/api/networking_private/networking_private_chromeos.cc', + 'browser/api/networking_private/networking_private_chromeos.h', + 'browser/api/networking_private/networking_private_delegate.cc', + 'browser/api/networking_private/networking_private_delegate.h', + 'browser/api/networking_private/networking_private_delegate_factory.cc', + 'browser/api/networking_private/networking_private_delegate_factory.h', + 'browser/api/networking_private/networking_private_delegate_observer.h', + 'browser/api/networking_private/networking_private_event_router.h', + 'browser/api/networking_private/networking_private_event_router_chromeos.cc', + 'browser/api/networking_private/networking_private_event_router_factory.cc', + 'browser/api/networking_private/networking_private_event_router_factory.h', + 'browser/api/power/power_api.cc', + 'browser/api/power/power_api.h', + 'browser/api/power/power_api_manager.cc', + 'browser/api/power/power_api_manager.h', + 'browser/api/printer_provider/printer_provider_api.cc', + 'browser/api/printer_provider/printer_provider_api.h', + 'browser/api/printer_provider_internal/printer_provider_internal_api.cc', + 'browser/api/printer_provider_internal/printer_provider_internal_api.h', + 'browser/api/printer_provider_internal/printer_provider_internal_api_observer.h', + 'browser/api/runtime/runtime_api.cc', + 'browser/api/runtime/runtime_api.h', + 'browser/api/runtime/runtime_api_delegate.cc', + 'browser/api/runtime/runtime_api_delegate.h', + 'browser/api/serial/serial_api.cc', + 'browser/api/serial/serial_api.h', + 'browser/api/serial/serial_connection.cc', + 'browser/api/serial/serial_connection.h', + 'browser/api/serial/serial_event_dispatcher.cc', + 'browser/api/serial/serial_event_dispatcher.h', + 'browser/api/socket/socket.cc', + 'browser/api/socket/socket.h', + 'browser/api/socket/socket_api.cc', + 'browser/api/socket/socket_api.h', + 'browser/api/socket/tcp_socket.cc', + 'browser/api/socket/tcp_socket.h', + 'browser/api/socket/tls_socket.cc', + 'browser/api/socket/tls_socket.h', + 'browser/api/socket/udp_socket.cc', + 'browser/api/socket/udp_socket.h', + 'browser/api/sockets_tcp/sockets_tcp_api.cc', + 'browser/api/sockets_tcp/sockets_tcp_api.h', + 'browser/api/sockets_tcp/tcp_socket_event_dispatcher.cc', + 'browser/api/sockets_tcp/tcp_socket_event_dispatcher.h', + 'browser/api/sockets_tcp_server/sockets_tcp_server_api.cc', + 'browser/api/sockets_tcp_server/sockets_tcp_server_api.h', + 'browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc', + 'browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h', + 'browser/api/sockets_udp/sockets_udp_api.cc', + 'browser/api/sockets_udp/sockets_udp_api.h', + 'browser/api/sockets_udp/udp_socket_event_dispatcher.cc', + 'browser/api/sockets_udp/udp_socket_event_dispatcher.h', + 'browser/api/storage/leveldb_settings_storage_factory.cc', + 'browser/api/storage/leveldb_settings_storage_factory.h', + 'browser/api/storage/local_value_store_cache.cc', + 'browser/api/storage/local_value_store_cache.h', + 'browser/api/storage/settings_namespace.cc', + 'browser/api/storage/settings_namespace.h', + 'browser/api/storage/settings_observer.h', + 'browser/api/storage/settings_storage_factory.h', + 'browser/api/storage/settings_storage_quota_enforcer.cc', + 'browser/api/storage/settings_storage_quota_enforcer.h', + 'browser/api/storage/storage_api.cc', + 'browser/api/storage/storage_api.h', + 'browser/api/storage/storage_frontend.cc', + 'browser/api/storage/storage_frontend.h', + 'browser/api/storage/value_store_cache.cc', + 'browser/api/storage/value_store_cache.h', + 'browser/api/storage/weak_unlimited_settings_storage.cc', + 'browser/api/storage/weak_unlimited_settings_storage.h', + 'browser/api/system_cpu/cpu_info_provider.cc', + 'browser/api/system_cpu/cpu_info_provider.h', + 'browser/api/system_cpu/cpu_info_provider_linux.cc', + 'browser/api/system_cpu/cpu_info_provider_mac.cc', + 'browser/api/system_cpu/cpu_info_provider_win.cc', + 'browser/api/system_cpu/system_cpu_api.cc', + 'browser/api/system_cpu/system_cpu_api.h', + 'browser/api/system_display/display_info_provider.cc', + 'browser/api/system_display/display_info_provider.h', + 'browser/api/system_display/system_display_api.cc', + 'browser/api/system_display/system_display_api.h', + 'browser/api/system_info/system_info_api.cc', + 'browser/api/system_info/system_info_api.h', + 'browser/api/system_info/system_info_provider.cc', + 'browser/api/system_info/system_info_provider.h', + 'browser/api/system_memory/memory_info_provider.cc', + 'browser/api/system_memory/memory_info_provider.h', + 'browser/api/system_memory/system_memory_api.cc', + 'browser/api/system_memory/system_memory_api.h', + 'browser/api/system_network/system_network_api.cc', + 'browser/api/system_network/system_network_api.h', + 'browser/api/system_storage/storage_info_provider.cc', + 'browser/api/system_storage/storage_info_provider.h', + 'browser/api/system_storage/system_storage_api.cc', + 'browser/api/system_storage/system_storage_api.h', + 'browser/api/test/test_api.cc', + 'browser/api/test/test_api.h', + 'browser/api/usb/usb_api.cc', + 'browser/api/usb/usb_api.h', + 'browser/api/usb/usb_event_router.cc', + 'browser/api/usb/usb_event_router.h', + 'browser/api/usb/usb_device_resource.cc', + 'browser/api/usb/usb_device_resource.h', + 'browser/api/virtual_keyboard_private/virtual_keyboard_private_api.cc', + 'browser/api/virtual_keyboard_private/virtual_keyboard_private_api.h', + 'browser/api/virtual_keyboard_private/virtual_keyboard_delegate.h', + 'browser/api/web_request/form_data_parser.cc', + 'browser/api/web_request/form_data_parser.h', + 'browser/api/web_request/upload_data_presenter.cc', + 'browser/api/web_request/upload_data_presenter.h', + 'browser/api/web_request/web_request_api.cc', + 'browser/api/web_request/web_request_api.h', + 'browser/api/web_request/web_request_api_constants.cc', + 'browser/api/web_request/web_request_api_constants.h', + 'browser/api/web_request/web_request_api_helpers.cc', + 'browser/api/web_request/web_request_api_helpers.h', + 'browser/api/web_request/web_request_event_router_delegate.cc', + 'browser/api/web_request/web_request_event_router_delegate.h', + 'browser/api/web_request/web_request_permissions.cc', + 'browser/api/web_request/web_request_permissions.h', + 'browser/api/web_request/web_request_time_tracker.cc', + 'browser/api/web_request/web_request_time_tracker.h', + 'browser/api/web_view/web_view_internal_api.cc', + 'browser/api/web_view/web_view_internal_api.h', + 'browser/api/webcam_private/webcam_private_api.h', + 'browser/api/webcam_private/webcam_private_api_chromeos.cc', + 'browser/api_activity_monitor.h', + 'browser/app_sorting.h', + 'browser/app_window/app_delegate.h', + 'browser/app_window/app_web_contents_helper.cc', + 'browser/app_window/app_web_contents_helper.h', + 'browser/app_window/app_window.cc', + 'browser/app_window/app_window.h', + 'browser/app_window/app_window_contents.cc', + 'browser/app_window/app_window_contents.h', + 'browser/app_window/app_window_geometry_cache.cc', + 'browser/app_window/app_window_geometry_cache.h', + 'browser/app_window/app_window_registry.cc', + 'browser/app_window/app_window_registry.h', + 'browser/app_window/app_window_client.cc', + 'browser/app_window/app_window_client.h', + 'browser/app_window/native_app_window.h', + 'browser/app_window/size_constraints.cc', + 'browser/app_window/size_constraints.h', + 'browser/blacklist_state.h', + 'browser/blob_holder.cc', + 'browser/blob_holder.h', + 'browser/browser_context_keyed_api_factory.h', + 'browser/browser_context_keyed_service_factories.cc', + 'browser/browser_context_keyed_service_factories.h', + 'browser/component_extension_resource_manager.h', + 'browser/computed_hashes.cc', + 'browser/computed_hashes.h', + 'browser/content_hash_fetcher.cc', + 'browser/content_hash_fetcher.h', + 'browser/content_hash_reader.cc', + 'browser/content_hash_reader.h', + 'browser/content_hash_tree.cc', + 'browser/content_hash_tree.h', + 'browser/content_verifier.cc', + 'browser/content_verifier.h', + 'browser/content_verifier_delegate.h', + 'browser/content_verifier_io_data.cc', + 'browser/content_verifier_io_data.h', + 'browser/content_verify_job.cc', + 'browser/content_verify_job.h', + 'browser/crx_file_info.cc', + 'browser/crx_file_info.h', + 'browser/error_map.cc', + 'browser/error_map.h', + 'browser/event_listener_map.cc', + 'browser/event_listener_map.h', + 'browser/event_router.cc', + 'browser/event_router.h', + 'browser/extension_host.cc', + 'browser/extension_host.h', + 'browser/extension_host_delegate.h', + 'browser/extension_host_observer.h', + 'browser/extension_error.cc', + 'browser/extension_error.h', + 'browser/extension_function.cc', + 'browser/extension_function.h', + 'browser/extension_function_dispatcher.cc', + 'browser/extension_function_dispatcher.h', + 'browser/extension_function_registry.cc', + 'browser/extension_function_registry.h', + 'browser/extension_function_util.cc', + 'browser/extension_function_util.h', + 'browser/extension_icon_image.cc', + 'browser/extension_icon_image.h', + 'browser/extension_message_filter.cc', + 'browser/extension_message_filter.h', + 'browser/extension_pref_store.cc', + 'browser/extension_pref_store.h', + 'browser/extension_pref_value_map.cc', + 'browser/extension_pref_value_map_factory.cc', + 'browser/extension_pref_value_map_factory.h', + 'browser/extension_pref_value_map.h', + 'browser/extension_prefs.cc', + 'browser/extension_prefs.h', + 'browser/extension_prefs_factory.cc', + 'browser/extension_prefs_factory.h', + 'browser/extension_prefs_observer.h', + 'browser/extension_prefs_scope.h', + 'browser/extension_protocols.cc', + 'browser/extension_protocols.h', + 'browser/extension_registry.cc', + 'browser/extension_registry.h', + 'browser/extension_registry_factory.cc', + 'browser/extension_registry_factory.h', + 'browser/extension_registry_observer.h', + 'browser/extension_scoped_prefs.h', + 'browser/extension_system.cc', + 'browser/extension_system.h', + 'browser/extension_system_provider.cc', + 'browser/extension_system_provider.h', + 'browser/extension_util.cc', + 'browser/extension_util.h', + 'browser/extension_web_contents_observer.cc', + 'browser/extension_web_contents_observer.h', + 'browser/extension_zoom_request_client.cc', + 'browser/extension_zoom_request_client.h', + 'browser/extensions_browser_client.cc', + 'browser/extensions_browser_client.h', + 'browser/external_provider_interface.h', + 'browser/file_highlighter.cc', + 'browser/file_highlighter.h', + 'browser/file_reader.cc', + 'browser/file_reader.h', + 'browser/granted_file_entry.cc', + 'browser/granted_file_entry.h', + 'browser/guest_view/app_view/app_view_constants.cc', + 'browser/guest_view/app_view/app_view_constants.h', + 'browser/guest_view/app_view/app_view_guest.cc', + 'browser/guest_view/app_view/app_view_guest.h', + 'browser/guest_view/app_view/app_view_guest_delegate.cc', + 'browser/guest_view/app_view/app_view_guest_delegate.h', + 'browser/guest_view/extension_options/extension_options_constants.cc', + 'browser/guest_view/extension_options/extension_options_constants.h', + 'browser/guest_view/extension_options/extension_options_guest.cc', + 'browser/guest_view/extension_options/extension_options_guest.h', + 'browser/guest_view/extension_options/extension_options_guest_delegate.cc', + 'browser/guest_view/extension_options/extension_options_guest_delegate.h', + 'browser/guest_view/extension_view/extension_view_constants.cc', + 'browser/guest_view/extension_view/extension_view_constants.h', + 'browser/guest_view/extension_view/extension_view_guest.cc', + 'browser/guest_view/extension_view/extension_view_guest.h', + 'browser/guest_view/extension_view/extension_view_guest_delegate.cc', + 'browser/guest_view/extension_view/extension_view_guest_delegate.h', + 'browser/guest_view/guest_view_base.cc', + 'browser/guest_view/guest_view_base.h', + 'browser/guest_view/guest_view_manager_factory.h', + 'browser/guest_view/guest_view_manager.cc', + 'browser/guest_view/guest_view_manager.h', + 'browser/guest_view/guest_view_message_filter.cc', + 'browser/guest_view/guest_view_message_filter.h', + 'browser/guest_view/guest_view.h', + 'browser/guest_view/mime_handler_view/mime_handler_stream_manager.cc', + 'browser/guest_view/mime_handler_view/mime_handler_stream_manager.h', + 'browser/guest_view/mime_handler_view/mime_handler_view_constants.cc', + 'browser/guest_view/mime_handler_view/mime_handler_view_constants.h', + 'browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.cc', + 'browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h', + 'browser/guest_view/mime_handler_view/mime_handler_view_guest.cc', + 'browser/guest_view/mime_handler_view/mime_handler_view_guest.h', + 'browser/guest_view/surface_worker/surface_worker_constants.cc', + 'browser/guest_view/surface_worker/surface_worker_constants.h', + 'browser/guest_view/surface_worker/surface_worker_guest.cc', + 'browser/guest_view/surface_worker/surface_worker_guest.h', + 'browser/guest_view/web_view/javascript_dialog_helper.cc', + 'browser/guest_view/web_view/javascript_dialog_helper.h', + 'browser/guest_view/web_view/web_view_constants.cc', + 'browser/guest_view/web_view/web_view_constants.h', + 'browser/guest_view/web_view/web_view_find_helper.cc', + 'browser/guest_view/web_view/web_view_find_helper.h', + 'browser/guest_view/web_view/web_view_guest.cc', + 'browser/guest_view/web_view/web_view_guest.h', + 'browser/guest_view/web_view/web_view_guest_delegate.h', + 'browser/guest_view/web_view/web_view_permission_types.h', + 'browser/guest_view/web_view/web_view_permission_helper.cc', + 'browser/guest_view/web_view/web_view_permission_helper.h', + 'browser/guest_view/web_view/web_view_permission_helper_delegate.cc', + 'browser/guest_view/web_view/web_view_permission_helper_delegate.h', + 'browser/guest_view/web_view/web_view_renderer_state.cc', + 'browser/guest_view/web_view/web_view_renderer_state.h', + 'browser/image_loader.cc', + 'browser/image_loader.h', + 'browser/image_loader_factory.cc', + 'browser/image_loader_factory.h', + 'browser/info_map.cc', + 'browser/info_map.h', + 'browser/install/crx_installer_error.h', + 'browser/install/extension_install_ui.cc', + 'browser/install/extension_install_ui.h', + 'browser/install_flag.h', + 'browser/io_thread_extension_message_filter.cc', + 'browser/io_thread_extension_message_filter.h', + 'browser/lazy_background_task_queue.cc', + 'browser/lazy_background_task_queue.h', + 'browser/management_policy.cc', + 'browser/management_policy.h', + 'browser/mojo/keep_alive_impl.cc', + 'browser/mojo/keep_alive_impl.h', + 'browser/mojo/service_registration_manager.cc', + 'browser/mojo/service_registration_manager.h', + 'browser/mojo/stash_backend.cc', + 'browser/mojo/stash_backend.h', + 'browser/notification_types.cc', + 'browser/notification_types.h', + 'browser/null_app_sorting.cc', + 'browser/null_app_sorting.h', + 'browser/pref_names.cc', + 'browser/pref_names.h', + 'browser/process_manager.cc', + 'browser/process_manager.h', + 'browser/process_manager_delegate.h', + 'browser/process_manager_factory.cc', + 'browser/process_manager_factory.h', + 'browser/process_manager_observer.h', + 'browser/process_map.cc', + 'browser/process_map.h', + 'browser/process_map_factory.cc', + 'browser/process_map_factory.h', + 'browser/quota_service.cc', + 'browser/quota_service.h', + 'browser/renderer_startup_helper.cc', + 'browser/renderer_startup_helper.h', + 'browser/runtime_data.cc', + 'browser/runtime_data.h', + 'browser/sandboxed_unpacker.cc', + 'browser/sandboxed_unpacker.h', + 'browser/script_execution_observer.h', + 'browser/script_executor.cc', + 'browser/script_executor.h', + 'browser/state_store.cc', + 'browser/state_store.h', + 'browser/suggest_permission_util.cc', + 'browser/suggest_permission_util.h', + 'browser/uninstall_reason.h', + 'browser/update_observer.h', + 'browser/updater/extension_cache.h', + 'browser/updater/extension_downloader.cc', + 'browser/updater/extension_downloader.h', + 'browser/updater/extension_downloader_delegate.cc', + 'browser/updater/extension_downloader_delegate.h', + 'browser/updater/manifest_fetch_data.cc', + 'browser/updater/manifest_fetch_data.h', + 'browser/updater/null_extension_cache.cc', + 'browser/updater/null_extension_cache.h', + 'browser/updater/request_queue.h', + 'browser/updater/request_queue_impl.h', + 'browser/updater/safe_manifest_parser.cc', + 'browser/updater/safe_manifest_parser.h', + 'browser/updater/update_service.cc', + 'browser/updater/update_service.h', + 'browser/updater/update_service_factory.cc', + 'browser/updater/update_service_factory.h', + 'browser/url_request_util.cc', + 'browser/url_request_util.h', + 'browser/value_store/leveldb_value_store.cc', + 'browser/value_store/leveldb_value_store.h', + 'browser/value_store/testing_value_store.cc', + 'browser/value_store/testing_value_store.h', + 'browser/value_store/value_store.cc', + 'browser/value_store/value_store.h', + 'browser/value_store/value_store_change.cc', + 'browser/value_store/value_store_change.h', + 'browser/value_store/value_store_frontend.cc', + 'browser/value_store/value_store_frontend.h', + 'browser/value_store/value_store_util.cc', + 'browser/value_store/value_store_util.h', + 'browser/verified_contents.cc', + 'browser/verified_contents.h', + 'browser/view_type_utils.cc', + 'browser/view_type_utils.h', + 'browser/warning_service.cc', + 'browser/warning_service.h', + 'browser/warning_service_factory.cc', + 'browser/warning_service_factory.h', + 'browser/warning_set.cc', + 'browser/warning_set.h', + ], + 'extensions_browser_sources_chromeos': [ + 'browser/api/audio/audio_service_chromeos.cc', + 'browser/api/diagnostics/diagnostics_api.cc', + 'browser/api/diagnostics/diagnostics_api.h', + 'browser/api/diagnostics/diagnostics_api_chromeos.cc', + 'browser/api/networking_config/networking_config_api.cc', + 'browser/api/networking_config/networking_config_api.h', + 'browser/api/networking_config/networking_config_service.cc', + 'browser/api/networking_config/networking_config_service.h', + 'browser/api/networking_config/networking_config_service_factory.cc', + 'browser/api/networking_config/networking_config_service_factory.h', + 'browser/api/vpn_provider/vpn_provider_api.cc', + 'browser/api/vpn_provider/vpn_provider_api.h', + 'browser/api/vpn_provider/vpn_service.cc', + 'browser/api/vpn_provider/vpn_service.h', + 'browser/api/vpn_provider/vpn_service_factory.h', + ], + 'extensions_browser_sources_nonchromeos': [ + 'browser/api/document_scan/document_scan_interface_nonchromeos.cc', + ], + 'extensions_browser_sources_nonlinux': [ + 'browser/api/audio/audio_service.cc', + ], + 'extensions_browser_sources_win_or_mac': [ + 'browser/api/networking_private/networking_private_event_router_nonchromeos.cc', + 'browser/api/networking_private/networking_private_service_client.cc', + 'browser/api/networking_private/networking_private_service_client.h', + ], + 'extensions_browser_sources_linux_nonchromeos': [ + 'browser/api/audio/audio_service_linux.cc', + 'browser/api/networking_private/networking_private_event_router_nonchromeos.cc', + 'browser/api/networking_private/networking_private_linux.cc', + 'browser/api/networking_private/networking_private_linux.h', + 'browser/api/networking_private/network_config_dbus_constants_linux.cc', + 'browser/api/networking_private/network_config_dbus_constants_linux.h', + ], + 'extensions_renderer_sources': [ + 'renderer/activity_log_converter_strategy.cc', + 'renderer/activity_log_converter_strategy.h', + 'renderer/api/automation/automation_api_helper.cc', + 'renderer/api/automation/automation_api_helper.h', + 'renderer/api_activity_logger.cc', + 'renderer/api_activity_logger.h', + 'renderer/api_definitions_natives.cc', + 'renderer/api_definitions_natives.h', + 'renderer/app_runtime_custom_bindings.cc', + 'renderer/app_runtime_custom_bindings.h', + 'renderer/app_window_custom_bindings.cc', + 'renderer/app_window_custom_bindings.h', + 'renderer/binding_generating_native_handler.cc', + 'renderer/binding_generating_native_handler.h', + 'renderer/blob_native_handler.cc', + 'renderer/blob_native_handler.h', + 'renderer/console.cc', + 'renderer/console.h', + 'renderer/content_watcher.cc', + 'renderer/content_watcher.h', + 'renderer/context_menus_custom_bindings.cc', + 'renderer/context_menus_custom_bindings.h', + 'renderer/css_native_handler.cc', + 'renderer/css_native_handler.h', + 'renderer/default_dispatcher_delegate.cc', + 'renderer/default_dispatcher_delegate.h', + 'renderer/dispatcher.cc', + 'renderer/dispatcher.h', + 'renderer/dispatcher_delegate.h', + 'renderer/document_custom_bindings.cc', + 'renderer/document_custom_bindings.h', + 'renderer/dom_activity_logger.cc', + 'renderer/dom_activity_logger.h', + 'renderer/event_bindings.cc', + 'renderer/event_bindings.h', + 'renderer/extension_groups.h', + 'renderer/extension_helper.cc', + 'renderer/extension_helper.h', + 'renderer/extensions_render_frame_observer.cc', + 'renderer/extensions_render_frame_observer.h', + 'renderer/extensions_renderer_client.cc', + 'renderer/extensions_renderer_client.h', + 'renderer/file_system_natives.cc', + 'renderer/file_system_natives.h', + 'renderer/guest_view/extensions_guest_view_container.cc', + 'renderer/guest_view/extensions_guest_view_container.h', + 'renderer/guest_view/guest_view_container.cc', + 'renderer/guest_view/guest_view_container.h', + 'renderer/guest_view/guest_view_internal_custom_bindings.cc', + 'renderer/guest_view/guest_view_internal_custom_bindings.h', + 'renderer/guest_view/mime_handler_view/mime_handler_view_container.cc', + 'renderer/guest_view/mime_handler_view/mime_handler_view_container.h', + 'renderer/i18n_custom_bindings.cc', + 'renderer/i18n_custom_bindings.h', + 'renderer/id_generator_custom_bindings.cc', + 'renderer/id_generator_custom_bindings.h', + 'renderer/lazy_background_page_native_handler.cc', + 'renderer/lazy_background_page_native_handler.h', + 'renderer/logging_native_handler.cc', + 'renderer/logging_native_handler.h', + 'renderer/messaging_bindings.cc', + 'renderer/messaging_bindings.h', + 'renderer/module_system.cc', + 'renderer/module_system.h', + 'renderer/native_handler.cc', + 'renderer/native_handler.h', + 'renderer/object_backed_native_handler.cc', + 'renderer/object_backed_native_handler.h', + 'renderer/print_native_handler.cc', + 'renderer/print_native_handler.h', + 'renderer/process_info_native_handler.cc', + 'renderer/process_info_native_handler.h', + 'renderer/programmatic_script_injector.cc', + 'renderer/programmatic_script_injector.h', + 'renderer/render_view_observer_natives.cc', + 'renderer/request_sender.cc', + 'renderer/request_sender.h', + 'renderer/resource_bundle_source_map.cc', + 'renderer/resource_bundle_source_map.h', + 'renderer/resources/app_runtime_custom_bindings.js', + 'renderer/resources/app_window_custom_bindings.js', + 'renderer/resources/binding.js', + 'renderer/resources/context_menus_custom_bindings.js', + 'renderer/resources/declarative_webrequest_custom_bindings.js', + 'renderer/resources/entry_id_manager.js', + 'renderer/resources/event.js', + 'renderer/resources/extension.css', + 'renderer/resources/extension_custom_bindings.js', + 'renderer/resources/extension_fonts.css', + 'renderer/resources/greasemonkey_api.js', + 'renderer/resources/i18n_custom_bindings.js', + 'renderer/resources/image_util.js', + 'renderer/resources/json_schema.js', + 'renderer/resources/last_error.js', + 'renderer/resources/messaging.js', + 'renderer/resources/messaging_utils.js', + 'renderer/resources/permissions_custom_bindings.js', + 'renderer/resources/platform_app.css', + 'renderer/resources/platform_app.js', + 'renderer/resources/runtime_custom_bindings.js', + 'renderer/resources/schema_utils.js', + 'renderer/resources/send_request.js', + 'renderer/resources/set_icon.js', + 'renderer/resources/storage_area.js', + 'renderer/resources/test_custom_bindings.js', + 'renderer/resources/uncaught_exception_handler.js', + 'renderer/resources/unload_event.js', + 'renderer/resources/utils.js', + 'renderer/resources/extensions/extension_view.js', + 'renderer/resources/extensions/surface_worker.js', + 'renderer/resources/extensions/web_view.js', + 'renderer/resources/extensions/web_view_events.js', + 'renderer/resources/extensions/web_view_experimental.js', + 'renderer/resources/web_request_custom_bindings.js', + 'renderer/resources/web_request_internal_custom_bindings.js', + 'renderer/runtime_custom_bindings.cc', + 'renderer/runtime_custom_bindings.h', + 'renderer/safe_builtins.cc', + 'renderer/safe_builtins.h', + 'renderer/scoped_persistent.h', + 'renderer/script_context.cc', + 'renderer/script_context.h', + 'renderer/script_context_set.cc', + 'renderer/script_context_set.h', + 'renderer/script_injection.cc', + 'renderer/script_injection.h', + 'renderer/script_injection_manager.cc', + 'renderer/script_injection_manager.h', + 'renderer/script_injector.h', + 'renderer/scripts_run_info.cc', + 'renderer/scripts_run_info.h', + 'renderer/send_request_natives.cc', + 'renderer/send_request_natives.h', + 'renderer/set_icon_natives.cc', + 'renderer/set_icon_natives.h', + 'renderer/static_v8_external_one_byte_string_resource.cc', + 'renderer/static_v8_external_one_byte_string_resource.h', + 'renderer/tab_finder.cc', + 'renderer/tab_finder.h', + 'renderer/test_features_native_handler.cc', + 'renderer/test_features_native_handler.h', + 'renderer/user_gestures_native_handler.cc', + 'renderer/user_gestures_native_handler.h', + 'renderer/user_script_injector.cc', + 'renderer/user_script_injector.h', + 'renderer/user_script_set.cc', + 'renderer/user_script_set.h', + 'renderer/user_script_set_manager.cc', + 'renderer/user_script_set_manager.h', + 'renderer/utils_native_handler.cc', + 'renderer/utils_native_handler.h', + 'renderer/v8_context_native_handler.cc', + 'renderer/v8_context_native_handler.h', + 'renderer/v8_schema_registry.cc', + 'renderer/v8_schema_registry.h', + ], + 'extensions_utility_sources': [ + 'utility/unpacker.cc', + 'utility/unpacker.h', + 'utility/utility_handler.cc', + 'utility/utility_handler.h', + ], + 'extensions_test_support_sources': [ + 'browser/api/cast_channel/cast_test_util.cc', + 'browser/api/cast_channel/cast_test_util.h', + 'browser/api/dns/mock_host_resolver_creator.cc', + 'browser/api/dns/mock_host_resolver_creator.h', + 'browser/api/storage/settings_test_util.cc', + 'browser/api/storage/settings_test_util.h', + 'browser/api_test_utils.cc', + 'browser/api_test_utils.h', + 'browser/api_unittest.cc', + 'browser/api_unittest.h', + 'browser/app_window/test_app_window_contents.cc', + 'browser/app_window/test_app_window_contents.h', + 'browser/extension_error_test_util.cc', + 'browser/extension_error_test_util.h', + 'browser/extensions_test.cc', + 'browser/extensions_test.h', + 'browser/guest_view/test_guest_view_manager.cc', + 'browser/guest_view/test_guest_view_manager.h', + 'browser/mock_extension_system.cc', + 'browser/mock_extension_system.h', + 'browser/test_extension_registry_observer.cc', + 'browser/test_extension_registry_observer.h', + 'browser/test_extensions_browser_client.cc', + 'browser/test_extensions_browser_client.h', + 'browser/test_management_policy.cc', + 'browser/test_management_policy.h', + 'browser/test_runtime_api_delegate.cc', + 'browser/test_runtime_api_delegate.h', + 'common/extension_builder.cc', + 'common/extension_builder.h', + 'common/manifest_test.cc', + 'common/manifest_test.h', + 'common/test_util.cc', + 'common/test_util.h', + 'common/value_builder.cc', + 'common/value_builder.h', + 'renderer/test_extensions_renderer_client.cc', + 'renderer/test_extensions_renderer_client.h', + 'test/extension_test_message_listener.cc', + 'test/extension_test_message_listener.h', + 'test/result_catcher.cc', + 'test/result_catcher.h', + 'test/test_content_utility_client.cc', + 'test/test_content_utility_client.h', + 'test/test_extensions_client.cc', + 'test/test_extensions_client.h', + 'test/test_permission_message_provider.cc', + 'test/test_permission_message_provider.h', + 'test/test_service_registration_manager.cc', + 'test/test_service_registration_manager.h', + ], + }, +} diff --git a/extensions/extensions_tests.gyp b/extensions/extensions_tests.gyp index 7c5e020..e68f274 100644 --- a/extensions/extensions_tests.gyp +++ b/extensions/extensions_tests.gyp @@ -1,4 +1,7 @@ { + 'includes': [ + 'extensions_tests.gypi', + ], 'variables': { # Product name is used for Mac bundle. 'app_shell_product_name': 'App Shell', @@ -43,118 +46,7 @@ '..', ], 'sources': [ - 'browser/api/alarms/alarms_api_unittest.cc', - 'browser/api/api_resource_manager_unittest.cc', - 'browser/api/bluetooth/bluetooth_event_router_unittest.cc', - 'browser/api/cast_channel/cast_auth_ica_unittest.cc', - 'browser/api/cast_channel/cast_auth_util_unittest.cc', - 'browser/api/cast_channel/cast_channel_api_unittest.cc', - 'browser/api/cast_channel/cast_framer_unittest.cc', - 'browser/api/cast_channel/cast_socket_unittest.cc', - 'browser/api/cast_channel/cast_transport_unittest.cc', - 'browser/api/cast_channel/keep_alive_delegate_unittest.cc', - 'browser/api/cast_channel/logger_unittest.cc', - 'browser/api/declarative/declarative_rule_unittest.cc', - 'browser/api/declarative/deduping_factory_unittest.cc', - 'browser/api/declarative/rules_registry_unittest.cc', - 'browser/api/declarative_webrequest/webrequest_condition_unittest.cc', - 'browser/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc', - 'browser/api/document_scan/document_scan_api_unittest.cc', - 'browser/api/document_scan/document_scan_interface_chromeos_unittest.cc', - 'browser/api/document_scan/mock_document_scan_interface.cc', - 'browser/api/idle/idle_api_unittest.cc', - 'browser/api/mime_handler_private/mime_handler_private_unittest.cc', - 'browser/api/networking_config/networking_config_service_chromeos_unittest.cc', - 'browser/api/power/power_api_unittest.cc', - 'browser/api/sockets_tcp/sockets_tcp_api_unittest.cc', - 'browser/api/sockets_udp/sockets_udp_api_unittest.cc', - 'browser/api/storage/settings_quota_unittest.cc', - 'browser/api/storage/storage_api_unittest.cc', - 'browser/api/storage/storage_frontend_unittest.cc', - 'browser/api/web_request/form_data_parser_unittest.cc', - 'browser/api/web_request/upload_data_presenter_unittest.cc', - 'browser/api/web_request/web_request_time_tracker_unittest.cc', - 'browser/app_window/app_window_geometry_cache_unittest.cc', - 'browser/computed_hashes_unittest.cc', - 'browser/content_hash_tree_unittest.cc', - 'browser/event_listener_map_unittest.cc', - 'browser/event_router_unittest.cc', - 'browser/error_map_unittest.cc', - 'browser/extension_icon_image_unittest.cc', - 'browser/extension_pref_value_map_unittest.cc', - 'browser/extension_registry_unittest.cc', - 'browser/file_highlighter_unittest.cc', - 'browser/file_reader_unittest.cc', - 'browser/guest_view/guest_view_manager_unittest.cc', - 'browser/image_loader_unittest.cc', - 'browser/info_map_unittest.cc', - 'browser/lazy_background_task_queue_unittest.cc', - 'browser/management_policy_unittest.cc', - 'browser/mojo/keep_alive_impl_unittest.cc', - 'browser/mojo/stash_backend_unittest.cc', - 'browser/process_manager_unittest.cc', - 'browser/process_map_unittest.cc', - 'browser/quota_service_unittest.cc', - 'browser/runtime_data_unittest.cc', - 'browser/sandboxed_unpacker_unittest.cc', - 'browser/value_store/leveldb_value_store_unittest.cc', - 'browser/value_store/testing_value_store_unittest.cc', - 'browser/value_store/value_store_change_unittest.cc', - 'browser/value_store/value_store_frontend_unittest.cc', - 'browser/value_store/value_store_unittest.cc', - 'browser/value_store/value_store_unittest.h', - 'browser/verified_contents_unittest.cc', - 'browser/warning_service_unittest.cc', - 'common/api/sockets/sockets_manifest_permission_unittest.cc', - 'common/csp_validator_unittest.cc', - 'common/event_filter_unittest.cc', - 'common/extension_l10n_util_unittest.cc', - 'common/extension_resource_unittest.cc', - 'common/extension_set_unittest.cc', - 'common/features/base_feature_provider_unittest.cc', - 'common/features/complex_feature_unittest.cc', - 'common/features/simple_feature_unittest.cc', - 'common/file_util_unittest.cc', - 'common/image_util_unittest.cc', - 'common/manifest_handler_unittest.cc', - 'common/manifest_handlers/content_capabilities_manifest_unittest.cc', - 'common/manifest_handlers/default_locale_manifest_unittest.cc', - 'common/manifest_handlers/externally_connectable_unittest.cc', - 'common/manifest_handlers/file_handler_manifest_unittest.cc', - 'common/manifest_handlers/oauth2_manifest_unittest.cc', - 'common/manifest_handlers/shared_module_manifest_unittest.cc', - 'common/message_bundle_unittest.cc', - 'common/one_shot_event_unittest.cc', - 'common/permissions/api_permission_set_unittest.cc', - 'common/permissions/manifest_permission_set_unittest.cc', - 'common/permissions/socket_permission_unittest.cc', - 'common/permissions/usb_device_permission_unittest.cc', - 'common/stack_frame_unittest.cc', - 'common/url_pattern_set_unittest.cc', - 'common/url_pattern_unittest.cc', - 'common/user_script_unittest.cc', - 'renderer/activity_log_converter_strategy_unittest.cc', - 'renderer/api/mojo_private/mojo_private_unittest.cc', - 'renderer/api/serial/data_receiver_unittest.cc', - 'renderer/api/serial/data_sender_unittest.cc', - 'renderer/api/serial/serial_api_unittest.cc', - 'renderer/api_test_base.cc', - 'renderer/api_test_base.h', - 'renderer/api_test_base_unittest.cc', - 'renderer/event_unittest.cc', - 'renderer/json_schema_unittest.cc', - 'renderer/mojo/keep_alive_client_unittest.cc', - 'renderer/messaging_utils_unittest.cc', - 'renderer/module_system_test.cc', - 'renderer/module_system_test.h', - 'renderer/module_system_unittest.cc', - 'renderer/safe_builtins_unittest.cc', - 'renderer/script_context_set_unittest.cc', - 'renderer/script_context_unittest.cc', - 'renderer/mojo/stash_client_unittest.cc', - 'renderer/utils_unittest.cc', - 'test/extensions_unittests_main.cc', - 'utility/unpacker_unittest.cc', + '<@(extensions_unittests_sources)', ], # Disable c4267 warnings until we fix size_t to int truncations. 'msvs_disabled_warnings': [ 4267, ], @@ -191,38 +83,7 @@ 'HAS_OUT_OF_PROC_TEST_RUNNER', ], 'sources': [ - 'browser/api/audio/audio_apitest.cc', - 'browser/api/bluetooth_socket/bluetooth_socket_apitest.cc', - 'browser/api/dns/dns_apitest.cc', - 'browser/api/hid/hid_apitest.cc', - 'browser/api/printer_provider/printer_provider_apitest.cc', - 'browser/api/socket/socket_apitest.cc', - 'browser/api/sockets_tcp/sockets_tcp_apitest.cc', - 'browser/api/sockets_tcp_server/sockets_tcp_server_apitest.cc', - 'browser/api/sockets_udp/sockets_udp_apitest.cc', - 'browser/api/system_cpu/system_cpu_apitest.cc', - 'browser/api/system_display/system_display_apitest.cc', - 'browser/api/system_memory/system_memory_apitest.cc', - 'browser/api/system_network/system_network_apitest.cc', - 'browser/api/system_storage/storage_api_test_util.cc', - 'browser/api/system_storage/storage_api_test_util.h', - 'browser/api/system_storage/system_storage_apitest.cc', - 'browser/api/system_storage/system_storage_eject_apitest.cc', - 'browser/api/usb/usb_apitest.cc', - 'browser/guest_view/app_view/app_view_apitest.cc', - 'browser/guest_view/web_view/web_view_apitest.h', - 'browser/guest_view/web_view/web_view_apitest.cc', - 'browser/guest_view/web_view/web_view_media_access_apitest.cc', - 'browser/updater/update_service_browsertest.cc', - 'shell/browser/geolocation/geolocation_apitest.cc', - 'shell/browser/shell_browsertest.cc', - 'shell/test/shell_apitest.cc', - 'shell/test/shell_apitest.h', - 'shell/test/shell_test.cc', - 'shell/test/shell_test.h', - 'shell/test/shell_test_launcher_delegate.cc', - 'shell/test/shell_test_launcher_delegate.h', - 'shell/test/shell_tests_main.cc', + '<@(extensions_browsertests_sources)', ], 'conditions': [ ['OS=="win" and win_use_allocator_shim==1', { diff --git a/extensions/extensions_tests.gypi b/extensions/extensions_tests.gypi new file mode 100644 index 0000000..a0e9fd6 --- /dev/null +++ b/extensions/extensions_tests.gypi @@ -0,0 +1,156 @@ +# Copyright 2015 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. + +{ + 'variables': { + 'extensions_browsertests_sources': [ + 'browser/api/audio/audio_apitest.cc', + 'browser/api/bluetooth_socket/bluetooth_socket_apitest.cc', + 'browser/api/dns/dns_apitest.cc', + 'browser/api/hid/hid_apitest.cc', + 'browser/api/printer_provider/printer_provider_apitest.cc', + 'browser/api/socket/socket_apitest.cc', + 'browser/api/sockets_tcp/sockets_tcp_apitest.cc', + 'browser/api/sockets_tcp_server/sockets_tcp_server_apitest.cc', + 'browser/api/sockets_udp/sockets_udp_apitest.cc', + 'browser/api/system_cpu/system_cpu_apitest.cc', + 'browser/api/system_display/system_display_apitest.cc', + 'browser/api/system_memory/system_memory_apitest.cc', + 'browser/api/system_network/system_network_apitest.cc', + 'browser/api/system_storage/storage_api_test_util.cc', + 'browser/api/system_storage/storage_api_test_util.h', + 'browser/api/system_storage/system_storage_apitest.cc', + 'browser/api/system_storage/system_storage_eject_apitest.cc', + 'browser/api/usb/usb_apitest.cc', + 'browser/guest_view/app_view/app_view_apitest.cc', + 'browser/guest_view/web_view/web_view_apitest.h', + 'browser/guest_view/web_view/web_view_apitest.cc', + 'browser/guest_view/web_view/web_view_media_access_apitest.cc', + 'browser/updater/update_service_browsertest.cc', + 'shell/browser/geolocation/geolocation_apitest.cc', + 'shell/browser/shell_browsertest.cc', + 'shell/test/shell_apitest.cc', + 'shell/test/shell_apitest.h', + 'shell/test/shell_test.cc', + 'shell/test/shell_test.h', + 'shell/test/shell_test_launcher_delegate.cc', + 'shell/test/shell_test_launcher_delegate.h', + 'shell/test/shell_tests_main.cc', + ], + 'extensions_unittests_sources': [ + 'browser/api/alarms/alarms_api_unittest.cc', + 'browser/api/api_resource_manager_unittest.cc', + 'browser/api/bluetooth/bluetooth_event_router_unittest.cc', + 'browser/api/cast_channel/cast_auth_ica_unittest.cc', + 'browser/api/cast_channel/cast_auth_util_unittest.cc', + 'browser/api/cast_channel/cast_channel_api_unittest.cc', + 'browser/api/cast_channel/cast_framer_unittest.cc', + 'browser/api/cast_channel/cast_socket_unittest.cc', + 'browser/api/cast_channel/cast_transport_unittest.cc', + 'browser/api/cast_channel/keep_alive_delegate_unittest.cc', + 'browser/api/cast_channel/logger_unittest.cc', + 'browser/api/declarative/declarative_rule_unittest.cc', + 'browser/api/declarative/deduping_factory_unittest.cc', + 'browser/api/declarative/rules_registry_unittest.cc', + 'browser/api/declarative_webrequest/webrequest_condition_unittest.cc', + 'browser/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc', + 'browser/api/document_scan/document_scan_api_unittest.cc', + 'browser/api/document_scan/document_scan_interface_chromeos_unittest.cc', + 'browser/api/document_scan/mock_document_scan_interface.cc', + 'browser/api/idle/idle_api_unittest.cc', + 'browser/api/mime_handler_private/mime_handler_private_unittest.cc', + 'browser/api/networking_config/networking_config_service_chromeos_unittest.cc', + 'browser/api/power/power_api_unittest.cc', + 'browser/api/sockets_tcp/sockets_tcp_api_unittest.cc', + 'browser/api/sockets_udp/sockets_udp_api_unittest.cc', + 'browser/api/storage/settings_quota_unittest.cc', + 'browser/api/storage/storage_api_unittest.cc', + 'browser/api/storage/storage_frontend_unittest.cc', + 'browser/api/web_request/form_data_parser_unittest.cc', + 'browser/api/web_request/upload_data_presenter_unittest.cc', + 'browser/api/web_request/web_request_time_tracker_unittest.cc', + 'browser/app_window/app_window_geometry_cache_unittest.cc', + 'browser/computed_hashes_unittest.cc', + 'browser/content_hash_tree_unittest.cc', + 'browser/event_listener_map_unittest.cc', + 'browser/event_router_unittest.cc', + 'browser/error_map_unittest.cc', + 'browser/extension_icon_image_unittest.cc', + 'browser/extension_pref_value_map_unittest.cc', + 'browser/extension_registry_unittest.cc', + 'browser/file_highlighter_unittest.cc', + 'browser/file_reader_unittest.cc', + 'browser/guest_view/guest_view_manager_unittest.cc', + 'browser/image_loader_unittest.cc', + 'browser/info_map_unittest.cc', + 'browser/lazy_background_task_queue_unittest.cc', + 'browser/management_policy_unittest.cc', + 'browser/mojo/keep_alive_impl_unittest.cc', + 'browser/mojo/stash_backend_unittest.cc', + 'browser/process_manager_unittest.cc', + 'browser/process_map_unittest.cc', + 'browser/quota_service_unittest.cc', + 'browser/runtime_data_unittest.cc', + 'browser/sandboxed_unpacker_unittest.cc', + 'browser/value_store/leveldb_value_store_unittest.cc', + 'browser/value_store/testing_value_store_unittest.cc', + 'browser/value_store/value_store_change_unittest.cc', + 'browser/value_store/value_store_frontend_unittest.cc', + 'browser/value_store/value_store_unittest.cc', + 'browser/value_store/value_store_unittest.h', + 'browser/verified_contents_unittest.cc', + 'browser/warning_service_unittest.cc', + 'common/api/sockets/sockets_manifest_permission_unittest.cc', + 'common/csp_validator_unittest.cc', + 'common/event_filter_unittest.cc', + 'common/extension_l10n_util_unittest.cc', + 'common/extension_resource_unittest.cc', + 'common/extension_set_unittest.cc', + 'common/features/base_feature_provider_unittest.cc', + 'common/features/complex_feature_unittest.cc', + 'common/features/simple_feature_unittest.cc', + 'common/file_util_unittest.cc', + 'common/image_util_unittest.cc', + 'common/manifest_handler_unittest.cc', + 'common/manifest_handlers/content_capabilities_manifest_unittest.cc', + 'common/manifest_handlers/default_locale_manifest_unittest.cc', + 'common/manifest_handlers/externally_connectable_unittest.cc', + 'common/manifest_handlers/file_handler_manifest_unittest.cc', + 'common/manifest_handlers/oauth2_manifest_unittest.cc', + 'common/manifest_handlers/shared_module_manifest_unittest.cc', + 'common/message_bundle_unittest.cc', + 'common/one_shot_event_unittest.cc', + 'common/permissions/api_permission_set_unittest.cc', + 'common/permissions/manifest_permission_set_unittest.cc', + 'common/permissions/socket_permission_unittest.cc', + 'common/permissions/usb_device_permission_unittest.cc', + 'common/stack_frame_unittest.cc', + 'common/url_pattern_set_unittest.cc', + 'common/url_pattern_unittest.cc', + 'common/user_script_unittest.cc', + 'renderer/activity_log_converter_strategy_unittest.cc', + 'renderer/api/mojo_private/mojo_private_unittest.cc', + 'renderer/api/serial/data_receiver_unittest.cc', + 'renderer/api/serial/data_sender_unittest.cc', + 'renderer/api/serial/serial_api_unittest.cc', + 'renderer/api_test_base.cc', + 'renderer/api_test_base.h', + 'renderer/api_test_base_unittest.cc', + 'renderer/event_unittest.cc', + 'renderer/json_schema_unittest.cc', + 'renderer/mojo/keep_alive_client_unittest.cc', + 'renderer/messaging_utils_unittest.cc', + 'renderer/module_system_test.cc', + 'renderer/module_system_test.h', + 'renderer/module_system_unittest.cc', + 'renderer/safe_builtins_unittest.cc', + 'renderer/script_context_set_unittest.cc', + 'renderer/script_context_unittest.cc', + 'renderer/mojo/stash_client_unittest.cc', + 'renderer/utils_unittest.cc', + 'test/extensions_unittests_main.cc', + 'utility/unpacker_unittest.cc', + ], + }, +} diff --git a/extensions/renderer/BUILD.gn b/extensions/renderer/BUILD.gn index 0d5eee4..a35e723 100644 --- a/extensions/renderer/BUILD.gn +++ b/extensions/renderer/BUILD.gn @@ -3,167 +3,15 @@ # found in the LICENSE file. import("//build/config/features.gni") +import("//extensions/extensions.gni") assert(enable_extensions) # GYP version: extensions/extensions.gyp:extensions_renderer source_set("renderer") { - sources = [ - "activity_log_converter_strategy.cc", - "activity_log_converter_strategy.h", - "api/automation/automation_api_helper.cc", - "api/automation/automation_api_helper.h", - "api_activity_logger.cc", - "api_activity_logger.h", - "api_definitions_natives.cc", - "api_definitions_natives.h", - "app_runtime_custom_bindings.cc", - "app_runtime_custom_bindings.h", - "app_window_custom_bindings.cc", - "app_window_custom_bindings.h", - "binding_generating_native_handler.cc", - "binding_generating_native_handler.h", - "blob_native_handler.cc", - "blob_native_handler.h", - "console.cc", - "console.h", - "content_watcher.cc", - "content_watcher.h", - "context_menus_custom_bindings.cc", - "context_menus_custom_bindings.h", - "css_native_handler.cc", - "css_native_handler.h", - "default_dispatcher_delegate.cc", - "default_dispatcher_delegate.h", - "dispatcher.cc", - "dispatcher.h", - "dispatcher_delegate.h", - "document_custom_bindings.cc", - "document_custom_bindings.h", - "dom_activity_logger.cc", - "dom_activity_logger.h", - "event_bindings.cc", - "event_bindings.h", - "extension_groups.h", - "extension_helper.cc", - "extension_helper.h", - "extensions_render_frame_observer.cc", - "extensions_render_frame_observer.h", - "extensions_renderer_client.cc", - "extensions_renderer_client.h", - "file_system_natives.cc", - "file_system_natives.h", - "guest_view/extensions_guest_view_container.cc", - "guest_view/extensions_guest_view_container.h", - "guest_view/guest_view_container.cc", - "guest_view/guest_view_container.h", - "guest_view/guest_view_internal_custom_bindings.cc", - "guest_view/guest_view_internal_custom_bindings.h", - "guest_view/mime_handler_view/mime_handler_view_container.cc", - "guest_view/mime_handler_view/mime_handler_view_container.h", - "i18n_custom_bindings.cc", - "i18n_custom_bindings.h", - "id_generator_custom_bindings.cc", - "id_generator_custom_bindings.h", - "lazy_background_page_native_handler.cc", - "lazy_background_page_native_handler.h", - "logging_native_handler.cc", - "logging_native_handler.h", - "messaging_bindings.cc", - "messaging_bindings.h", - "module_system.cc", - "module_system.h", - "native_handler.cc", - "native_handler.h", - "object_backed_native_handler.cc", - "object_backed_native_handler.h", - "print_native_handler.cc", - "print_native_handler.h", - "process_info_native_handler.cc", - "process_info_native_handler.h", - "programmatic_script_injector.cc", - "programmatic_script_injector.h", - "render_view_observer_natives.cc", - "request_sender.cc", - "request_sender.h", - "resource_bundle_source_map.cc", - "resource_bundle_source_map.h", - "resources/app_runtime_custom_bindings.js", - "resources/app_window_custom_bindings.js", - "resources/binding.js", - "resources/context_menus_custom_bindings.js", - "resources/declarative_webrequest_custom_bindings.js", - "resources/entry_id_manager.js", - "resources/event.js", - "resources/extension.css", - "resources/extension_custom_bindings.js", - "resources/extension_fonts.css", - "resources/greasemonkey_api.js", - "resources/i18n_custom_bindings.js", - "resources/image_util.js", - "resources/json_schema.js", - "resources/last_error.js", - "resources/messaging.js", - "resources/messaging_utils.js", - "resources/permissions_custom_bindings.js", - "resources/platform_app.css", - "resources/platform_app.js", - "resources/runtime_custom_bindings.js", - "resources/schema_utils.js", - "resources/send_request.js", - "resources/set_icon.js", - "resources/storage_area.js", - "resources/test_custom_bindings.js", - "resources/uncaught_exception_handler.js", - "resources/unload_event.js", - "resources/utils.js", - "resources/web_view.js", - "resources/web_view_events.js", - "resources/web_view_experimental.js", - "resources/web_request_custom_bindings.js", - "resources/web_request_internal_custom_bindings.js", - "resources/worker_frame.js", - "runtime_custom_bindings.cc", - "runtime_custom_bindings.h", - "safe_builtins.cc", - "safe_builtins.h", - "scoped_persistent.h", - "script_context.cc", - "script_context.h", - "script_context_set.cc", - "script_context_set.h", - "script_injection.cc", - "script_injection.h", - "script_injection_manager.cc", - "script_injection_manager.h", - "script_injector.h", - "scripts_run_info.cc", - "scripts_run_info.h", - "send_request_natives.cc", - "send_request_natives.h", - "set_icon_natives.cc", - "set_icon_natives.h", - "static_v8_external_one_byte_string_resource.cc", - "static_v8_external_one_byte_string_resource.h", - "tab_finder.cc", - "tab_finder.h", - "test_features_native_handler.cc", - "test_features_native_handler.h", - "user_gestures_native_handler.cc", - "user_gestures_native_handler.h", - "user_script_injector.cc", - "user_script_injector.h", - "user_script_set.cc", - "user_script_set.h", - "user_script_set_manager.cc", - "user_script_set_manager.h", - "utils_native_handler.cc", - "utils_native_handler.h", - "v8_context_native_handler.cc", - "v8_context_native_handler.h", - "v8_schema_registry.cc", - "v8_schema_registry.h", - ] + sources = rebase_path(extensions_gypi_values.extensions_renderer_sources, + ".", + "//extensions") deps = [ "//chrome:resources", diff --git a/extensions/utility/BUILD.gn b/extensions/utility/BUILD.gn index c954746..1662c08 100644 --- a/extensions/utility/BUILD.gn +++ b/extensions/utility/BUILD.gn @@ -3,17 +3,15 @@ # found in the LICENSE file. import("//build/config/features.gni") +import("//extensions/extensions.gni") assert(enable_extensions) # GYP version: extensions/extensions.gyp:extensions_utility source_set("utility") { - sources = [ - "unpacker.cc", - "unpacker.h", - "utility_handler.cc", - "utility_handler.h", - ] + sources = rebase_path(extensions_gypi_values.extensions_utility_sources, + ".", + "//extensions") deps = [ "//content/public/utility", |