kMaxBlockSize -> kMaxHeaderBlockSize to avoid shadowing warning on VS2015
[chromium-blink-merge.git] / extensions / renderer / BUILD.gn
blob63a388eb9f05d65465e8d713d5bb12d73ca0050f
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/features.gni")
7 assert(enable_extensions)
9 # GYP version: extensions/extensions.gyp:extensions_renderer
10 source_set("renderer") {
11   sources = [
12     "activity_log_converter_strategy.cc",
13     "activity_log_converter_strategy.h",
14     "api/automation/automation_api_helper.cc",
15     "api/automation/automation_api_helper.h",
16     "api_activity_logger.cc",
17     "api_activity_logger.h",
18     "api_definitions_natives.cc",
19     "api_definitions_natives.h",
20     "app_runtime_custom_bindings.cc",
21     "app_runtime_custom_bindings.h",
22     "app_window_custom_bindings.cc",
23     "app_window_custom_bindings.h",
24     "binding_generating_native_handler.cc",
25     "binding_generating_native_handler.h",
26     "blob_native_handler.cc",
27     "blob_native_handler.h",
28     "console.cc",
29     "console.h",
30     "content_watcher.cc",
31     "content_watcher.h",
32     "context_menus_custom_bindings.cc",
33     "context_menus_custom_bindings.h",
34     "css_native_handler.cc",
35     "css_native_handler.h",
36     "default_dispatcher_delegate.cc",
37     "default_dispatcher_delegate.h",
38     "dispatcher.cc",
39     "dispatcher.h",
40     "dispatcher_delegate.h",
41     "document_custom_bindings.cc",
42     "document_custom_bindings.h",
43     "dom_activity_logger.cc",
44     "dom_activity_logger.h",
45     "event_bindings.cc",
46     "event_bindings.h",
47     "extension_groups.h",
48     "extension_helper.cc",
49     "extension_helper.h",
50     "extensions_render_frame_observer.cc",
51     "extensions_render_frame_observer.h",
52     "extensions_renderer_client.cc",
53     "extensions_renderer_client.h",
54     "file_system_natives.cc",
55     "file_system_natives.h",
56     "guest_view/extensions_guest_view_container.cc",
57     "guest_view/extensions_guest_view_container.h",
58     "guest_view/guest_view_container.cc",
59     "guest_view/guest_view_container.h",
60     "guest_view/guest_view_internal_custom_bindings.cc",
61     "guest_view/guest_view_internal_custom_bindings.h",
62     "guest_view/mime_handler_view/mime_handler_view_container.cc",
63     "guest_view/mime_handler_view/mime_handler_view_container.h",
64     "i18n_custom_bindings.cc",
65     "i18n_custom_bindings.h",
66     "id_generator_custom_bindings.cc",
67     "id_generator_custom_bindings.h",
68     "lazy_background_page_native_handler.cc",
69     "lazy_background_page_native_handler.h",
70     "logging_native_handler.cc",
71     "logging_native_handler.h",
72     "messaging_bindings.cc",
73     "messaging_bindings.h",
74     "module_system.cc",
75     "module_system.h",
76     "native_handler.cc",
77     "native_handler.h",
78     "object_backed_native_handler.cc",
79     "object_backed_native_handler.h",
80     "print_native_handler.cc",
81     "print_native_handler.h",
82     "process_info_native_handler.cc",
83     "process_info_native_handler.h",
84     "programmatic_script_injector.cc",
85     "programmatic_script_injector.h",
86     "render_view_observer_natives.cc",
87     "request_sender.cc",
88     "request_sender.h",
89     "resource_bundle_source_map.cc",
90     "resource_bundle_source_map.h",
91     "resources/app_runtime_custom_bindings.js",
92     "resources/app_window_custom_bindings.js",
93     "resources/binding.js",
94     "resources/context_menus_custom_bindings.js",
95     "resources/declarative_webrequest_custom_bindings.js",
96     "resources/entry_id_manager.js",
97     "resources/event.js",
98     "resources/extension.css",
99     "resources/extension_custom_bindings.js",
100     "resources/extension_fonts.css",
101     "resources/greasemonkey_api.js",
102     "resources/i18n_custom_bindings.js",
103     "resources/image_util.js",
104     "resources/json_schema.js",
105     "resources/last_error.js",
106     "resources/messaging.js",
107     "resources/messaging_utils.js",
108     "resources/permissions_custom_bindings.js",
109     "resources/platform_app.css",
110     "resources/platform_app.js",
111     "resources/runtime_custom_bindings.js",
112     "resources/schema_utils.js",
113     "resources/send_request.js",
114     "resources/set_icon.js",
115     "resources/storage_area.js",
116     "resources/test_custom_bindings.js",
117     "resources/uncaught_exception_handler.js",
118     "resources/unload_event.js",
119     "resources/utils.js",
120     "resources/web_view.js",
121     "resources/web_view_events.js",
122     "resources/web_view_experimental.js",
123     "resources/web_request_custom_bindings.js",
124     "resources/web_request_internal_custom_bindings.js",
125     "resources/worker_frame.js",
126     "runtime_custom_bindings.cc",
127     "runtime_custom_bindings.h",
128     "safe_builtins.cc",
129     "safe_builtins.h",
130     "scoped_persistent.h",
131     "script_context.cc",
132     "script_context.h",
133     "script_context_set.cc",
134     "script_context_set.h",
135     "script_injection.cc",
136     "script_injection.h",
137     "script_injection_manager.cc",
138     "script_injection_manager.h",
139     "script_injector.h",
140     "scripts_run_info.cc",
141     "scripts_run_info.h",
142     "send_request_natives.cc",
143     "send_request_natives.h",
144     "set_icon_natives.cc",
145     "set_icon_natives.h",
146     "static_v8_external_one_byte_string_resource.cc",
147     "static_v8_external_one_byte_string_resource.h",
148     "test_features_native_handler.cc",
149     "test_features_native_handler.h",
150     "user_gestures_native_handler.cc",
151     "user_gestures_native_handler.h",
152     "user_script_injector.cc",
153     "user_script_injector.h",
154     "user_script_set.cc",
155     "user_script_set.h",
156     "user_script_set_manager.cc",
157     "user_script_set_manager.h",
158     "utils_native_handler.cc",
159     "utils_native_handler.h",
160     "v8_context_native_handler.cc",
161     "v8_context_native_handler.h",
162     "v8_schema_registry.cc",
163     "v8_schema_registry.h",
164   ]
166   deps = [
167     "//chrome:resources",
168     "//content:resources",
169     "//extensions:extensions_resources",
170     "//gin",
171     "//skia",
172     "//third_party/WebKit/public:blink",
173     "//third_party/mojo/src/mojo/edk/js",
174   ]
176   if (is_win) {
177     cflags = [ "/wd4267" ]  # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
178   }