Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Unified Diff: extensions/renderer/BUILD.gn

Issue 578483002: Cleanup: Only build extensions renderer code when extensions are enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/extensions.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/BUILD.gn
diff --git a/extensions/renderer/BUILD.gn b/extensions/renderer/BUILD.gn
index d8d8598c3e09622caafdd53309710aea1984f578..5ba873060fa0c306220e5e4cf660d8ff5c683007 100644
--- a/extensions/renderer/BUILD.gn
+++ b/extensions/renderer/BUILD.gn
@@ -9,41 +9,69 @@ source_set("renderer") {
"activity_log_converter_strategy.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",
- "extension_groups.h",
+ "file_system_natives.cc",
+ "file_system_natives.h",
"guest_view/guest_view_internal_custom_bindings.cc",
"guest_view/guest_view_internal_custom_bindings.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",
@@ -80,8 +108,6 @@ source_set("renderer") {
"runtime_custom_bindings.h",
"safe_builtins.cc",
"safe_builtins.h",
- "set_icon_natives.cc",
- "set_icon_natives.h",
"scoped_persistent.h",
"script_context.cc",
"script_context.h",
@@ -94,8 +120,26 @@ source_set("renderer") {
"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_ascii_string_resource.cc",
"static_v8_external_ascii_string_resource.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",
]
@@ -110,59 +154,6 @@ source_set("renderer") {
"//third_party/WebKit/public:blink",
]
- if (!is_android) {
- # Temporary condition for Android until it can stop building
- # the extensions module altogether. These exemptions are taken
- # directly from chrome_renderer.gypi as sources are moved
- # from //chrome/renderer to //extensions/renderer.
- sources += [
- "api_definitions_natives.cc",
- "api_definitions_natives.h",
- "binding_generating_native_handler.cc",
- "binding_generating_native_handler.h",
- "blob_native_handler.cc",
- "blob_native_handler.h",
- "context_menus_custom_bindings.cc",
- "context_menus_custom_bindings.h",
- "css_native_handler.cc",
- "css_native_handler.h",
- "dispatcher.cc",
- "dispatcher.h",
- "dispatcher_delegate.h",
- "file_system_natives.cc",
- "file_system_natives.h",
- "lazy_background_page_native_handler.cc",
- "lazy_background_page_native_handler.h",
- "logging_native_handler.cc",
- "logging_native_handler.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",
- "render_view_observer_natives.cc",
- "send_request_natives.cc",
- "send_request_natives.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",
- ]
- }
-
if (is_win) {
cflags = [
"/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
« no previous file with comments | « extensions/extensions.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698