translate: Replace usage of GetActiveEntry by GetLastCommittedEntry.
[chromium-blink-merge.git] / content / content_child.gypi
blobd817ccff099448bb5b8821e7f1b7f42bf4693a40
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/mime_util/mime_util.gyp:mime_util',
9     '../components/tracing.gyp:tracing',
10     '../components/webcrypto/webcrypto.gyp:webcrypto',
11     '../mojo/mojo_base.gyp:mojo_environment_chromium',
12     '../mojo/mojo_base.gyp:mojo_common_lib',
13     '../skia/skia.gyp:skia',
14     '../ui/base/ui_base.gyp:ui_base',
15     '../ui/events/events.gyp:gestures_blink',
16     '../ui/gfx/gfx.gyp:gfx',
17     '../ui/gfx/gfx.gyp:gfx_geometry',
18     '../url/url.gyp:url_lib',
19     'content_common_mojo_bindings.gyp:content_common_mojo_bindings',
20   ],
21   'include_dirs': [
22     '..',
23   ],
24   'export_dependent_settings': [
25     '../base/base.gyp:base',
26   ],
27   'variables': {
28     'public_child_sources': [
29       'public/child/child_thread.h',
30       'public/child/fixed_received_data.cc',
31       'public/child/fixed_received_data.h',
32       'public/child/image_decoder_utils.h',
33       'public/child/request_peer.h',
34       'public/child/resource_dispatcher_delegate.h',
35       'public/child/v8_value_converter.h',
36     ],
37     'private_child_sources': [
38       'child/appcache/appcache_backend_proxy.cc',
39       'child/appcache/appcache_backend_proxy.h',
40       'child/appcache/appcache_dispatcher.cc',
41       'child/appcache/appcache_dispatcher.h',
42       'child/appcache/appcache_frontend_impl.cc',
43       'child/appcache/appcache_frontend_impl.h',
44       'child/appcache/web_application_cache_host_impl.cc',
45       'child/appcache/web_application_cache_host_impl.h',
46       'child/assert_matching_enums.cc',
47       'child/background_sync/background_sync_provider_thread_proxy.cc',
48       'child/background_sync/background_sync_provider_thread_proxy.h',
49       'child/background_sync/background_sync_provider.cc',
50       'child/background_sync/background_sync_provider.h',
51       'child/background_sync/background_sync_type_converters.cc',
52       'child/background_sync/background_sync_type_converters.h',
53       'child/blink_platform_impl.cc',
54       'child/blink_platform_impl.h',
55       'child/bluetooth/bluetooth_dispatcher.cc',
56       'child/bluetooth/bluetooth_dispatcher.h',
57       'child/bluetooth/bluetooth_message_filter.cc',
58       'child/bluetooth/bluetooth_message_filter.h',
59       'child/bluetooth/web_bluetooth_impl.cc',
60       'child/bluetooth/web_bluetooth_impl.h',
61       'child/browser_font_resource_trusted.cc',
62       'child/browser_font_resource_trusted.h',
63       'child/child_discardable_shared_memory_manager.cc',
64       'child/child_discardable_shared_memory_manager.h',
65       'child/child_gpu_memory_buffer_manager.cc',
66       'child/child_gpu_memory_buffer_manager.h',
67       'child/child_histogram_message_filter.cc',
68       'child/child_histogram_message_filter.h',
69       'child/child_io_surface_manager_mac.cc',
70       'child/child_io_surface_manager_mac.h',
71       'child/child_message_filter.cc',
72       'child/child_message_filter.h',
73       'child/child_process.cc',
74       'child/child_process.h',
75       'child/child_resource_message_filter.cc',
76       'child/child_resource_message_filter.h',
77       'child/child_shared_bitmap_manager.cc',
78       'child/child_shared_bitmap_manager.h',
79       'child/child_thread_impl.cc',
80       'child/child_thread_impl.h',
81       'child/content_child_helpers.cc',
82       'child/content_child_helpers.h',
83       'child/database_util.cc',
84       'child/database_util.h',
85       'child/db_message_filter.cc',
86       'child/db_message_filter.h',
87       'child/file_info_util.cc',
88       'child/file_info_util.h',
89       'child/fileapi/file_system_dispatcher.cc',
90       'child/fileapi/file_system_dispatcher.h',
91       'child/fileapi/webfilesystem_impl.cc',
92       'child/fileapi/webfilesystem_impl.h',
93       'child/fileapi/webfilewriter_base.cc',
94       'child/fileapi/webfilewriter_base.h',
95       'child/fileapi/webfilewriter_impl.cc',
96       'child/fileapi/webfilewriter_impl.h',
97       'child/ftp_directory_listing_response_delegate.cc',
98       'child/ftp_directory_listing_response_delegate.h',
99       'child/geofencing/geofencing_dispatcher.cc',
100       'child/geofencing/geofencing_dispatcher.h',
101       'child/geofencing/geofencing_message_filter.cc',
102       'child/geofencing/geofencing_message_filter.h',
103       'child/geofencing/web_geofencing_provider_impl.cc',
104       'child/geofencing/web_geofencing_provider_impl.h',
105       'child/image_decoder.cc',
106       'child/image_decoder.h',
107       'child/indexed_db/indexed_db_dispatcher.cc',
108       'child/indexed_db/indexed_db_dispatcher.h',
109       'child/indexed_db/indexed_db_key_builders.cc',
110       'child/indexed_db/indexed_db_key_builders.h',
111       'child/indexed_db/indexed_db_message_filter.cc',
112       'child/indexed_db/indexed_db_message_filter.h',
113       'child/indexed_db/webidbcursor_impl.cc',
114       'child/indexed_db/webidbcursor_impl.h',
115       'child/indexed_db/webidbdatabase_impl.cc',
116       'child/indexed_db/webidbdatabase_impl.h',
117       'child/indexed_db/webidbfactory_impl.cc',
118       'child/indexed_db/webidbfactory_impl.h',
119       'child/mojo/mojo_application.cc',
120       'child/mojo/mojo_application.h',
121       'child/multipart_response_delegate.cc',
122       'child/multipart_response_delegate.h',
123       'child/navigator_connect/navigator_connect_dispatcher.cc',
124       'child/navigator_connect/navigator_connect_dispatcher.h',
125       'child/navigator_connect/navigator_connect_provider.cc',
126       'child/navigator_connect/navigator_connect_provider.h',
127       'child/notifications/notification_data_conversions.cc',
128       'child/notifications/notification_data_conversions.h',
129       'child/notifications/notification_dispatcher.cc',
130       'child/notifications/notification_dispatcher.h',
131       'child/notifications/notification_image_loader.cc',
132       'child/notifications/notification_image_loader.h',
133       'child/notifications/notification_manager.cc',
134       'child/notifications/notification_manager.h',
135       'child/notifications/pending_notifications_tracker.cc',
136       'child/notifications/pending_notifications_tracker.h',
137       'child/npapi/np_channel_base.cc',
138       'child/npapi/np_channel_base.h',
139       'child/npapi/npobject_base.h',
140       'child/npapi/npobject_proxy.cc',
141       'child/npapi/npobject_proxy.h',
142       'child/npapi/npobject_stub.cc',
143       'child/npapi/npobject_stub.h',
144       'child/npapi/npobject_util.cc',
145       'child/npapi/npobject_util.h',
146       'child/npapi/npruntime_util.cc',
147       'child/npapi/npruntime_util.h',
148       'child/npapi/plugin_host.cc',
149       'child/npapi/plugin_host.h',
150       'child/npapi/plugin_instance.cc',
151       'child/npapi/plugin_instance.h',
152       'child/npapi/plugin_instance_mac.mm',
153       'child/npapi/plugin_lib.cc',
154       'child/npapi/plugin_lib.h',
155       'child/npapi/plugin_stream.cc',
156       'child/npapi/plugin_stream.h',
157       'child/npapi/plugin_stream_posix.cc',
158       'child/npapi/plugin_stream_url.cc',
159       'child/npapi/plugin_stream_url.h',
160       'child/npapi/plugin_stream_win.cc',
161       'child/npapi/plugin_string_stream.cc',
162       'child/npapi/plugin_string_stream.h',
163       'child/npapi/plugin_url_fetcher.cc',
164       'child/npapi/plugin_url_fetcher.h',
165       'child/npapi/plugin_web_event_converter_mac.h',
166       'child/npapi/plugin_web_event_converter_mac.mm',
167       'child/npapi/webplugin.h',
168       'child/npapi/webplugin_accelerated_surface_mac.h',
169       'child/npapi/webplugin_delegate.h',
170       'child/npapi/webplugin_delegate_impl.cc',
171       'child/npapi/webplugin_delegate_impl.h',
172       'child/npapi/webplugin_delegate_impl_android.cc',
173       'child/npapi/webplugin_delegate_impl_aura.cc',
174       'child/npapi/webplugin_delegate_impl_mac.mm',
175       'child/npapi/webplugin_delegate_impl_win.cc',
176       'child/npapi/webplugin_ime_win.cc',
177       'child/npapi/webplugin_ime_win.h',
178       'child/npapi/webplugin_resource_client.h',
179       'child/permissions/permission_dispatcher.cc',
180       'child/permissions/permission_dispatcher.h',
181       'child/permissions/permission_dispatcher_thread_proxy.cc',
182       'child/permissions/permission_dispatcher_thread_proxy.h',
183       'child/permissions/permission_observers_registry.cc',
184       'child/permissions/permission_observers_registry.h',
185       'child/plugin_message_generator.cc',
186       'child/plugin_message_generator.h',
187       'child/plugin_messages.h',
188       'child/plugin_param_traits.cc',
189       'child/plugin_param_traits.h',
190       'child/power_monitor_broadcast_source.cc',
191       'child/power_monitor_broadcast_source.h',
192       'child/push_messaging/push_dispatcher.cc',
193       'child/push_messaging/push_dispatcher.h',
194       'child/push_messaging/push_provider.cc',
195       'child/push_messaging/push_provider.h',
196       'child/quota_dispatcher.cc',
197       'child/quota_dispatcher.h',
198       'child/quota_message_filter.cc',
199       'child/quota_message_filter.h',
200       'child/request_extra_data.cc',
201       'child/request_extra_data.h',
202       'child/request_info.cc',
203       'child/request_info.h',
204       'child/resource_dispatcher.cc',
205       'child/resource_dispatcher.h',
206       'child/resource_scheduling_filter.cc',
207       'child/resource_scheduling_filter.h',
208       'child/runtime_features.cc',
209       'child/runtime_features.h',
210       'child/scoped_child_process_reference.cc',
211       'child/scoped_child_process_reference.h',
212       'child/shared_memory_data_consumer_handle.cc',
213       'child/shared_memory_data_consumer_handle.h',
214       'child/shared_memory_received_data_factory.cc',
215       'child/shared_memory_received_data_factory.h',
216       'child/service_worker/service_worker_dispatcher.cc',
217       'child/service_worker/service_worker_dispatcher.h',
218       'child/service_worker/service_worker_handle_reference.cc',
219       'child/service_worker/service_worker_handle_reference.h',
220       'child/service_worker/service_worker_message_filter.cc',
221       'child/service_worker/service_worker_message_filter.h',
222       'child/service_worker/service_worker_network_provider.cc',
223       'child/service_worker/service_worker_network_provider.h',
224       'child/service_worker/service_worker_provider_context.cc',
225       'child/service_worker/service_worker_provider_context.h',
226       'child/service_worker/service_worker_registration_handle_reference.cc',
227       'child/service_worker/service_worker_registration_handle_reference.h',
228       'child/service_worker/web_service_worker_impl.cc',
229       'child/service_worker/web_service_worker_impl.h',
230       'child/service_worker/web_service_worker_provider_impl.cc',
231       'child/service_worker/web_service_worker_provider_impl.h',
232       'child/service_worker/web_service_worker_registration_impl.cc',
233       'child/service_worker/web_service_worker_registration_impl.h',
234       'child/shared_worker_devtools_agent.cc',
235       'child/shared_worker_devtools_agent.h',
236       'child/simple_webmimeregistry_impl.cc',
237       'child/simple_webmimeregistry_impl.h',
238       'child/site_isolation_stats_gatherer.cc',
239       'child/site_isolation_stats_gatherer.h',
240       'child/sync_load_response.cc',
241       'child/sync_load_response.h',
242       'child/thread_safe_sender.cc',
243       'child/thread_safe_sender.h',
244       'child/threaded_data_provider.cc',
245       'child/threaded_data_provider.h',
246       'child/v8_value_converter_impl.cc',
247       'child/v8_value_converter_impl.h',
248       'child/web_data_consumer_handle_impl.cc',
249       'child/web_data_consumer_handle_impl.h',
250       'child/web_database_observer_impl.cc',
251       'child/web_database_observer_impl.h',
252       'child/web_discardable_memory_impl.cc',
253       'child/web_discardable_memory_impl.h',
254       'child/web_memory_allocator_dump_impl.cc',
255       'child/web_memory_allocator_dump_impl.h',
256       'child/web_memory_dump_provider_adapter.cc',
257       'child/web_memory_dump_provider_adapter.h',
258       'child/web_process_memory_dump_impl.cc',
259       'child/web_process_memory_dump_impl.h',
260       'child/web_url_loader_impl.cc',
261       'child/web_url_loader_impl.h',
262       'child/web_url_request_util.cc',
263       'child/web_url_request_util.h',
264       'child/webblobregistry_impl.cc',
265       'child/webblobregistry_impl.h',
266       'child/webfallbackthemeengine_impl.cc',
267       'child/webfallbackthemeengine_impl.h',
268       'child/webfileutilities_impl.cc',
269       'child/webfileutilities_impl.h',
270       'child/webmessageportchannel_impl.cc',
271       'child/webmessageportchannel_impl.h',
272       'child/websocket_bridge.cc',
273       'child/websocket_bridge.h',
274       'child/websocket_dispatcher.cc',
275       'child/websocket_dispatcher.h',
276       'child/webthemeengine_impl_android.cc',
277       'child/webthemeengine_impl_android.h',
278       'child/webthemeengine_impl_default.cc',
279       'child/webthemeengine_impl_default.h',
280       'child/webthemeengine_impl_mac.h',
281       'child/weburlresponse_extradata_impl.cc',
282       'child/weburlresponse_extradata_impl.h',
283       'child/worker_task_runner.cc',
284       'child/worker_task_runner.h',
285       'child/worker_thread_message_filter.cc',
286       'child/worker_thread_message_filter.h',
287     ],
288   },
289   'sources': [
290     '<@(public_child_sources)',
291     '<@(private_child_sources)',
292   ],
293   'conditions': [
294     ['use_default_render_theme==0',
295       {
296         'sources/': [
297           ['exclude', 'child/webthemeengine_impl_default.cc'],
298           ['exclude', 'child/webthemeengine_impl_default.h'],
299         ],
300       }
301     ],
302     ['OS=="android"', {
303       'dependencies': [
304         '../build/android/ndk.gyp:cpu_features',
305       ],
306     }],
307     ['enable_plugins==0', {
308       'sources!': [
309         'child/browser_font_resource_trusted.cc',
310       ],
311       'sources/': [
312         ['exclude', '^child/npapi/plugin_'],
313         ['exclude', '^child/npapi/webplugin_'],
314       ],
315     }],
316     ['OS=="ios"', {
317       'sources/': [
318         # iOS only needs a small portion of content; exclude all the
319         # implementation, and re-include what is used.
320         ['exclude', '\\.(cc|mm)$'],
321       ],
322     }, {  # OS!="ios"
323       'dependencies': [
324         'app/resources/content_resources.gyp:content_resources',
325         'app/strings/content_strings.gyp:content_strings',
326         '../components/scheduler/scheduler.gyp:scheduler',
327         '../storage/storage_common.gyp:storage_common',
328         '../third_party/WebKit/public/blink.gyp:blink',
329         '../third_party/WebKit/public/blink_resources.gyp:blink_image_resources',
330         '../third_party/WebKit/public/blink_resources.gyp:blink_resources',
331         '../third_party/npapi/npapi.gyp:npapi',
332       ],
333     }],
334     ['use_aura==1', {
335       'sources!': [
336         'child/npapi/webplugin_delegate_impl_mac.mm',
337       ],
338     }],
339     ['OS=="win"', {
340       'sources!': [
341         'child/npapi/webplugin_delegate_impl_aura.cc',
342       ],
343     }],
344   ],