Map WebSocket URL schemes to HTTP URL schemes for auth purposes.
[chromium-blink-merge.git] / content / content_child.gypi
blob3e45b0c90998cd971bc3554bb5edcecab834f944
1 # Copyright 2013 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.
6   'dependencies': [
7     '../base/base.gyp:base',
8     '../components/tracing.gyp:tracing',
9     '../mojo/mojo.gyp:mojo_environment_chromium',
10     '../mojo/mojo.gyp:mojo_service_provider_bindings',
11     '../skia/skia.gyp:skia',
12     '../ui/base/ui_base.gyp:ui_base',
13     '../ui/gfx/gfx.gyp:gfx',
14     '../ui/gfx/gfx.gyp:gfx_geometry',
15     '../url/url.gyp:url_lib',
16   ],
17   'include_dirs': [
18     '..',
19   ],
20   'export_dependent_settings': [
21     '../base/base.gyp:base',
22   ],
23   'variables': {
24     'public_child_sources': [
25       'public/child/image_decoder_utils.h',
26       'public/child/request_peer.h',
27       'public/child/resource_dispatcher_delegate.h',
28     ],
29     'private_child_sources': [
30       'child/appcache/appcache_backend_proxy.cc',
31       'child/appcache/appcache_backend_proxy.h',
32       'child/appcache/appcache_dispatcher.cc',
33       'child/appcache/appcache_dispatcher.h',
34       'child/appcache/appcache_frontend_impl.cc',
35       'child/appcache/appcache_frontend_impl.h',
36       'child/appcache/web_application_cache_host_impl.cc',
37       'child/appcache/web_application_cache_host_impl.h',
38       'child/assert_matching_enums.cc',
39       'child/blink_glue.cc',
40       'child/blink_glue.h',
41       'child/blink_platform_impl.cc',
42       'child/blink_platform_impl.h',
43       'child/browser_font_resource_trusted.cc',
44       'child/browser_font_resource_trusted.h',
45       'child/child_histogram_message_filter.cc',
46       'child/child_histogram_message_filter.h',
47       'child/child_message_filter.cc',
48       'child/child_message_filter.h',
49       'child/child_process.cc',
50       'child/child_process.h',
51       'child/child_resource_message_filter.cc',
52       'child/child_resource_message_filter.h',
53       'child/child_shared_bitmap_manager.cc',
54       'child/child_shared_bitmap_manager.h',
55       'child/child_thread.cc',
56       'child/child_thread.h',
57       'child/content_child_helpers.cc',
58       'child/content_child_helpers.h',
59       'child/database_util.cc',
60       'child/database_util.h',
61       'child/db_message_filter.cc',
62       'child/db_message_filter.h',
63       'child/fileapi/file_system_dispatcher.cc',
64       'child/fileapi/file_system_dispatcher.h',
65       'child/fileapi/webfilesystem_impl.cc',
66       'child/fileapi/webfilesystem_impl.h',
67       'child/fileapi/webfilewriter_base.cc',
68       'child/fileapi/webfilewriter_base.h',
69       'child/fileapi/webfilewriter_impl.cc',
70       'child/fileapi/webfilewriter_impl.h',
71       'child/fling_animator_impl_android.cc',
72       'child/fling_animator_impl_android.h',
73       'child/fling_curve_configuration.cc',
74       'child/fling_curve_configuration.h',
75       'child/ftp_directory_listing_response_delegate.cc',
76       'child/ftp_directory_listing_response_delegate.h',
77       'child/image_decoder.cc',
78       'child/image_decoder.h',
79       'child/indexed_db/indexed_db_dispatcher.cc',
80       'child/indexed_db/indexed_db_dispatcher.h',
81       'child/indexed_db/indexed_db_key_builders.cc',
82       'child/indexed_db/indexed_db_key_builders.h',
83       'child/indexed_db/indexed_db_message_filter.cc',
84       'child/indexed_db/indexed_db_message_filter.h',
85       'child/indexed_db/webidbcursor_impl.cc',
86       'child/indexed_db/webidbcursor_impl.h',
87       'child/indexed_db/webidbdatabase_impl.cc',
88       'child/indexed_db/webidbdatabase_impl.h',
89       'child/indexed_db/webidbfactory_impl.cc',
90       'child/indexed_db/webidbfactory_impl.h',
91       'child/mojo/mojo_application.cc',
92       'child/mojo/mojo_application.h',
93       'child/npapi/np_channel_base.cc',
94       'child/npapi/np_channel_base.h',
95       'child/npapi/npobject_base.h',
96       'child/npapi/npobject_proxy.cc',
97       'child/npapi/npobject_proxy.h',
98       'child/npapi/npobject_stub.cc',
99       'child/npapi/npobject_stub.h',
100       'child/npapi/npobject_util.cc',
101       'child/npapi/npobject_util.h',
102       'child/npapi/npruntime_util.cc',
103       'child/npapi/npruntime_util.h',
104       'child/npapi/plugin_host.cc',
105       'child/npapi/plugin_host.h',
106       'child/npapi/plugin_instance.cc',
107       'child/npapi/plugin_instance.h',
108       'child/npapi/plugin_instance_mac.mm',
109       'child/npapi/plugin_lib.cc',
110       'child/npapi/plugin_lib.h',
111       'child/npapi/plugin_stream.cc',
112       'child/npapi/plugin_stream.h',
113       'child/npapi/plugin_stream_posix.cc',
114       'child/npapi/plugin_stream_url.cc',
115       'child/npapi/plugin_stream_url.h',
116       'child/npapi/plugin_stream_win.cc',
117       'child/npapi/plugin_string_stream.cc',
118       'child/npapi/plugin_string_stream.h',
119       'child/npapi/plugin_url_fetcher.cc',
120       'child/npapi/plugin_url_fetcher.h',
121       'child/npapi/plugin_web_event_converter_mac.h',
122       'child/npapi/plugin_web_event_converter_mac.mm',
123       'child/npapi/webplugin.h',
124       'child/npapi/webplugin_accelerated_surface_mac.h',
125       'child/npapi/webplugin_delegate.h',
126       'child/npapi/webplugin_delegate_impl.cc',
127       'child/npapi/webplugin_delegate_impl.h',
128       'child/npapi/webplugin_delegate_impl_android.cc',
129       'child/npapi/webplugin_delegate_impl_aura.cc',
130       'child/npapi/webplugin_delegate_impl_mac.mm',
131       'child/npapi/webplugin_delegate_impl_win.cc',
132       'child/npapi/webplugin_ime_win.cc',
133       'child/npapi/webplugin_ime_win.h',
134       'child/npapi/webplugin_resource_client.h',
135       'child/plugin_message_generator.cc',
136       'child/plugin_message_generator.h',
137       'child/plugin_messages.h',
138       'child/plugin_param_traits.cc',
139       'child/plugin_param_traits.h',
140       'child/power_monitor_broadcast_source.cc',
141       'child/power_monitor_broadcast_source.h',
142       'child/quota_dispatcher.cc',
143       'child/quota_dispatcher.h',
144       'child/quota_message_filter.cc',
145       'child/quota_message_filter.h',
146       'child/request_extra_data.cc',
147       'child/request_extra_data.h',
148       'child/request_info.cc',
149       'child/request_info.h',
150       'child/resource_dispatcher.cc',
151       'child/resource_dispatcher.h',
152       'child/runtime_features.cc',
153       'child/runtime_features.h',
154       'child/scoped_child_process_reference.cc',
155       'child/scoped_child_process_reference.h',
156       'child/service_worker/service_worker_handle_reference.cc',
157       'child/service_worker/service_worker_handle_reference.h',
158       'child/service_worker/service_worker_dispatcher.cc',
159       'child/service_worker/service_worker_dispatcher.h',
160       'child/service_worker/service_worker_message_filter.cc',
161       'child/service_worker/service_worker_message_filter.h',
162       'child/service_worker/service_worker_network_provider.cc',
163       'child/service_worker/service_worker_network_provider.h',
164       'child/service_worker/service_worker_provider_context.cc',
165       'child/service_worker/service_worker_provider_context.h',
166       'child/service_worker/web_service_worker_impl.cc',
167       'child/service_worker/web_service_worker_impl.h',
168       'child/service_worker/web_service_worker_provider_impl.cc',
169       'child/service_worker/web_service_worker_provider_impl.h',
170       'child/shared_worker_devtools_agent.cc',
171       'child/shared_worker_devtools_agent.h',
172       'child/simple_webmimeregistry_impl.cc',
173       'child/simple_webmimeregistry_impl.h',
174       'child/site_isolation_policy.cc',
175       'child/site_isolation_policy.h',
176       'child/socket_stream_dispatcher.cc',
177       'child/socket_stream_dispatcher.h',
178       'child/sync_load_response.cc',
179       'child/sync_load_response.h',
180       'child/thread_safe_sender.cc',
181       'child/thread_safe_sender.h',
182       'child/touch_fling_gesture_curve.cc',
183       'child/touch_fling_gesture_curve.h',
184       'child/web_database_observer_impl.cc',
185       'child/web_database_observer_impl.h',
186       'child/web_discardable_memory_impl.cc',
187       'child/web_discardable_memory_impl.h',
188       'child/web_socket_stream_handle_bridge.h',
189       'child/web_socket_stream_handle_delegate.h',
190       'child/web_socket_stream_handle_impl.cc',
191       'child/web_socket_stream_handle_impl.h',
192       'child/web_url_loader_impl.cc',
193       'child/web_url_loader_impl.h',
194       'child/webblobregistry_impl.cc',
195       'child/webblobregistry_impl.h',
196       'child/webcrypto/crypto_data.cc',
197       'child/webcrypto/crypto_data.h',
198       'child/webcrypto/jwk.cc',
199       'child/webcrypto/jwk.h',
200       'child/webcrypto/platform_crypto.h',
201       'child/webcrypto/platform_crypto_nss.cc',
202       'child/webcrypto/platform_crypto_openssl.cc',
203       'child/webcrypto/shared_crypto.cc',
204       'child/webcrypto/shared_crypto.h',
205       'child/webcrypto/status.cc',
206       'child/webcrypto/status.h',
207       'child/webcrypto/webcrypto_impl.cc',
208       'child/webcrypto/webcrypto_impl.h',
209       'child/webcrypto/webcrypto_util.cc',
210       'child/webcrypto/webcrypto_util.h',
211       'child/webfallbackthemeengine_impl.cc',
212       'child/webfallbackthemeengine_impl.h',
213       'child/webfileutilities_impl.cc',
214       'child/webfileutilities_impl.h',
215       'child/webmessageportchannel_impl.cc',
216       'child/webmessageportchannel_impl.h',
217       'child/threaded_data_provider.cc',
218       'child/threaded_data_provider.h',
219       'child/websocket_bridge.cc',
220       'child/websocket_bridge.h',
221       'child/websocket_dispatcher.cc',
222       'child/websocket_dispatcher.h',
223       'child/webthemeengine_impl_android.cc',
224       'child/webthemeengine_impl_android.h',
225       'child/webthemeengine_impl_default.cc',
226       'child/webthemeengine_impl_default.h',
227       'child/webthemeengine_impl_mac.cc',
228       'child/webthemeengine_impl_mac.h',
229       'child/webthread_impl.cc',
230       'child/webthread_impl.h',
231       'child/worker_task_runner.cc',
232       'child/worker_task_runner.h',
233       'child/worker_thread_task_runner.cc',
234       'child/worker_thread_task_runner.h',
235     ],
236   },
237   'sources': [
238     '<@(public_child_sources)',
239     '<@(private_child_sources)',
240   ],
241   'conditions': [
242     ['use_default_render_theme==0',
243       {
244         'sources/': [
245           ['exclude', 'child/webthemeengine_impl_default.cc'],
246           ['exclude', 'child/webthemeengine_impl_default.h'],
247         ],
248       }
249     ],
250     ['OS=="android"', {
251       'includes': [
252         '../build/android/cpufeatures.gypi',
253       ],
254     }],
255     ['enable_plugins==0', {
256       'sources!': [
257         'child/browser_font_resource_trusted.cc',
258       ],
259       'sources/': [
260         ['exclude', '^child/npapi/plugin_'],
261         ['exclude', '^child/npapi/webplugin_'],
262       ],
263     }],
264     ['OS=="ios"', {
265       'sources/': [
266         # iOS only needs a small portion of content; exclude all the
267         # implementation, and re-include what is used.
268         ['exclude', '\\.(cc|mm)$'],
269       ],
270     }, {  # OS!="ios"
271       'dependencies': [
272         '../third_party/WebKit/public/blink.gyp:blink',
273         '../third_party/npapi/npapi.gyp:npapi',
274         '../webkit/child/webkit_child.gyp:webkit_child',
275         '../webkit/common/webkit_common.gyp:webkit_common',
276         '../webkit/webkit_resources.gyp:webkit_resources',
277       ],
278     }],
279     ['use_aura==1', {
280       'sources!': [
281         'child/npapi/webplugin_delegate_impl_mac.mm',
282       ],
283     }],
284     ['OS=="win"', {
285       'sources!': [
286         'child/npapi/webplugin_delegate_impl_aura.cc',
287       ],
288     }],
289     ['use_openssl==1', {
290       'sources!': [
291         'child/webcrypto/platform_crypto_nss.cc',
292       ],
293       'dependencies': [
294         '../third_party/openssl/openssl.gyp:openssl',
295       ],
296     }, {
297       'sources!': [
298         'child/webcrypto/platform_crypto_openssl.cc',
299       ],
300       'conditions': [
301         ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
302           'dependencies': [
303             '../build/linux/system.gyp:ssl',
304           ],
305         }, {
306           'dependencies': [
307             '../third_party/nss/nss.gyp:nspr',
308             '../third_party/nss/nss.gyp:nss',
309           ],
310         }],
311       ],
312     }],
313   ],