Adds IconNTP params on finch experiment to Android perfbot
[chromium-blink-merge.git] / content / content_common.gypi
blob87d2574a8707216b4dedb1765a1d2a47d0b64a9a
1 # Copyright (c) 2012 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     '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
10     '../net/net.gyp:net',
11     '../skia/skia.gyp:skia',
12     '../third_party/WebKit/public/blink_headers.gyp:blink_headers',
13     '../third_party/icu/icu.gyp:icuuc',
14     '../ui/accessibility/accessibility.gyp:accessibility',
15     '../ui/accessibility/accessibility.gyp:ax_gen',
16     '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
17     '../ui/base/ui_base.gyp:ui_base',
18     '../ui/events/events.gyp:events_ipc',
19     '../ui/gfx/gfx.gyp:gfx',
20     '../ui/gfx/gfx.gyp:gfx_geometry',
21     '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
22     '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
23     '../url/url.gyp:url_lib',
24   ],
25   'include_dirs': [
26     '..',
27   ],
28   'export_dependent_settings': [
29     '../base/base.gyp:base',
30     # The public content API headers directly include Blink API headers, so we
31     # have to export the blink header settings so that relative paths in these
32     # headers resolve correctly.
33     '../third_party/WebKit/public/blink_headers.gyp:blink_headers',
34     '../ui/accessibility/accessibility.gyp:ax_gen',
35   ],
36   'variables': {
37     'use_v4lplugin%': 0,
38     'use_v4l2_codec%': 0,
39     'public_common_sources': [
40       'public/common/appcache_info.h',
41       'public/common/bindings_policy.h',
42       'public/common/browser_plugin_guest_mode.cc',
43       'public/common/browser_plugin_guest_mode.h',
44       'public/common/child_process_host.h',
45       'public/common/child_process_host_delegate.cc',
46       'public/common/child_process_host_delegate.h',
47       'public/common/child_process_sandbox_support_linux.h',
48       'public/common/color_suggestion.cc',
49       'public/common/color_suggestion.h',
50       'public/common/common_param_traits.cc',
51       'public/common/common_param_traits.h',
52       'public/common/common_param_traits_macros.h',
53       'public/common/console_message_level.h',
54       'public/common/content_client.cc',
55       'public/common/content_client.h',
56       'public/common/content_constants.cc',
57       'public/common/content_constants.h',
58       'public/common/content_descriptors.h',
59       'public/common/content_ipc_logging.h',
60       'public/common/content_paths.h',
61       'public/common/content_switches.cc',
62       'public/common/content_switches.h',
63       'public/common/context_menu_params.cc',
64       'public/common/context_menu_params.h',
65       'public/common/drop_data.cc',
66       'public/common/drop_data.h',
67       'public/common/dwrite_font_platform_win.h',
68       'public/common/favicon_url.cc',
69       'public/common/favicon_url.h',
70       'public/common/file_chooser_file_info.cc',
71       'public/common/file_chooser_file_info.h',
72       'public/common/file_chooser_params.cc',
73       'public/common/file_chooser_params.h',
74       'public/common/frame_navigate_params.cc',
75       'public/common/frame_navigate_params.h',
76       'public/common/geoposition.cc',
77       'public/common/geoposition.h',
78       'public/common/gpu_memory_stats.cc',
79       'public/common/gpu_memory_stats.h',
80       'public/common/injection_test_mac.h',
81       'public/common/injection_test_win.h',
82       'public/common/javascript_message_type.h',
83       'public/common/main_function_params.h',
84       'public/common/manifest.cc',
85       'public/common/manifest.h',
86       'public/common/media_stream_request.cc',
87       'public/common/media_stream_request.h',
88       'public/common/menu_item.cc',
89       'public/common/menu_item.h',
90       'public/common/message_port_types.cc',
91       'public/common/message_port_types.h',
92       'public/common/mojo_channel_switches.cc',
93       'public/common/mojo_channel_switches.h',
94       'public/common/navigator_connect_client.cc',
95       'public/common/navigator_connect_client.h',
96       'public/common/origin_util.h',
97       'public/common/page_state.cc',
98       'public/common/page_state.h',
99       'public/common/page_type.h',
100       'public/common/page_zoom.h',
101       'public/common/pepper_plugin_info.cc',
102       'public/common/pepper_plugin_info.h',
103       'public/common/persistent_notification_status.h',
104       'public/common/platform_notification_data.cc',
105       'public/common/platform_notification_data.h',
106       'public/common/presentation_constants.cc',
107       'public/common/presentation_constants.h',
108       'public/common/process_type.h',
109       'public/common/push_messaging_status.cc',
110       'public/common/push_messaging_status.h',
111       'public/common/referrer.cc',
112       'public/common/referrer.h',
113       'public/common/renderer_preferences.cc',
114       'public/common/renderer_preferences.h',
115       'public/common/request_context_frame_type.h',
116       'public/common/request_context_type.h',
117       'public/common/resource_devtools_info.cc',
118       'public/common/resource_devtools_info.h',
119       'public/common/resource_response.cc',
120       'public/common/resource_response.h',
121       'public/common/resource_response_info.cc',
122       'public/common/resource_response_info.h',
123       'public/common/resource_type.cc',
124       'public/common/resource_type.h',
125       'public/common/result_codes.h',
126       'public/common/sandbox_init.h',
127       'public/common/sandbox_linux.h',
128       'public/common/sandbox_type.h',
129       'public/common/sandboxed_process_launcher_delegate.cc',
130       'public/common/sandboxed_process_launcher_delegate.h',
131       'public/common/security_style.h',
132       'public/common/send_zygote_child_ping_linux.h',
133       'public/common/service_registry.h',
134       'public/common/signed_certificate_timestamp_id_and_status.cc',
135       'public/common/signed_certificate_timestamp_id_and_status.h',
136       'public/common/speech_recognition_error.h',
137       'public/common/speech_recognition_grammar.h',
138       'public/common/speech_recognition_result.cc',
139       'public/common/speech_recognition_result.h',
140       'public/common/ssl_status.cc',
141       'public/common/ssl_status.h',
142       'public/common/stop_find_action.h',
143       'public/common/storage_quota_params.h',
144       'public/common/three_d_api_types.h',
145       'public/common/top_controls_state.h',
146       'public/common/transition_element.h',
147       'public/common/url_constants.cc',
148       'public/common/url_constants.h',
149       'public/common/url_fetcher.h',
150       'public/common/url_utils.cc',
151       'public/common/url_utils.h',
152       'public/common/user_agent.h',
153       'public/common/web_preferences.cc',
154       'public/common/web_preferences.h',
155       'public/common/webplugininfo.cc',
156       'public/common/webplugininfo.h',
157       'public/common/window_container_type.cc',
158       'public/common/window_container_type.h',
159       'public/common/zygote_fork_delegate_linux.h',
160     ],
161     'private_common_sources': [
162       'common/accessibility_messages.h',
163       'common/all_messages.h',
164       'common/android/address_parser.cc',
165       'common/android/address_parser.h',
166       'common/android/address_parser_internal.cc',
167       'common/android/address_parser_internal.h',
168       'common/android/common_jni_registrar.cc',
169       'common/android/common_jni_registrar.h',
170       'common/android/gin_java_bridge_errors.cc',
171       'common/android/gin_java_bridge_errors.h',
172       'common/android/gin_java_bridge_value.cc',
173       'common/android/gin_java_bridge_value.h',
174       'common/android/hash_set.cc',
175       'common/android/hash_set.h',
176       'common/android/surface_texture_manager.cc',
177       'common/android/surface_texture_manager.h',
178       'common/android/surface_texture_peer.cc',
179       'common/android/surface_texture_peer.h',
180       'common/appcache_interfaces.cc',
181       'common/appcache_interfaces.h',
182       'common/appcache_messages.h',
183       'common/bluetooth/bluetooth_device.cc',
184       'common/bluetooth/bluetooth_device.h',
185       'common/bluetooth/bluetooth_messages.h',
186       'common/bluetooth/bluetooth_scan_filter.cc',
187       'common/bluetooth/bluetooth_scan_filter.h',
188       'common/browser_plugin/browser_plugin_constants.cc',
189       'common/browser_plugin/browser_plugin_constants.h',
190       'common/browser_plugin/browser_plugin_messages.h',
191       'common/cache_storage/cache_storage_messages.h',
192       'common/cache_storage/cache_storage_types.cc',
193       'common/cache_storage/cache_storage_types.h',
194       'common/cc_messages.cc',
195       'common/cc_messages.h',
196       'common/child_process_host_impl.cc',
197       'common/child_process_host_impl.h',
198       'common/child_process_messages.h',
199       'common/child_process_sandbox_support_impl_linux.cc',
200       'common/child_process_sandbox_support_impl_linux.h',
201       'common/child_process_sandbox_support_impl_shm_linux.cc',
202       'common/clipboard_format.h',
203       'common/clipboard_messages.h',
204       'common/content_constants_internal.cc',
205       'common/content_constants_internal.h',
206       'common/content_export.h',
207       'common/content_ipc_logging.cc',
208       'common/content_message_generator.cc',
209       'common/content_message_generator.h',
210       'common/content_param_traits.cc',
211       'common/content_param_traits.h',
212       'common/content_param_traits_macros.h',
213       'common/content_paths.cc',
214       'common/content_switches_internal.cc',
215       'common/content_switches_internal.h',
216       'common/cross_site_document_classifier.cc',
217       'common/cross_site_document_classifier.h',
218       'common/cursors/webcursor.cc',
219       'common/cursors/webcursor.h',
220       'common/cursors/webcursor_android.cc',
221       'common/cursors/webcursor_aura.cc',
222       'common/cursors/webcursor_aurawin.cc',
223       'common/cursors/webcursor_aurax11.cc',
224       'common/cursors/webcursor_mac.mm',
225       'common/cursors/webcursor_ozone.cc',
226       'common/database_messages.h',
227       'common/date_time_suggestion.h',
228       'common/device_sensors/device_light_data.h',
229       'common/device_sensors/device_light_hardware_buffer.h',
230       'common/device_sensors/device_light_messages.h',
231       'common/device_sensors/device_motion_hardware_buffer.h',
232       'common/device_sensors/device_motion_messages.h',
233       'common/device_sensors/device_orientation_hardware_buffer.h',
234       'common/device_sensors/device_orientation_messages.h',
235       'common/devtools_messages.h',
236       'common/discardable_shared_memory_heap.cc',
237       'common/discardable_shared_memory_heap.h',
238       'common/dom_storage/dom_storage_map.cc',
239       'common/dom_storage/dom_storage_map.h',
240       'common/dom_storage/dom_storage_messages.h',
241       'common/drag_event_source_info.h',
242       'common/drag_messages.h',
243       'common/drag_traits.h',
244       'common/dwrite_font_platform_win.cc',
245       'common/edit_command.h',
246       'common/file_utilities_messages.h',
247       'common/fileapi/file_system_messages.h',
248       'common/fileapi/webblob_messages.h',
249       'common/font_cache_dispatcher_win.cc',
250       'common/font_cache_dispatcher_win.h',
251       'common/font_config_ipc_linux.cc',
252       'common/font_config_ipc_linux.h',
253       'common/font_list.cc',
254       'common/font_list.h',
255       'common/font_list_android.cc',
256       'common/font_list_mac.mm',
257       'common/font_list_ozone.cc',
258       'common/font_list_pango.cc',
259       'common/font_list_win.cc',
260       'common/frame_message_enums.h',
261       'common/frame_messages.h',
262       'common/frame_param.cc',
263       'common/frame_param.h',
264       'common/frame_param_macros.h',
265       'common/frame_replication_state.cc',
266       'common/frame_replication_state.h',
267       'common/gamepad_hardware_buffer.h',
268       'common/gamepad_messages.h',
269       'common/gamepad_param_traits.cc',
270       'common/gamepad_param_traits.h',
271       'common/gamepad_user_gesture.cc',
272       'common/gamepad_user_gesture.h',
273       'common/geofencing_messages.h',
274       'common/geofencing_types.cc',
275       'common/geofencing_types.h',
276       'common/gin_java_bridge_messages.h',
277       'common/gpu/client/command_buffer_metrics.cc',
278       'common/gpu/client/command_buffer_metrics.h',
279       'common/gpu/client/command_buffer_proxy_impl.cc',
280       'common/gpu/client/command_buffer_proxy_impl.h',
281       'common/gpu/client/context_provider_command_buffer.cc',
282       'common/gpu/client/context_provider_command_buffer.h',
283       'common/gpu/client/gl_helper.cc',
284       'common/gpu/client/gl_helper.h',
285       'common/gpu/client/gl_helper_readback_support.cc',
286       'common/gpu/client/gl_helper_readback_support.h',
287       'common/gpu/client/gl_helper_scaling.cc',
288       'common/gpu/client/gl_helper_scaling.h',
289       'common/gpu/client/gpu_channel_host.cc',
290       'common/gpu/client/gpu_channel_host.h',
291       'common/gpu/client/gpu_jpeg_decode_accelerator_host.cc',
292       'common/gpu/client/gpu_jpeg_decode_accelerator_host.h',
293       'common/gpu/client/gpu_memory_buffer_impl.cc',
294       'common/gpu/client/gpu_memory_buffer_impl.h',
295       'common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc',
296       'common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.h',
297       'common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc',
298       'common/gpu/client/gpu_memory_buffer_impl_shared_memory.h',
299       'common/gpu/client/gpu_video_decode_accelerator_host.cc',
300       'common/gpu/client/gpu_video_decode_accelerator_host.h',
301       'common/gpu/client/gpu_video_encode_accelerator_host.cc',
302       'common/gpu/client/gpu_video_encode_accelerator_host.h',
303       'common/gpu/client/grcontext_for_webgraphicscontext3d.cc',
304       'common/gpu/client/grcontext_for_webgraphicscontext3d.h',
305       'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
306       'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
307       'common/gpu/gpu_channel.cc',
308       'common/gpu/gpu_channel.h',
309       'common/gpu/gpu_channel_manager.cc',
310       'common/gpu/gpu_channel_manager.h',
311       'common/gpu/gpu_command_buffer_stub.cc',
312       'common/gpu/gpu_command_buffer_stub.h',
313       'common/gpu/gpu_config.h',
314       'common/gpu/gpu_memory_buffer_factory.cc',
315       'common/gpu/gpu_memory_buffer_factory.h',
316       'common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc',
317       'common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.h',
318       'common/gpu/gpu_memory_buffer_factory_shared_memory.cc',
319       'common/gpu/gpu_memory_buffer_factory_shared_memory.h',
320       'common/gpu/gpu_memory_manager.cc',
321       'common/gpu/gpu_memory_manager.h',
322       'common/gpu/gpu_memory_manager_client.cc',
323       'common/gpu/gpu_memory_manager_client.h',
324       'common/gpu/gpu_memory_tracking.cc',
325       'common/gpu/gpu_memory_tracking.h',
326       'common/gpu/gpu_memory_uma_stats.h',
327       'common/gpu/gpu_messages.h',
328       'common/gpu/gpu_process_launch_causes.h',
329       'common/gpu/gpu_result_codes.h',
330       'common/gpu/gpu_surface_lookup.cc',
331       'common/gpu/gpu_surface_lookup.h',
332       'common/gpu/gpu_watchdog.h',
333       'common/gpu/image_transport_surface.cc',
334       'common/gpu/image_transport_surface.h',
335       'common/gpu/image_transport_surface_android.cc',
336       'common/gpu/image_transport_surface_calayer_mac.h',
337       'common/gpu/image_transport_surface_calayer_mac.mm',
338       'common/gpu/image_transport_surface_fbo_mac.h',
339       'common/gpu/image_transport_surface_fbo_mac.mm',
340       'common/gpu/image_transport_surface_iosurface_mac.cc',
341       'common/gpu/image_transport_surface_iosurface_mac.h',
342       'common/gpu/image_transport_surface_linux.cc',
343       'common/gpu/image_transport_surface_overlay_mac.h',
344       'common/gpu/image_transport_surface_overlay_mac.mm',
345       'common/gpu/image_transport_surface_mac.mm',
346       'common/gpu/image_transport_surface_win.cc',
347       'common/gpu/media/fake_video_decode_accelerator.cc',
348       'common/gpu/media/fake_video_decode_accelerator.h',
349       'common/gpu/media/gpu_jpeg_decode_accelerator.cc',
350       'common/gpu/media/gpu_jpeg_decode_accelerator.h',
351       'common/gpu/media/gpu_video_accelerator_util.cc',
352       'common/gpu/media/gpu_video_accelerator_util.h',
353       'common/gpu/media/gpu_video_decode_accelerator.cc',
354       'common/gpu/media/gpu_video_decode_accelerator.h',
355       'common/gpu/media/gpu_video_encode_accelerator.cc',
356       'common/gpu/media/gpu_video_encode_accelerator.h',
357       'common/gpu/null_transport_surface.cc',
358       'common/gpu/null_transport_surface.h',
359       'common/gpu/stream_texture_android.cc',
360       'common/gpu/stream_texture_android.h',
361       'common/host_discardable_shared_memory_manager.cc',
362       'common/host_discardable_shared_memory_manager.h',
363       'common/host_shared_bitmap_manager.cc',
364       'common/host_shared_bitmap_manager.h',
365       'common/in_process_child_thread_params.cc',
366       'common/in_process_child_thread_params.h',
367       'common/indexed_db/indexed_db_constants.h',
368       'common/indexed_db/indexed_db_key.cc',
369       'common/indexed_db/indexed_db_key.h',
370       'common/indexed_db/indexed_db_key_path.cc',
371       'common/indexed_db/indexed_db_key_path.h',
372       'common/indexed_db/indexed_db_key_range.cc',
373       'common/indexed_db/indexed_db_key_range.h',
374       'common/indexed_db/indexed_db_messages.h',
375       'common/indexed_db/indexed_db_param_traits.cc',
376       'common/indexed_db/indexed_db_param_traits.h',
377       'common/input/did_overscroll_params.cc',
378       'common/input/did_overscroll_params.h',
379       'common/input/gesture_event_stream_validator.cc',
380       'common/input/gesture_event_stream_validator.h',
381       'common/input/input_event.cc',
382       'common/input/input_event.h',
383       'common/input/input_event_ack.cc',
384       'common/input/input_event_ack.h',
385       'common/input/input_event_stream_validator.cc',
386       'common/input/input_event_stream_validator.h',
387       'common/input/input_param_traits.cc',
388       'common/input/input_param_traits.h',
389       'common/input/scoped_web_input_event.cc',
390       'common/input/scoped_web_input_event.h',
391       'common/input/synthetic_gesture_packet.cc',
392       'common/input/synthetic_gesture_packet.h',
393       'common/input/synthetic_gesture_params.cc',
394       'common/input/synthetic_gesture_params.h',
395       'common/input/synthetic_pinch_gesture_params.cc',
396       'common/input/synthetic_pinch_gesture_params.h',
397       'common/input/synthetic_smooth_drag_gesture_params.cc',
398       'common/input/synthetic_smooth_drag_gesture_params.h',
399       'common/input/synthetic_smooth_scroll_gesture_params.cc',
400       'common/input/synthetic_smooth_scroll_gesture_params.h',
401       'common/input/synthetic_tap_gesture_params.cc',
402       'common/input/synthetic_tap_gesture_params.h',
403       'common/input/synthetic_web_input_event_builders.cc',
404       'common/input/synthetic_web_input_event_builders.h',
405       'common/input/touch_event_stream_validator.cc',
406       'common/input/touch_event_stream_validator.h',
407       'common/input/web_input_event_traits.cc',
408       'common/input/web_input_event_traits.h',
409       'common/input/web_touch_event_traits.cc',
410       'common/input/web_touch_event_traits.h',
411       'common/input_messages.h',
412       'common/inter_process_time_ticks_converter.cc',
413       'common/inter_process_time_ticks_converter.h',
414       'common/mac/attributed_string_coder.h',
415       'common/mac/attributed_string_coder.mm',
416       'common/mac/font_descriptor.h',
417       'common/mac/font_descriptor.mm',
418       'common/mac/font_loader.h',
419       'common/mac/font_loader.mm',
420       'common/mac/io_surface_manager.cc',
421       'common/mac/io_surface_manager.h',
422       'common/mac/io_surface_manager_messages.h',
423       'common/mac/io_surface_manager_token.h',
424       'common/manifest_manager_messages.h',
425       'common/media/aec_dump_messages.h',
426       'common/media/audio_messages.h',
427       'common/media/cdm_messages.h',
428       'common/media/cdm_messages_enums.h',
429       'common/media/media_param_traits.cc',
430       'common/media/media_param_traits.h',
431       'common/media/media_player_messages_android.h',
432       'common/media/media_player_messages_enums_android.h',
433       'common/media/media_stream_messages.h',
434       'common/media/media_stream_options.cc',
435       'common/media/media_stream_options.h',
436       'common/media/media_stream_track_metrics_host_messages.h',
437       'common/media/midi_messages.h',
438       'common/media/video_capture.h',
439       'common/media/video_capture_messages.h',
440       'common/media/webrtc_identity_messages.h',
441       'common/memory_benchmark_messages.h',
442       'common/message_port_messages.h',
443       'common/message_router.cc',
444       'common/message_router.h',
445       'common/mime_registry_messages.h',
446       'common/mojo/channel_init.cc',
447       'common/mojo/channel_init.h',
448       'common/mojo/mojo_messages.h',
449       'common/mojo/service_registry_impl.cc',
450       'common/mojo/service_registry_impl.h',
451       'common/navigation_gesture.h',
452       'common/navigation_params.cc',
453       'common/navigation_params.h',
454       'common/net/url_fetcher.cc',
455       'common/net/url_request_user_data.cc',
456       'common/net/url_request_user_data.h',
457       'common/notification_constants.h',
458       'common/one_writer_seqlock.cc',
459       'common/one_writer_seqlock.h',
460       'common/origin_util.cc',
461       'common/p2p_messages.h',
462       'common/page_state_serialization.cc',
463       'common/page_state_serialization.h',
464       'common/page_zoom.cc',
465       'common/pepper_file_util.cc',
466       'common/pepper_file_util.h',
467       'common/pepper_messages.h',
468       'common/pepper_plugin_list.cc',
469       'common/pepper_plugin_list.h',
470       'common/pepper_renderer_instance_data.cc',
471       'common/pepper_renderer_instance_data.h',
472       'common/platform_notification_messages.h',
473       'common/plugin_constants_win.cc',
474       'common/plugin_constants_win.h',
475       'common/plugin_list.cc',
476       'common/plugin_list.h',
477       'common/plugin_list_mac.mm',
478       'common/plugin_list_posix.cc',
479       'common/plugin_list_win.cc',
480       'common/plugin_process_messages.h',
481       'common/power_monitor_messages.h',
482       'common/process_type.cc',
483       'common/push_messaging_messages.h',
484       'common/quota_messages.h',
485       'common/resource_messages.cc',
486       'common/resource_messages.h',
487       'common/resource_request_body.cc',
488       'common/resource_request_body.h',
489       'common/sandbox_init_mac.cc',
490       'common/sandbox_init_mac.h',
491       'common/sandbox_init_win.cc',
492       'common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc',
493       'common/sandbox_linux/android/sandbox_bpf_base_policy_android.h',
494       'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
495       'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
496       'common/sandbox_linux/bpf_gpu_policy_linux.cc',
497       'common/sandbox_linux/bpf_gpu_policy_linux.h',
498       'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
499       'common/sandbox_linux/bpf_ppapi_policy_linux.h',
500       'common/sandbox_linux/bpf_renderer_policy_linux.cc',
501       'common/sandbox_linux/bpf_renderer_policy_linux.h',
502       'common/sandbox_linux/bpf_utility_policy_linux.cc',
503       'common/sandbox_linux/bpf_utility_policy_linux.h',
504       'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
505       'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
506       'common/sandbox_linux/sandbox_debug_handling_linux.cc',
507       'common/sandbox_linux/sandbox_debug_handling_linux.h',
508       'common/sandbox_linux/sandbox_init_linux.cc',
509       'common/sandbox_linux/sandbox_linux.cc',
510       'common/sandbox_linux/sandbox_linux.h',
511       'common/sandbox_linux/sandbox_seccomp_bpf_linux.cc',
512       'common/sandbox_linux/sandbox_seccomp_bpf_linux.h',
513       'common/sandbox_mac.h',
514       'common/sandbox_mac.mm',
515       'common/sandbox_util.cc',
516       'common/sandbox_util.h',
517       'common/sandbox_win.cc',
518       'common/sandbox_win.h',
519       'common/savable_url_schemes.cc',
520       'common/savable_url_schemes.h',
521       'common/screen_orientation_messages.h',
522       'common/send_zygote_child_ping_linux.cc',
523       'common/service_port_type_converters.cc',
524       'common/service_port_type_converters.h',
525       'common/service_worker/embedded_worker_messages.h',
526       'common/service_worker/service_worker_client_info.cc',
527       'common/service_worker/service_worker_client_info.h',
528       'common/service_worker/service_worker_messages.h',
529       'common/service_worker/service_worker_status_code.cc',
530       'common/service_worker/service_worker_status_code.h',
531       'common/service_worker/service_worker_types.cc',
532       'common/service_worker/service_worker_types.h',
533       'common/service_worker/service_worker_type_converters.cc',
534       'common/service_worker/service_worker_type_converters.h',
535       'common/set_process_title.cc',
536       'common/set_process_title.h',
537       'common/set_process_title_linux.cc',
538       'common/set_process_title_linux.h',
539       'common/site_isolation_policy.cc',
540       'common/site_isolation_policy.h',
541       'common/speech_recognition_messages.h',
542       'common/ssl_status_serialization.cc',
543       'common/ssl_status_serialization.h',
544       'common/swapped_out_messages.cc',
545       'common/swapped_out_messages.h',
546       'common/text_input_client_messages.h',
547       'common/url_schemes.cc',
548       'common/url_schemes.h',
549       'common/user_agent.cc',
550       'common/utility_messages.h',
551       'common/view_message_enums.h',
552       'common/view_messages.h',
553       'common/webplugin_geometry.cc',
554       'common/webplugin_geometry.h',
555       'common/websocket.cc',
556       'common/websocket.h',
557       'common/websocket_messages.h',
558       'common/worker_messages.h',
559       'common/zygote_commands_linux.h',
560     ],
561   },
562   'sources': [
563     '<@(public_common_sources)',
564     '<@(private_common_sources)',
565   ],
566   'target_conditions': [
567     ['OS=="android" and <(use_seccomp_bpf)==1', {
568       'sources/': [
569         ['include', '^common/sandbox_linux/sandbox_bpf_base_policy_linux\\.cc$'],
570         ['include', '^common/sandbox_linux/sandbox_bpf_base_policy_linux\\.h$'],
571       ],
572     }],
573   ],
574   'conditions': [
575     ['OS=="ios"', {
576       # iOS has different user-agent construction utilities, since the
577       # version strings is not derived from webkit_version, and follows
578       # a different format.
579       'sources!': [
580         'common/user_agent.cc',
581       ],
582       'sources/': [
583         # iOS only needs a small portion of content; exclude all the
584         # implementation, and re-include what is used.
585         ['exclude', '\\.(cc|mm)$'],
586         ['include', '_ios\\.(cc|mm)$'],
587         ['include', '^public/common/content_client\\.cc$'],
588         ['include', '^public/common/content_constants\\.cc$'],
589         ['include', '^public/common/content_switches\\.cc$'],
590         ['include', '^public/common/frame_navigate_params\\.cc$'],
591         ['include', '^public/common/media_stream_request\\.cc$'],
592         ['include', '^public/common/page_state\\.cc$'],
593         ['include', '^public/common/password_form\\.cc$'],
594         ['include', '^public/common/signed_certificate_timestamp_id_and_status\\.cc$'],
595         ['include', '^public/common/speech_recognition_result\\.cc$'],
596         ['include', '^public/common/ssl_status\\.cc$'],
597         ['include', '^public/common/url_constants\\.cc$'],
598         ['include', '^common/content_paths\\.cc$'],
599         ['include', '^common/media/media_stream_options\\.cc$'],
600         ['include', '^common/net/url_fetcher\\.cc$'],
601         ['include', '^common/net/url_request_user_data\\.cc$'],
602         ['include', '^common/page_state_serialization\\.cc$'],
603         ['include', '^common/savable_url_schemes\\.cc$'],
604         ['include', '^common/url_schemes\\.cc$'],
605       ],
606     }, {  # OS!="ios"
607       'dependencies': [
608         '../cc/cc.gyp:cc',
609         '../device/bluetooth/bluetooth.gyp:device_bluetooth',
610         '../gpu/blink/gpu_blink.gyp:gpu_blink',
611         '../gpu/gpu.gyp:command_buffer_service',
612         '../gpu/gpu.gyp:gles2_c_lib',
613         '../gpu/gpu.gyp:gles2_implementation',
614         # TODO: the dependency on gl_in_process_context should be decoupled from
615         # content and moved to android_webview. See crbug.com/365797.
616         '../gpu/gpu.gyp:gl_in_process_context',
617         '../gpu/gpu.gyp:gpu_ipc',
618         '../gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings',
619         '../ipc/ipc.gyp:ipc',
620         '../ipc/mojo/ipc_mojo.gyp:ipc_mojo',
621         '../media/media.gyp:media',
622         '../media/media.gyp:shared_memory_support',
623         '../media/midi/midi.gyp:midi',
624         '../mojo/mojo_base.gyp:mojo_application_bindings',
625         '../mojo/mojo_base.gyp:mojo_environment_chromium',
626         '../storage/storage_common.gyp:storage_common',
627         '../third_party/WebKit/public/blink.gyp:blink',
628         '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
629         '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
630         '../ui/gl/gl.gyp:gl',
631         'content_common_mojo_bindings.gyp:content_common_mojo_bindings',
632       ],
633       'export_dependent_settings' : [
634         '../mojo/mojo_base.gyp:mojo_application_bindings',
635         '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
636       ],
637       'actions': [
638         {
639           'action_name': 'generate_webkit_version',
640           'inputs': [
641             '<(script)',
642             '<(lastchange)',
643             '<(template)',
644           ],
645           'outputs': [
646             '<(SHARED_INTERMEDIATE_DIR)/webkit_version.h',
647           ],
648           'action': ['python',
649                      '<(script)',
650                      '-f', '<(lastchange)',
651                      '<(template)',
652                      '<@(_outputs)',
653           ],
654           'variables': {
655             'script': '<(DEPTH)/build/util/version.py',
656             'lastchange': '<(DEPTH)/build/util/LASTCHANGE.blink',
657             'template': 'webkit_version.h.in',
658           },
659         },
660       ],
661     }],
662     ['OS=="mac"', {
663       'dependencies': [
664         '../media/media.gyp:media',
665         'app/resources/content_resources.gyp:content_resources',
666         '../ui/accelerated_widget_mac/accelerated_widget_mac.gyp:accelerated_widget_mac'
667       ],
668       'sources': [
669         'common/gpu/client/gpu_memory_buffer_impl_io_surface.cc',
670         'common/gpu/client/gpu_memory_buffer_impl_io_surface.h',
671         'common/gpu/gpu_memory_buffer_factory_io_surface.cc',
672         'common/gpu/gpu_memory_buffer_factory_io_surface.h',
673         'common/gpu/media/vt.h',
674         'common/gpu/media/vt_video_decode_accelerator.cc',
675         'common/gpu/media/vt_video_decode_accelerator.h',
676       ],
677       'sources!': [
678         'common/plugin_list_posix.cc',
679       ],
680       'link_settings': {
681         'libraries': [
682           '$(SDKROOT)/System/Library/Frameworks/IOSurface.framework',
683           '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
684           '$(SDKROOT)/usr/lib/libsandbox.dylib',
685         ],
686       },
687       'variables': {
688         'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
689         'extra_header': 'common/gpu/media/vt_stubs_header.fragment',
690         'sig_files': ['common/gpu/media/vt.sig'],
691         'outfile_type': 'posix_stubs',
692         'stubs_filename_root': 'vt_stubs',
693         'project_path': 'content/common/gpu/media',
694         'intermediate_dir': '<(INTERMEDIATE_DIR)',
695         'output_root': '<(SHARED_INTERMEDIATE_DIR)/vt_stubs',
696       },
697       'include_dirs': [
698         '<(output_root)',
699       ],
700       'actions': [
701         {
702           'action_name': 'generate_stubs',
703           'inputs': [
704             '<(generate_stubs_script)',
705             '<(extra_header)',
706             '<@(sig_files)',
707           ],
708           'outputs': [
709             '<(intermediate_dir)/<(stubs_filename_root).cc',
710             '<(output_root)/<(project_path)/<(stubs_filename_root).h',
711           ],
712           'action': ['python',
713                      '<(generate_stubs_script)',
714                      '-i', '<(intermediate_dir)',
715                      '-o', '<(output_root)/<(project_path)',
716                      '-t', '<(outfile_type)',
717                      '-e', '<(extra_header)',
718                      '-s', '<(stubs_filename_root)',
719                      '-p', '<(project_path)',
720                      '<@(_inputs)',
721           ],
722           'process_outputs_as_sources': 1,
723           'message': 'Generating VideoToolbox stubs for dynamic loading',
724         },
725       ],
726     }],
727     ['OS=="android"',{
728       'sources': [
729         'common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc',
730         'common/gpu/client/gpu_memory_buffer_impl_surface_texture.h',
731         'common/gpu/gpu_memory_buffer_factory_surface_texture.cc',
732         'common/gpu/gpu_memory_buffer_factory_surface_texture.h',
733       ],
734       'link_settings': {
735         'libraries': [
736           '-landroid',  # ANativeWindow
737         ],
738       },
739      'dependencies': [
740         'content.gyp:content_jni_headers',
741         'content.gyp:common_aidl',
742       ],
743     }],
744     ['use_pango == 1', {
745       'dependencies': [
746         '../build/linux/system.gyp:pangocairo',
747       ],
748       'sources!': [
749         'common/font_list_ozone.cc',
750       ],
751     }],
752     ['use_x11 == 1', {
753       'include_dirs': [
754         '<(DEPTH)/third_party/khronos',
755       ],
756       'dependencies': [
757          '<(DEPTH)/build/linux/system.gyp:xcomposite',
758       ],
759     }],
760     ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
761       'sources': [
762         'common/gpu/x_util.h',
763       ],
764     }],
765     ['enable_plugins==1', {
766       'dependencies': [
767         '../ppapi/ppapi_internal.gyp:ppapi_shared',
768       ],
769     }, {  # enable_plugins == 0
770       'sources!': [
771         'common/pepper_file_util.cc',
772         'common/pepper_file_util.h',
773         'common/pepper_messages.h',
774         'common/pepper_plugin_list.cc',
775         'common/pepper_plugin_list.h',
776         'common/pepper_renderer_instance_data.cc',
777         'common/pepper_renderer_instance_data.h',
778         'common/plugin_list.cc',
779         'common/plugin_list.h',
780         'common/plugin_list_posix.cc',
781         'common/sandbox_util.cc',
782         'public/common/pepper_plugin_info.cc',
783         'public/common/pepper_plugin_info.h',
784       ],
785     }],
786     ['OS=="android"', {
787       'dependencies': [
788         '../media/media.gyp:media',
789       ],
790       'sources': [
791         'common/gpu/media/android_video_decode_accelerator.cc',
792         'common/gpu/media/android_video_decode_accelerator.h',
793       ],
794     }],
795     ['OS=="android" and enable_webrtc==1', {
796       'dependencies': [
797         '../third_party/libyuv/libyuv.gyp:libyuv',
798       ],
799       'sources': [
800         'common/gpu/media/android_video_encode_accelerator.cc',
801         'common/gpu/media/android_video_encode_accelerator.h',
802       ],
803     }],
804     ['enable_webrtc==1', {
805       'dependencies': [
806         '../third_party/libjingle/libjingle.gyp:libjingle',
807       ],
808     }],
809     ['use_v4lplugin==1 and chromeos==1', {
810       'defines': [
811         'USE_LIBV4L2'
812       ],
813       'variables': {
814         'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
815         'extra_header': 'common/gpu/media/v4l2_stub_header.fragment',
816         'sig_files': ['common/gpu/media/v4l2.sig'],
817         'outfile_type': 'posix_stubs',
818         'stubs_filename_root': 'v4l2_stubs',
819         'project_path': 'content/common/gpu/media',
820         'intermediate_dir': '<(INTERMEDIATE_DIR)',
821         'output_root': '<(SHARED_INTERMEDIATE_DIR)/v4l2',
822       },
823       'include_dirs': [
824         '<(output_root)',
825       ],
826       'actions': [
827         {
828           'action_name': 'generate_stubs',
829           'inputs': [
830             '<(generate_stubs_script)',
831             '<(extra_header)',
832             '<@(sig_files)',
833           ],
834           'outputs': [
835             '<(intermediate_dir)/<(stubs_filename_root).cc',
836             '<(output_root)/<(project_path)/<(stubs_filename_root).h',
837           ],
838           'action': ['python',
839             '<(generate_stubs_script)',
840             '-i', '<(intermediate_dir)',
841             '-o', '<(output_root)/<(project_path)',
842             '-t', '<(outfile_type)',
843             '-e', '<(extra_header)',
844             '-s', '<(stubs_filename_root)',
845             '-p', '<(project_path)',
846             '<@(_inputs)',
847           ],
848           'process_outputs_as_sources': 1,
849           'message': 'Generating libv4l2 stubs for dynamic loading',
850         },
851       ],
852     }],
853     ['chromeos==1', {
854       'sources': [
855         'common/gpu/media/accelerated_video_decoder.h',
856         'common/gpu/media/h264_decoder.cc',
857         'common/gpu/media/h264_decoder.h',
858         'common/gpu/media/h264_dpb.cc',
859         'common/gpu/media/h264_dpb.h',
860         'common/gpu/media/vp8_decoder.cc',
861         'common/gpu/media/vp8_decoder.h',
862         'common/gpu/media/vp8_picture.cc',
863         'common/gpu/media/vp8_picture.h',
864       ],
865     }],
866     ['chromeos==1 and use_v4l2_codec==1', {
867       'direct_dependent_settings': {
868         'defines': [
869           'USE_V4L2_CODEC'
870         ],
871       },
872       'defines': [
873         'USE_V4L2_CODEC'
874       ],
875       'dependencies': [
876         '../media/media.gyp:media',
877         '../third_party/libyuv/libyuv.gyp:libyuv',
878       ],
879       'sources': [
880         'common/gpu/media/generic_v4l2_device.cc',
881         'common/gpu/media/generic_v4l2_device.h',
882         'common/gpu/media/v4l2_device.cc',
883         'common/gpu/media/v4l2_device.h',
884         'common/gpu/media/v4l2_image_processor.cc',
885         'common/gpu/media/v4l2_image_processor.h',
886         'common/gpu/media/v4l2_jpeg_decode_accelerator.cc',
887         'common/gpu/media/v4l2_jpeg_decode_accelerator.h',
888         'common/gpu/media/v4l2_slice_video_decode_accelerator.cc',
889         'common/gpu/media/v4l2_slice_video_decode_accelerator.h',
890         'common/gpu/media/v4l2_video_decode_accelerator.cc',
891         'common/gpu/media/v4l2_video_decode_accelerator.h',
892         'common/gpu/media/v4l2_video_encode_accelerator.cc',
893         'common/gpu/media/v4l2_video_encode_accelerator.h',
894       ],
895       'include_dirs': [
896         '<(DEPTH)/third_party/khronos',
897       ],
898     }],
899     ['target_arch == "arm" and chromeos == 1', {
900       'sources': [
901         'common/gpu/media/tegra_v4l2_device.cc',
902         'common/gpu/media/tegra_v4l2_device.h',
903       ],
904     }],
905     ['target_arch != "arm" and chromeos == 1', {
906       'dependencies': [
907         '../media/media.gyp:media',
908         '../third_party/libyuv/libyuv.gyp:libyuv',
909       ],
910       'sources': [
911         'common/gpu/media/va_surface.h',
912         'common/gpu/media/vaapi_jpeg_decode_accelerator.cc',
913         'common/gpu/media/vaapi_jpeg_decode_accelerator.h',
914         'common/gpu/media/vaapi_jpeg_decoder.cc',
915         'common/gpu/media/vaapi_jpeg_decoder.h',
916         'common/gpu/media/vaapi_picture.cc',
917         'common/gpu/media/vaapi_picture.h',
918         'common/gpu/media/vaapi_video_decode_accelerator.cc',
919         'common/gpu/media/vaapi_video_decode_accelerator.h',
920         'common/gpu/media/vaapi_video_encode_accelerator.cc',
921         'common/gpu/media/vaapi_video_encode_accelerator.h',
922         'common/gpu/media/vaapi_wrapper.cc',
923         'common/gpu/media/vaapi_wrapper.h',
924       ],
925       'conditions': [
926         ['use_x11 == 1', {
927           'variables': {
928             'sig_files': [
929               'common/gpu/media/va.sigs',
930               'common/gpu/media/va_x11.sigs',
931             ],
932           },
933           'sources': [
934             'common/gpu/media/vaapi_tfp_picture.cc',
935             'common/gpu/media/vaapi_tfp_picture.h',
936           ],
937         }, {
938           'variables': {
939             'sig_files': [
940               'common/gpu/media/va.sigs',
941               'common/gpu/media/va_drm.sigs',
942             ],
943           },
944           'sources': [
945             'common/gpu/media/vaapi_drm_picture.cc',
946             'common/gpu/media/vaapi_drm_picture.h',
947           ],
948         }],
949       ],
950       'variables': {
951         'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
952         'extra_header': 'common/gpu/media/va_stub_header.fragment',
953         'outfile_type': 'posix_stubs',
954         'stubs_filename_root': 'va_stubs',
955         'project_path': 'content/common/gpu/media',
956         'intermediate_dir': '<(INTERMEDIATE_DIR)',
957         'output_root': '<(SHARED_INTERMEDIATE_DIR)/va',
958       },
959       'include_dirs': [
960         '<(DEPTH)/third_party/libva',
961         '<(DEPTH)/third_party/libyuv',
962         '<(output_root)',
963       ],
964       'actions': [
965         {
966           'action_name': 'generate_stubs',
967           'inputs': [
968             '<(generate_stubs_script)',
969             '<(extra_header)',
970             '<@(sig_files)',
971           ],
972           'outputs': [
973             '<(intermediate_dir)/<(stubs_filename_root).cc',
974             '<(output_root)/<(project_path)/<(stubs_filename_root).h',
975           ],
976           'action': ['python',
977                      '<(generate_stubs_script)',
978                      '-i', '<(intermediate_dir)',
979                      '-o', '<(output_root)/<(project_path)',
980                      '-t', '<(outfile_type)',
981                      '-e', '<(extra_header)',
982                      '-s', '<(stubs_filename_root)',
983                      '-p', '<(project_path)',
984                      '<@(_inputs)',
985           ],
986           'process_outputs_as_sources': 1,
987           'message': 'Generating libva stubs for dynamic loading',
988         },
989      ]
990     }],
991     ['OS=="win"', {
992       'dependencies': [
993         '../media/media.gyp:media',
994         '../ui/gl/gl.gyp:gl',
995       ],
996       'link_settings': {
997         'libraries': [
998            '-ld3d9.lib',
999            '-ld3d11.lib',
1000            '-ldxva2.lib',
1001            '-lstrmiids.lib',
1002            '-lmf.lib',
1003            '-lmfplat.lib',
1004            '-lmfuuid.lib',
1005         ],
1006         'msvs_settings': {
1007           'VCLinkerTool': {
1008             'DelayLoadDLLs': [
1009               'd3d9.dll',
1010                           'd3d11.dll',
1011               'dxva2.dll',
1012               'mf.dll',
1013               'mfplat.dll',
1014             ],
1015           },
1016         },
1017       },
1018       'sources': [
1019         'common/gpu/media/dxva_video_decode_accelerator.cc',
1020         'common/gpu/media/dxva_video_decode_accelerator.h',
1021       ],
1022       'include_dirs': [
1023         '<(DEPTH)/third_party/khronos',
1024       ],
1025     }],
1026     ['OS=="win" and directxsdk_exists=="True"', {
1027       'actions': [
1028       {
1029         'action_name': 'extract_xinput',
1030         'variables': {
1031           'input': 'APR2007_xinput_<(winsdk_arch).cab',
1032           'output': 'xinput1_3.dll',
1033         },
1034         'inputs': [
1035           '../third_party/directxsdk/files/Redist/<(input)',
1036         ],
1037         'outputs': [
1038           '<(PRODUCT_DIR)/<(output)',
1039         ],
1040         'action': [
1041           'python',
1042         '../build/extract_from_cab.py',
1043         '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
1044         '<(output)',
1045         '<(PRODUCT_DIR)',
1046         ],
1047       },
1048      ]
1049     }],
1050     ['use_seccomp_bpf==0', {
1051       'sources!': [
1052         'common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc',
1053         'common/sandbox_linux/android/sandbox_bpf_base_policy_android.h',
1054         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
1055         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
1056         'common/sandbox_linux/bpf_gpu_policy_linux.cc',
1057         'common/sandbox_linux/bpf_gpu_policy_linux.h',
1058         'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
1059         'common/sandbox_linux/bpf_ppapi_policy_linux.h',
1060         'common/sandbox_linux/bpf_renderer_policy_linux.cc',
1061         'common/sandbox_linux/bpf_renderer_policy_linux.h',
1062         'common/sandbox_linux/bpf_utility_policy_linux.cc',
1063         'common/sandbox_linux/bpf_utility_policy_linux.h',
1064         'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
1065         'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
1066       ],
1067     }, {
1068       'defines': ['USE_SECCOMP_BPF'],
1069     }],
1070     ['use_ozone==1', {
1071       'dependencies': [
1072         '../ui/ozone/ozone.gyp:ozone',
1073         '../ui/ozone/ozone.gyp:ozone_base',
1074       ],
1075       'sources!': [
1076         'common/gpu/client/gpu_memory_buffer_impl_linux.cc',
1077         'common/gpu/gpu_memory_buffer_factory_linux.cc',
1078       ],
1079     }, {  # use_ozone!=1
1080       'sources!': [
1081         'common/cursors/webcursor_ozone.cc',
1082         'common/font_list_ozone.cc',
1083         'common/gpu/client/gpu_memory_buffer_impl_ozone.cc',
1084         'common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc',
1085         'common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.h',
1086         'common/gpu/gpu_memory_buffer_factory_ozone.cc',
1087         'common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc',
1088         'common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.h',
1089       ],
1090     }],
1091   ],